[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Box, Don" <dbox@d...>
  • To: "'Roger L. Costello'" <costello@m...>, www-xml-schema-comments@w..., xml-dev@x...
  • Date: Fri, 25 Feb 2000 01:16:01 -0800

> -----Original Message-----
> From: Roger L. Costello [mailto:costello@m...]
> Sent: Thursday, February 24, 2000 1:00 PM
> To: www-xml-schema-comments@w...; xml-dev@x...
> Cc: costello@m...; Schneider,John C.; Cokus,Michael S.; 
> Wang,David
> Subject: XML Schemas: lost "open content models"?
> 
> 
> Hi Folks,
> 
> In an earlier incarnation of the XML Schema spec it allowed 
> you to state
> that the content of an element is "open".  
> 
> My question is:  What happened to it?  Is it there in the 
> current spec,
> but under a different guise? Or, if it's not there, is it 
> coming back in
> the next version of the spec?

Look at element and attribute wildcards (<any/> and <anyAttribute/>
respectively). They subsume the functionality of the old model=open/closed
attribute. Both of these are described in Part 1 of the Dec 17 PWD (section
3.5).

Had your "Book" type been defined as follows:

>       <element name="Book">
>            <type>
>                <element name="Title" type="string"/>
>                <element name="Author" type="string"/>
>                <element name="Date" type="string"/>
>                <element name="ISBN" type="string"/>
>                <element name="Publisher" type="string"/>
>                <any minOccurs='0' maxOccurs='*'/>
>            </type>
>       </element>


You would have been fine.

DB
http://www.develop.com/dbox


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member