This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the test set file All.testSet from Saxonica the following XSD 1.1 test seems to be wrongly specified: <testGroup name="all004" -> <instanceTest name="all004.v02.xml"> The expected validity of this test is specified as "valid". I believe when instance document all004.v02.xml is attempted to be validated with schema all004.xsd a compliant XSD 1.1 processor must return an "invalid" outcome (the reasons for this are specified below). In the schema document mentioned above, the element declaration specifies: <xs:element name="doc" nillable="1"> .. </xs:element> and the instance document is as follows: <doc xsi:nil="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> </doc> Since there are whitespace child nodes within element "doc", the contents of element "doc" are not strictly empty. To rectify this test case, I would suggest either of following measures: 1. Modify the instance document to remove whitespace children within element "doc", i.e corrected instance document would then be, <doc xsi:nil="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> OR 2. Modify the test spec of test <instanceTest name="all004.v02.xml"> to say expected validity as "invalid".
Thanks for reporting this. I believe you are correct. As well as revealing an error in the test case, this appears to point to (a) a bug in Saxon, and (b) a serious gap in the coverage of the test suite which this test accidentally filled.
I fixed this a while ago, but failed to record here the fact that I had done so. I changed the v02 instance to contain no whitespace (and therefore be valid), and added an n02 instance which is invalid because it contains whitespace. I am therefore marking this as resolved.