[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

From: Costello, Roger L. <costello@mitre.org>
Date: Thu, 14 May 2009 13:56:27 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB5003F437AFF4@IMCMBX3.MITRE.ORG>
RE: [XML Schema 1.1] What does ##defined and ##definedSibling mean?


> Unfortunately concepts like "an element 
> declaration within the content model" 
> turn out to be more complex than they seem, 
> when you take into account things like 
> substitution groups, derivation by extension, 
> etc. It's easy to simplify things in an email, 
> harder to do so in the spec itself.

Understood.

That said, I find it easiest to learn when I can quickly grasp onto a basic understanding and then over time complete my understanding with the details. 

When I am confronted with all the details - all at once - it makes learning difficult, even impossible ... definitely frustrating. For me, anyway.

/Roger 



-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Thursday, May 14, 2009 1:48 PM
To: Costello, Roger L.; xmlschema-dev@w3.org
Subject: RE: [XML Schema 1.1] What does ##defined and ##definedSibling mean?

Unfortunately concepts like "an element declaration within the content
model" turn out to be more complex than they seem, when you take into
account things like substitution groups, derivation by extension, etc. It's
easy to simplify things in an email, harder to do so in the spec itself.

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:35
> To: xmlschema-dev@w3.org
> Subject: RE: [XML Schema 1.1] What does ##defined and 
> ##definedSibling mean?
> 
>  
> Thanks Michael. Now I understand. Easy. Perhaps those words 
> should be in the specification?
> 
> /Roger
> 
> -----Original Message-----
> From: Michael Kay [mailto:mike@saxonica.com]
> Sent: Thursday, May 14, 2009 1:32 PM
> To: Costello, Roger L.; xmlschema-dev@w3.org
> Subject: RE: [XML Schema 1.1] What does ##defined and 
> ##definedSibling mean?
> 
> 
> 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:57:03 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.