File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 61
61
</xsl : copy >
62
62
</xsl : template >
63
63
64
+ <!-- href handling for a elements that are not indexterms, xrefs, or footnoterefs -->
65
+ <xsl : template match =" h:a[not((contains(@data-type, 'xref')) or
66
+ (contains(@data-type, 'footnoteref')) or
67
+ (contains(@data-type, 'indexterm')))][@href]" >
68
+ <xsl : copy >
69
+ <xsl : apply-templates select =" @*[not(name(.) = 'href')]" />
70
+ <xsl : attribute name =" href" >
71
+ <xsl : call-template name =" calculate-output-href" >
72
+ <xsl : with-param name =" source-href-value" select =" @href" />
73
+ </xsl : call-template >
74
+ </xsl : attribute >
75
+ <xsl : apply-templates />
76
+ </xsl : copy >
77
+ </xsl : template >
78
+
64
79
<!-- Adapted from docbook-xsl templates in xhtml/xref.xsl -->
65
80
<xsl : template match =" *" mode =" xref-to" >
66
81
<xsl : param name =" referrer" />
You can’t perform that action at this time.
0 commit comments