W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2008

[Bug 6093] New: [XSLT 2.0] Incorrect inline schema example

From: <bugzilla@wiggum.w3.org>
Date: Thu, 18 Sep 2008 14:25:42 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-6093-523@http.www.w3.org/Bugs/Public/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6093

           Summary: [XSLT 2.0] Incorrect inline schema example
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


Ken Holman has pointed out in private email that the example in section 3.14 is
incorrect:

<xs:variable name="condition" select="'yes'" as="local:yes-no"/>

It should read

<xs:variable name="condition" select="local:yes-no('yes')" as="local:yes-no"/>

Because declaring the type of a variable does not by itself force a cast to
that type.


-- 
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 Thursday, 18 September 2008 14:26:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 September 2008 14:26:16 GMT