Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Can XSD simple types be derived from complex types? [Thread Next] Re: Can XSD simple types be derived from complex types?To: NULL Date: 12/1/2005 7:51:00 PM Soren Kuula writes:
> Looks like a silly question? I'm in doubt!
>
> - the Recommendation does it (anyType / anySimple type)
That's special-cased.
> - it's possible to restrict away all optional elements and attributes
> from a mixed complex type. If doing that on a type where all elements
> and attributes are optional, does that leave one with the equivalent
> of anySimpleType, then?
Not really -- such a type defn would have untyped content, not quite
the same as anySimpleType -- _but_ you can derive a complex type defn
with simple content, e.g. xs:date, from an emptiable mixed complex
type defn.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@i...
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
