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] XML Schema Design: no local elements with anonymous types

On 26/03/2008, Costello, Roger L. <costello@mitre.org> wrote:
>  Example: Now NumPages is GOOD because it is globally declared and has a
>  named type.
>
>  <element name="Book">
>     <complexType>
>         <sequence>
>           <element ref="bk:NumPages"/>
>         </sequence>
>     </complexType>
>  </element>

I think you mean:

<element name="Book" type="Book"/>

<complexType name="Book">
  <sequence>
    <element ref="bk:NumPages"/>
  </sequence>
</complexType>

...to expose the Book type.


cheers
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


[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