File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,8 @@ sect5:s
408
408
not(@data-type='link')" >
409
409
<xsl : call-template name =" process-as-xref" />
410
410
</xsl : when >
411
- <!-- Otherwise just process href and apply-templates for everything else -->
412
- <xsl : otherwise >
411
+ <!-- If href is an xref then process href -->
412
+ <xsl : when test = " $is-xref = 1 " >
413
413
<xsl : copy >
414
414
<xsl : apply-templates select =" @*[not(name(.) = 'href')]" />
415
415
<xsl : attribute name =" href" >
@@ -439,6 +439,12 @@ sect5:s
439
439
</xsl : attribute >
440
440
<xsl : apply-templates />
441
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 >
442
448
</xsl : otherwise >
443
449
</xsl : choose >
444
450
</xsl : template >
You can’t perform that action at this time.
0 commit comments