Skip to content

Commit

Permalink
Merge pull request #1614 from ndw/iss-1610-a
Browse files Browse the repository at this point in the history
Fix xfunction refs in XSLT
  • Loading branch information
ndw authored Dec 3, 2024
2 parents d0676b2 + fe29942 commit 8dd32e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion specifications/xslt-40/style/xslt.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,11 @@ constructor. These elements are:</p>
<xsl:variable name="fname" select="string(.)"/>
<xsl:variable name="link" select="translate(if (contains($fname, '#')) then substring-before($fname, '#') else $fname, ':', '-')"/>
<xsl:variable name="vn" select="if (@spec eq 'FO31') then '31' else if (@spec eq '30') then '30' else '40'"/>
<a href="https://www.w3.org/TR/xpath-functions-{$vn}/#func-{$link}">
<xsl:variable name="baseuri"
select="if ($vn = '40')
then 'https://www.w3.org/TR/xpath-functions'
else 'https://qt4cg.org/specifications/xpath-functions'"/>
<a href="{$baseuri}-{$vn}/#func-{$link}">
<code><xsl:value-of select="."/></code>
</a><sup><small><xsl:value-of select="(@spec, 'FO40')[1]"/></small></sup>
</xsl:template>
Expand Down

0 comments on commit 8dd32e9

Please sign in to comment.