[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

From: Michael Kay <mike@saxonica.com>
Date: Tue, 6 Jun 2006 12:44:36 +0100
To: "'Vasilis Vagenas'" <vagenas.v@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <00cb01c6895e$9605c710$6401a8c0@turtle>
child.text content

> 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/
Received on Tuesday, 6 June 2006 11:44:48 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.