W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2009

[Bug 7358] New: Typographical errors in section 9.8 of XSLT 2.0

From: <bugzilla@wiggum.w3.org>
Date: Tue, 18 Aug 2009 01:58:08 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-7358-523@http.www.w3.org/Bugs/Public/>

           Summary: Typographical errors in section 9.8 of  XSLT 2.0
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: zongaro@ca.ibm.com
         QAContact: public-qt-comments@w3.org

1) In the fourth example in section 9.8 of XSLT 2.0,[1] entitled "Example:
Circularity involving Variables and Keys," the following stylesheet function

<xsl:function name="my:f">
  <xsl:param name="arg1"/>
  <xsl:sequence select="key('k', $arg1)"/>

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'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:

<xsl:variable name="x" select="my:f(1)/>

should be

<xsl:variable name="x" select="my:f(1)"/>

[1] http://www.w3.org/TR/xslt20/#circularity

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 18 August 2009 01:58:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:40 UTC