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 11898 - Duplicate entry in wildcard test set with wrong validity
Summary: Duplicate entry in wildcard test set with wrong validity
Status: CLOSED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Saxon tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 20:21 UTC by Sandy Gao
Modified: 2011-10-21 16:38 UTC (History)
1 user (show)

See Also:


Attachments

Description Sandy Gao 2011-01-27 20:21:48 UTC
saxonMeta/Wild.testSet has two entries for the same combination: "wild059.xsd" + "wild058.n2.xml".

Both are marked "valid", but the documentation suggests that they are invalid "zong attribute is not present in the intersection of the attribute groups."

The instance has

<zing zong="12:00:00"/>

But the attribute wildcard in "zing" has ##defined excluded, and "zong" is a globally declared attribute, so should not be allowed to appear on "zing". Suggest to change the expected validity to "invalid".

<xs:complexType name="zing">
  <xs:sequence/>
  <xs:attributeGroup ref="g"/>
  <xs:attributeGroup ref="h"/>
</xs:complexType>

<xs:element name="zing" type="zing"/>

<xs:attribute name="zang" type="xs:date"/>
<xs:attribute name="zong" type="xs:time"/>

<xs:attributeGroup name="g">
  <xs:anyAttribute namespace="##any" notQName="jang" processContents="skip"/>
</xs:attributeGroup>

<xs:attributeGroup name="h">
  <xs:anyAttribute namespace="##local" notQName="##defined" processContents="skip"/>
</xs:attributeGroup>
Comment 1 Michael Kay 2011-02-07 11:28:15 UTC
Agreed.

One of the redundant tests will be removed, and the other will be marked invalid.