Aggregating Modifiers to Allow Any Order and Any Number in DTDs

The Choice modifier specifies that only one of the specified elements can appear in an instance document. However, if you specify the Zero or More modifier and then the Choice modifier, the result is that the specified elements can appear in any order and each element can appear any number of times.

The text for such an element definition is as follows:

<!ELEMENT A (B|C|D)*>
               

            

The tree representation is as follows:

A
               

              
Zero or More
                   
Choice
                   
	B
                   
	C
                   
	D
                   

                

This allows an A element to contain

  • Zero, one, or more B elements
  • Zero, one, or more C elements
  • Zero, one, or more D elements

Furthermore, the contained elements can be in any order.

Simple API for XML (SAX)

SAX stands for Simple API for XML - SAX is an XML standard used everywhere in Stylus Studio, for parsing and building representations of XML documents.

EDIFACT Reference

The EDIFACT Reference is a free developer resource providing the most in-depth information on EDIFACT constructs and data models.

Consumer Food Products

Want to know what special ingredient is in these consumer food product companies work enviornment? Well it's a touch Stylus Studio that give these consumer food product companies the extra edge they need for producing such high quality food products!

Using DataDirect XQuery with Stylus Studio

Learn how to query any relational database using XQuery and the XQuery API for Java using DataDirect XQuery, an embeddable Java component, and Stylus Studio the world's leading XML IDE.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member