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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Language Theorie concerning XML Schema (heavy, at least to me)

[ Lists Home | Date Index | Thread Index ]

I'll answer a simple question which I understand, and which I _think_
is what you're asking.

The following XML document is valid:

<!DOCTYPE root [
<!ELEMENT root (a|x)>
<!ELEMENT a (b|y)>
<!ELEMENT b (c|z)>

Note it contains no declarations for the elements x, y and z.

The corresponding schema document successfully validates the same

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
 <xs:element name="root">
    <xs:element ref="a"/>
    <xs:element ref="x"/>

 <xs:element name="a">
    <xs:element ref="b"/>
    <xs:element ref="y"/>

 <xs:element name="b">
    <xs:element ref="c"/>
    <xs:element ref="z"/>
 <xs:element name="c">
 <xs:element name="x" type="unknown1"/>
 <xs:element name="y" type="unknown2"/>
 <xs:element name="z" type="unknown3"/>

So yes, you can do incremental development of a schema for a complex
XML language.

 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]


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

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