- From: <bugzilla@wiggum.w3.org>
- Date: Sun, 29 Nov 2009 15:58:56 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8399
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-
errata.html#E28
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
<xsl:import-schema>
<xs:schema targetNamespace="http://localhost/ns/yes-no"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="local:yes-no">
<xs:restriction base="xs:string">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
</xsl:import-schema>
<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