XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Side-by-side comparison of XML Schema and Relax NG

> <schema xmlns="http://www.w3.org/2001/XMLSchema";>
>    <element name="Book">
>        <complexType>
>            <sequence>
>                <element name="Title" maxOccurs="unbounded" type="string" />
>            </sequence>
>        </complexType>
>    </element>
> </schema>

Or like this:

<xs:element name="Book" type="Book"/>
<xs:element name="Title" type="xs:string"/>

<xs:complexType name="Book">
    <xs:sequence>
        <xs:element ref="Title" maxOccurs="unbounded"/>
    </xs:sequence>
</xs:complexType>

Then you get a nice separation of elements and types.


-- 
Andrew Welch
http://andrewjwelch.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS