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 30123 - [xslt30]Example in https://www.w3.org/TR/xslt-30/#streamable-stylesheet-functions defines parameter named "input", explaining text talks about "$nodes" argument
Summary: [xslt30]Example in https://www.w3.org/TR/xslt-30/#streamable-stylesheet-funct...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: 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: 2017-06-09 08:20 UTC by Martin Honnen
Modified: 2017-10-29 22:26 UTC (History)
0 users

See Also:


Attachments

Description Martin Honnen 2017-06-09 08:20:41 UTC
While exploring streamable stylesheet functions with Saxon 9.8 I found that the example "An absorbing stylesheet function" in https://www.w3.org/TR/xslt-30/#streamable-stylesheet-functions has the code

<xsl:function name="f:count-descendants" as="xs:integer" streamability="absorbing">
  <xsl:param name="input" as="node()*"/>
  <xsl:sequence select="count($input//*)"/>
</xsl:function>  

so it defines the argument of the function with the name "input", however the explaining text then says "The effect of the rules is that a call to this function is guaranteed-streamable provided that the sequence supplied as the value of the $nodes argument is motionless or consuming, and is either grounded or striding.", that is, it uses the name "nodes" and not the name "input".

So the text and the code are inconsistent as far as the argument name is concerned.
Comment 1 Michael Kay 2017-10-13 20:31:24 UTC
Erratum E1 has been drafted.
Comment 2 Michael Kay 2017-10-29 22:26:22 UTC
The WG accepted this erratum.