Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Michael Kay" <mike@--------.--->
To: "'Vasilis Vagenas'" <vagenas.v@-----.--->, <xmlschema-dev@--.--->
Date: 6/6/2006 1:45:00 PM
> 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?

You can't. With mixed content, (that is, text nodes and element nodes as
siblings of each other) you can't restrict the content (or position) of the
text nodes.

It's best to avoid using mixed content this way - mixed content is designed
for marking up continuous text.

Michael Kay
http://www.saxonica.com/


From george@o... Tue Jun 06 11:48:00 200


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent