[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XML Schema Design: no local elements with anonymous types
- From: "Andrew Welch" <andrew.j.welch@gmail.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Wed, 26 Mar 2008 12:04:03 +0000
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]