This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29714 - [xslt 3.0] Corrections to examples
Summary: [xslt 3.0] Corrections to examples
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 editorial
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 11:45 UTC by Michael Kay
Modified: 2016-10-06 18:42 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2016-07-01 11:45:16 UTC
(Posted on public XSL WG list)

Few corrections to make to the examples

In 3.5.3.5 Binding References to Components

<xsl:package name="Q"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:variable name="A" visibility="final" select="$B + 1"/>
 <xsl:variable name="B" visibility="private" select="$C * 2"/>
 <xsl:variable name="C" visibility="public" select="22"/>
</xsl:package>

is missing attribute version which is mandatory version attribute
according to 3.5 Packages

same for

<xsl:package name="P" package-version="2.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:use-package name="Q">
   <xsl:override>
     <xsl:variable name="C" visibility="private" select="$xsl:original + 3"/>
   </xsl:override>
 </xsl:use-package>

 <xsl:template name="T" visibility="public">
   <xsl:value-of select="$A"/>
 </xsl:template>
</xsl:package>

where package-version should be replaced to version

Hope this helps

Mohamed



-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €
Comment 1 Michael Kay 2016-07-10 17:29:19 UTC
Thanks for these corrections, which I have applied.

The corrections have been made silently (no entry in the change log).