W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2006

declaring an element having subelements and restricted child-text-node value

From: Vasilis Vagenas <vagenas.v@gmail.com>
Date: Mon, 5 Jun 2006 19:47:20 +0300
Message-ID: <cd6e5b300606050947k6028f7f4xa937a70049b87fcd@mail.gmail.com>
To: xmlschema-dev@w3.org

I am trying to write an xml schema which will allow xml instance
documents of the following form:


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

For examle:

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!
Received on Tuesday, 6 June 2006 11:36:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:10 UTC