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

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 UTC