- From: <bugzilla@jessica.w3.org>
- Date: Sun, 28 Aug 2011 16:44:40 +0000
- To: public-xml-schema-testsuite@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13935 Summary: xsd 1.1 assertions testing comment nodes Product: XML Schema Test Suite Version: 2006-11-06 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Saxon tests AssignedTo: cmsmcq@blackmesatech.com ReportedBy: gandhi.mukul@gmail.com QAContact: public-xml-schema-testsuite@w3.org The Saxon test assert023.n1.xml (in the "assert" test set), specifies the following requirement, XML instance document: <temp x="204"><!--comments not allowed--></temp> XSD 1.1 schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="temp"> <xs:complexType> <xs:sequence/> <xs:attribute name="x" use="required"/> <xs:attribute name="y" use="optional"/> <xs:assert test="empty(.//comment())"/> </xs:complexType> </xs:element> </xs:schema> and says that the expected validity of this test is "invalid". It seems that expected validity of this test should be "valid". I don't think that, the XSD (1.0 as well as 1.1) language allows validating XML comments [1]. With this [1] in mind, the approach Xerces follows in this regard is, that it doesn't ever include XPath comment nodes in the XDM tree that it constructs. Therefore an assert like above would also be true for Xerces. If you agree with this bug report, would you kindly change the status of this test to "valid". Or let us know, that how would you justify the correctness of this test? Thanks. -- 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, 28 August 2011 16:44:42 UTC