We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2ea7ea commit d016b28Copy full SHA for d016b28
htmlbook-xsl/chunk.xsl
@@ -408,8 +408,8 @@ sect5:s
408
not(@data-type='link')">
409
<xsl:call-template name="process-as-xref"/>
410
</xsl:when>
411
- <!-- Otherwise just process href and apply-templates for everything else -->
412
- <xsl:otherwise>
+ <!-- If href is an xref then process href -->
+ <xsl:when test="$is-xref = 1">
413
<xsl:copy>
414
<xsl:apply-templates select="@*[not(name(.) = 'href')]"/>
415
<xsl:attribute name="href">
@@ -439,6 +439,12 @@ sect5:s
439
</xsl:attribute>
440
<xsl:apply-templates/>
441
</xsl:copy>
442
+ </xsl:when>
443
+ <!-- Otherwise, no special processing -->
444
+ <xsl:otherwise>
445
+ <xsl:copy>
446
+ <xsl:apply-templates select="@*|node()"/>
447
+ </xsl:copy>
448
</xsl:otherwise>
449
</xsl:choose>
450
</xsl:template>
0 commit comments