W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2013

[Bug 22713] New: Minor error in example in both XSLT 2.0 and 3.0

From: <bugzilla@jessica.w3.org>
Date: Wed, 17 Jul 2013 11:46:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-22713-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 22713
           Summary: Minor error in example in both XSLT 2.0 and 3.0
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

Under 18.1.1 in XSLT 2.0 and 23.1.1 in XSLT 3.0, a minor error appears in the
following example:

<out xsl:version="2.0">
    <xsl:when test="function-available('matches')">
      <xsl:value-of select="matches($input, '[a-z]*')"/>
      <xsl:value-of select="string-length(
                          translate($in, 'abcdefghijklmnopqrstuvwxyz', '')) =

The example assumes a variable $input, but under <xsl:otherwise> the variable
is called $in. 

In addition, instead of using an undeclared variable, the example is perhaps
clearer and more correct if an XPath axis step were used, like title or
username. This also applies to the second example using use-when.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 17 July 2013 11:46:27 UTC

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