W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2199] R-207: Question about wildcard restriction

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 19:05:47 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFcZn-0000eg-KJ@wiggum.w3.org>


           Summary: R-207: Question about wildcard restriction
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

Is the following restriction valid: 
 <xs:sequence minOccurs="0" maxOccurs="1"> 
   <xs:any namespace="##any" processContents="skip" minOccurs="1" 
 <xs:sequence minOccurs="0" maxOccurs="1"> 
       <xs:element name="A" minOccurs="1" maxOccurs="unbounded" /> 
       <xs:element name="B" minOccurs="1" maxOccurs="unbounded" /> 

>From Schema Component Constraint: Particle Derivation OK 
(All:All,Sequence:Sequence -- Recurse)

2 There is a complete order-preserving functional mapping from the particles in 
the {particles} of R to the particles in the {particles} of B such that all of 
the following must be true: ... 

[Definition:] A complete functional mapping is order-preserving if each 
particle r in the domain R maps to a particle b in the range B which follows 
(not necessarily immediately) the particle in the range B mapped to by the 
predecessor of r, if any, where "predecessor" and "follows" are defined with 
respect to the order of the lists which constitute R and B. " 

See the following for Henry's answer and subsequent thread

See also the following related mail: http://lists.w3.org/Archives/Public/www-
xml-schema-comments/2003OctDec/0023.html and 

And, see the following related mail: http://lists.w3.org/Archives/Public/www-
xml-schema-comments/2004JanMar/0037.html and 
Received on Wednesday, 14 September 2005 19:05:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC