|
Home > Online Product Documentation > Table of Contents > About Modifiers in Element Definitions in DTDs About Modifiers in Element Definitions in DTDsWhen you define an element, you specify one or more modifiers. A modifier specifies a rule about the structure or occurrence of the element being defined. An element can have only one top-level modifier. However, you can add one or more modifiers to the top-level modifier. A modifier can aggregate elements or other modifiers. This section discusses the following topics: Description of Element Modifiers in DTDsTable 54 describes the available modifiers:
Simple Example of Aggregating Modifiers in DTDs
Suppose you want a
In the
More Complex Example of Aggregating Modifiers in DTDsFollowing is a more complicated example. Suppose you want book elements to include To accomplish this, you would perform steps that generate the following tree representation:
In the
Text view of the DTD, the definition for the
Aggregating Modifiers to Allow Any Order and Any Number in DTDsThe 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:
The tree representation is as follows:
This allows an
Furthermore, the contained elements can be in any order. |
XSD Documentation Generator
Stylus Studio®'s XSD Editor includes an integrated XSD documentation generator, allowing you to easily publish XML content models defined in XSD in a convenient, HTML format.
XQuery Profiler
Stylus Studio's XQuery Profiler allows you to benchmark any XQuery expression, and it helps you locate and eliminate performance bottlenecks for maximum XQuery performance.
Improving XSLT and XQuery Performance with Stylus Studio
This online video demonstration covers XQuery and XSLT performance tuning using the Stylus Studio XSLT profiler and the XQuery profiler.
Java Code Generation
The Stylus Studio Java Codce Generator lets you generate deployable Java code for XQuery and XSLT at the push of a button!