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

[Bug 8399] New: inline schema example still has errors

From: <bugzilla@wiggum.w3.org>
Date: Sun, 29 Nov 2009 15:58:56 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-8399-523@http.www.w3.org/Bugs/Public/>

           Summary: inline schema example still has errors
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
               URL: http://www.w3.org/XML/2007/qt-errata/xslt-
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: martin.honnen@gmx.de
         QAContact: public-qt-comments@w3.org

The errata http://www.w3.org/XML/2007/qt-errata/xslt-errata.html#E28 corrects
the inline schema example to

  <xs:schema targetNamespace="http://localhost/ns/yes-no"
    <xs:simpleType name="local:yes-no">
      <xs:restriction base="xs:string">
        <xs:enumeration value="yes"/>
        <xs:enumeration value="no"/>

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

That still has two errors in my understanding, the obvious is that the variable
declaration needs to use xsl:variable, not xs:variable, and in my understanding
the type needs to be defined as
  <xs:simpleType name="yes-no">
without a prefix, as http://www.w3.org/TR/xmlschema-1/#declare-datatype defines
the name as an NCName, not as a QName.

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 Sunday, 29 November 2009 15:58:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:29 UTC