![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xsd:simpletype or [Thread Next] RE: simpletype or To: "'Dan Vint'" <dvint@-----.--->, <xmlschema-dev@--.---> Date: 1/12/2006 9:01:00 AM > > Can someone explain these two constructs and any advantage or > disadvantage > to using one over the other? For elements, it's true enough that a complex type with simple content and no attributes is much the same as a simple type. But a simple type can also be used to define the type of an attribute. When it comes to writing schema-aware queries and stylesheets, simple types (especially atomic types) are much more flexible than complex types, because a free-standing XPath value can have an atomic type, but only element nodes can have a complex type. There might be similar considerations when using data binding tools, I don't know. Michael Kay http://www.saxonica.com/ From petexmldev@t... Thu Jan 12 09:11:03 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
