This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
SchemaImport/emptyUnion11.xsd contains an empty union type that is not valid according to: http://www.w3.org/TR/xmlschema11-2/#defn-rep-constr "Either the memberTypes [attribute] of the <union> element must be non-empty or there must be at least one simpleType [child]." Here is the error thrown by Xerces when validating the mentioned schema: E [Xerces] src-union-memberTypes-or-simpleTypes: A <union> element must have either a non-empty memberTypes [attribute] or at least one <simpleType> element among its [children].
As I pointed out in message https://lists.w3.org/Archives/Member/w3c-xsl-query/2013May/0042.html the XSD 1.1 spec is a little unclear whether unions with no members are allowed. However, the reference you provided seems to make it clear that even if they are allowed at the schema component level (which is necessary to support xs:empty) they are not allowed at the XML representation level, which makes them effectively untestable. So I think we will have to withdraw this collection of tests.
(In reply to comment #1) > As I pointed out in message > > https://lists.w3.org/Archives/Member/w3c-xsl-query/2013May/0042.html > > the XSD 1.1 spec is a little unclear whether unions with no members are > allowed. > > However, the reference you provided seems to make it clear that even if they > are allowed at the schema component level (which is necessary to support > xs:empty) they are not allowed at the XML representation level, which makes > them effectively untestable. So I think we will have to withdraw this > collection of tests. Here is the list of test-cases from "prod-SchemaImport" that are using the SchemaImport/emptyUnion11.xsd: prod-SchemaImport empty-union-001, prod-SchemaImport empty-union-005, prod-SchemaImport empty-union-006, prod-SchemaImport empty-union-007, prod-SchemaImport empty-union-015, prod-SchemaImport empty-union-016, prod-SchemaImport empty-union-020, prod-SchemaImport empty-union-028, prod-SchemaImport empty-union-034, prod-SchemaImport empty-union-035, prod-SchemaImport empty-union-037, prod-SchemaImport empty-union-041, prod-SchemaImport empty-union-042, prod-SchemaImport empty-union-049
Removed test cases specified in comment #2.
The list of tests in comment #2 was (very) incomplete. All the tests with names beginning "emptyUnion" have now been removed.