Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Include/Import and namespace >Thread Next - xs:choice with a single choice declaring an element having subelements and restricted child-text-node valueTo: xmlschema-dev@--.--- Date: 6/5/2006 10:47:00 PM
I am trying to write an xml schema which will allow xml instance
documents of the following form:
[............]
<Brand>X1
<Type>X2
[............]
where X1 must belong to a set of string values, e.g. X1 in {"HP", "Toshiba"}
and X2 must belong to another set of string values, e.g. X2 in
{"Laptop","Desktop"}.
For examle:
<Brand>HP
<Type>Laptop</Type>
<Type>Desktop</Type>
</Brand>
How can I declare an element that satisfies the following:
1) it has subelements and
2) the value of its child-text node is restricted (to belong to a set
of values),
just as in the example above?
I can declare an element satisfying either condition 1 or condition 2,
but not both of them.
Thank you very much!
From mike@s... Tue Jun 06 11:44:48 2006
Received: from maggie.w3 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
