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 2002 - R-024: Derivation by Restriction: pointless occurrences
Summary: R-024: Derivation by Restriction: pointless occurrences
Status: CLOSED LATER
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 19:47 UTC by Sandy Gao
Modified: 2009-04-21 19:24 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-07 19:47:49 UTC
The constraints for "Particle Valid (Restriction)" indicate that pointless 
occurrences of sequence, all and choice should be ignored. By doing so, it is 
possible that certain derived types which would otherwise be valid restrictions 
of their base types, become invalid.

See the following for more information, and an example: 
http://lists.w3.org/Archives/Public/www-xml-schema-
comments/2001AprJun/0230.html 

Note that Achille Fokoue posted another example illustrating this problem. See 
the following for more information:
http://lists.w3.org/Archives/Public/www-xml-schema-
comments/2001JulSep/0111.html 

Note also that a subsequent email on pointlessness was sent in by Gareth 
Sylvester-Bradley:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JulSep/0040.html
Comment 1 Sandy Gao 2005-09-07 19:48:33 UTC
The WG has discussed various solutions: 
- Leave the rules asis. 
- Modify the rules for pointlessness to indicate that they "may" apply instead 
of "must" apply 
- define a new algorithm 

Resolution
The WG has decided that although the rules have some awkward results, they are 
not in error. It will be put on the list of issues to consider for a future 
revision of XML Schema.