Skip to content

Commit

Permalink
Further correction to stylesheet for xfunction element
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Dec 4, 2024
1 parent 4c7ccbe commit 231ebb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions specifications/xpath-functions-40/src/xpath-functions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ for transition to Proposed Recommendation. </p>'>
cross-document links in this document. Each such link consists of a pointer to a
specific section followed a superscript specifying the linked document. The
superscripts have the following meanings: XQ <bibref ref="xquery-40"/>, XT <bibref ref="xslt-40"/>,
XP <bibref ref="xpath-40"/>, and DM <bibref ref="xpath-datamodel-31"/>.</p>
XP <bibref ref="xpath-40"/>, and DM <bibref ref="xpath-datamodel-40"/>.</p>

<div2 id="operators" diff="add" at="2022-12-20">
<head>Operators</head>
Expand Down Expand Up @@ -12662,7 +12662,7 @@ currently, Version 9.0.0.
<!--<bibl id="xquery-30"
key="XQuery 3.0: An XML Query Language"/>-->
<bibl id="xquery-40"
key="XQuery 4.1: An XML Query Language">
key="XQuery 4.0: An XML Query Language">
<emph>CITATION: T.B.D.</emph>
</bibl>
<!--<bibl id="xmlschema-1"
Expand Down
4 changes: 2 additions & 2 deletions specifications/xslt-40/src/xslt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@
<p>
<emph>This document contains hyperlinks to specific sections or definitions within other
documents in this family of specifications. These links are indicated visually by a
superscript identifying the target specification: for example XP40 for XPath 4.0,
DM40 for the XDM data model version 4.0, FO40 for Functions and Operators version
superscript identifying the target specification: for example XP for XPath 4.0,
DM for the XDM data model version 4.0, FO for Functions and Operators version
4.0.</emph>
</p>

Expand Down
8 changes: 4 additions & 4 deletions specifications/xslt-40/style/xslt.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -773,12 +773,12 @@ constructor. These elements are:</p>
<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'"/>
<xsl:variable name="baseuri"
select="if ($vn = '40')
then 'https://www.w3.org/TR/xpath-functions'
else 'https://qt4cg.org/specifications/xpath-functions'"/>
select="if ($vn = '40')
then 'https://qt4cg.org/specifications/xpath-functions'
else 'https://www.w3.org/TR/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>
</a><sup><small><xsl:value-of select="(@spec, 'FO')[1]"/></small></sup>
</xsl:template>

<xsl:template match="termref">
Expand Down

0 comments on commit 231ebb3

Please sign in to comment.