OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: XML Schemas: lost "open content models"?

[ Lists Home | Date Index | Thread Index ]
  • From: "Box, Don" <dbox@develop.com>
  • To: "'Roger L. Costello'" <costello@mitre.org>, www-xml-schema-comments@w3c.org, xml-dev@xml.org
  • Date: Fri, 25 Feb 2000 01:16:01 -0800

> -----Original Message-----
> From: Roger L. Costello [mailto:costello@mitre.org]
> Sent: Thursday, February 24, 2000 1:00 PM
> To: www-xml-schema-comments@w3c.org; xml-dev@xml.org
> Cc: costello@mitre.org; 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

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.


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS