Re: [xml-dev] XML Schema Design: no local elements with anonymous types

From
Andrew Welch <>
To
"Costello, Roger L." <>
Date
2008-03-26T12:04:03Z
ID
<>
Thread
Re: [xml-dev] XML Schema Design: no local elements with anonymous types
On 26/03/2008, Costello, Roger L. <> 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/