This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14173 - Wrong substitution group in test
Summary: Wrong substitution group in test
Status: CLOSED DUPLICATE of bug 10121
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: WG tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: XSD 1.1 PR
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 03:16 UTC by Sandy Gao
Modified: 2011-10-21 16:34 UTC (History)
1 user (show)

See Also:


Attachments

Description Sandy Gao 2011-09-16 03:16:45 UTC
In test group "sg-and-defined-Sibling-3", the schema "wgData/sg/snbranch.xsd" is meant to test "interaction of substitution groups and #definedSibling".

The only substitution group in the schema is

 <xsd:element name="s1" type="xsd:string" substitutionGroup="tns:s"/>

But instance tests "snn1a" and "snn1c" seem to expect another substitution group:

 <xsd:element name="n1" type="xsd:string" substitutionGroup="tns:n"/>

If "n1" does not substitute "n", then it is not excluded by the "#definedSibling" wildcard, and the schema only allows an "a" to following "n1", which means "snn1a" is valid (but it's expected to be invalid) and "snn1c" is invalid (but expected to be valid).
Comment 1 David Ezell 2011-10-21 16:25:07 UTC

*** This bug has been marked as a duplicate of bug 10121 ***