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 4043 - attribute/attZ015
Summary: attribute/attZ015
Status: RESOLVED INVALID
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: updated metadata 2008-11-01
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-08 01:01 UTC by Michael Kay
Modified: 2008-11-02 16:32 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-08 01:01:15 UTC
I believe that the instance document attZ015.xml is invalid against the schema attZ015.xsd because the schema gives the attribute as use="prohibited", but it is present in the instance.

It appears from the metadata that this test was originally intended to fail on the grounds that use="prohibited" is not allowed in an attribute group; however this assumption was incorrect and the schema and instance are both labelled as valid.
Comment 1 Michael Champion 2007-01-13 12:11:18 UTC
> This test does not make the assumption that use=prohibited is 
> disallowed from attribute groups. It is merely testing that prohibited 
> attributes are excluded from the 'attribute uses'
> of attribute groups. Prohibited attributes within attribute groups are 
> pointless and do nothing. The instance should be valid as the 
> attribute 'a' should validate against the declaration in the complex 
> type 'base'.
>
> This was posted as a question to the schema dev list [1] and verified 
> by Henry.
>
> [1]
> http://lists.w3.org/Archives/Public/xmlschema-dev/2005May/0053.html
>
> Thanks,
> Zafar Abbas

Comment 2 Michael Kay 2008-06-21 14:36:24 UTC
Agreed that, surprising as it may seem, use="prohibited" within an attribute group does not have the effect of making the attribute prohibited. The bug report is therefore invalid.