But the main reason you need the simpleType declaration is if you want
to use XSD's derivation or refinement mechanisms which only apply to
types not elements.
jane
> Jane - I don't quite understand the XSD in your note. You have
>
> ...
> <element name="title" type="string"/>
> ...
> <simpleType name="title">
> <restriction base="string"/>
> </simpleType>
> ...
>
> Did you mean
>
> ...
> <element name="title" type="Title"/>
> ...
> <simpleType name="Title">
> <restriction base="string"/>
> </simpleType>
> ...
>
> or am I misunderstanding the intention of the simpleType declaration??
>
> --
> [log in to unmask] CSIRO Exploration & Mining
> T:+61(8) 9284 8443 F:+61(8) 9389 1906 M:0403 302 672
> http://www.ned.dem.csiro.au/research/visualisation/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|