<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7358</bug_id>
          
          <creation_ts>2009-08-18 01:58:07 +0000</creation_ts>
          <short_desc>[XSLT] Typographical errors in section 9.8 of  XSLT 2.0</short_desc>
          <delta_ts>2010-07-27 20:33:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 2.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Zongaro">zongaro</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>sca.w3c</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26499</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-08-18 01:58:07 +0000</bug_when>
    <thetext>1) In the fourth example in section 9.8 of XSLT 2.0,[1] entitled &quot;Example: Circularity involving Variables and Keys,&quot; the following stylesheet function appears:

&lt;xsl:function name=&quot;my:f&quot;&gt;
  &lt;xsl:param name=&quot;arg1&quot;/&gt;
  &lt;xsl:sequence select=&quot;key(&apos;k&apos;, $arg1)&quot;/&gt;
&lt;/xsl:function&gt;

If a reference to the key function has only two arguments, the reference returns nodes in the same document as the context node.  However, the context item is initially undefined in a stylesheet function, so it&apos;s implementation dependent whether this example will result in an error because of the circularity or because the context item is undefined.

The example could either be modified to eliminate the stylesheet function, or a second argument to the stylesheet function could be added to use as the $top argument in the reference to the key function.

2) In the final example of section 9.8, there is a quotation mark missing in the xsl:variable declaration:

&lt;xsl:variable name=&quot;x&quot; select=&quot;my:f(1)/&gt;

should be

&lt;xsl:variable name=&quot;x&quot; select=&quot;my:f(1)&quot;/&gt;

[1] http://www.w3.org/TR/xslt20/#circularity</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29547</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-11-13 15:51:42 +0000</bug_when>
    <thetext>Resolved at the WG telcon on 12 Nov 2009 to reclassify this as editorial, and to fix it along the lines suggested by the originator. Erratum XT.E40 will be issued to incorporate this fix (drafted).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>