W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2009

RE: [XML Schema 1.1] What does ##defined and ##definedSibling mean?

From: Michael Kay <mike@saxonica.com>
Date: Thu, 14 May 2009 18:31:42 +0100
To: "'Costello, Roger L.'" <costello@mitre.org>, <xmlschema-dev@w3.org>
Message-ID: <F7C81BEDE020457E84559FA636DFD322@Sealion>

notQName=##defined

means you can have any element provided its name is not the same as that of
a global element declaration in the schema.

notQName=##definedSibling

means you can have any element provided its name is not the same as that of
an element particle within the content model

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Costello, Roger L.
> Sent: 14 May 2009 18:23
> To: xmlschema-dev@w3.org
> Subject: [XML Schema 1.1] What does ##defined and 
> ##definedSibling mean?
> 
> 
> Hi Folks,
> 
> I am not able to understand what the specification is saying 
> about ##defined and ##definedSibling.
> 
> Would someone tell me what they mean please?
> 
> 
> Here I use ##defined. What does it mean:
> 
>    <xs:element name="Book" maxOccurs="unbounded">
>       <xs:complexType>
>          <xs:all>
>             <xs:any notQName="##defined"/>
>             <xs:element name="Author" type="xs:string"/>
>             <xs:element name="Title" type="xs:string"/>
>             <xs:element name="Date" type="xs:string"/>
>             <xs:element name="ISBN" type="xs:string"/>
>             <xs:element name="Publisher" type="xs:string"/>
>          </xs:all>
>       </xs:complexType>
>    </xs:element>
> 
> 
> Here I use ##definedSibling. What does it mean:
> 
>    <xs:element name="Book" maxOccurs="unbounded">
>       <xs:complexType>
>          <xs:all>
>             <xs:any notQName="##definedSibling"/>
>             <xs:element name="Author" type="xs:string"/>
>             <xs:element name="Title" type="xs:string"/>
>             <xs:element name="Date" type="xs:string"/>
>             <xs:element name="ISBN" type="xs:string"/>
>             <xs:element name="Publisher" type="xs:string"/>
>          </xs:all>
>       </xs:complexType>
>    </xs:element>
> 
> /Roger
Received on Thursday, 14 May 2009 17:32:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:12 GMT