|
Home >Online Product Documentation >Table of Contents >Specifying That Multiple Instances of An Element Are Allowed in DTDs Specifying That Multiple Instances of An Element Are Allowed in DTDsYou specify that multiple instances of an element are allowed when you add a reference to that element in another element. When multiple instances of an element are allowed, you specify that there can be either In the Tree tab, to specify that there can be multiple instances of an element:
1. Define the element that can appear multiple times. See Defining Elements in the DTD Tree Tab.
2. Define the element that contains the element that can appear multiple times. This is the container element.
3. Click the container element name.
4. In the left tool bar, click New Modifier
5. If the container element can contain only one type of element, skip this step. If the container element can contain more than one type of element, double-click Sequence, and then click New Modifier.
6. Double-click Zero or More to allow the container element to contain zero, one, or more instances of an element. Or, double-click One or More to allow the container element to contain one or more instances of an element.
7. In the left tool bar, click New Reference to Element After you add a reference to an element, you might want to check the definition of the referenced element. To do this, right-click the reference. In the shortcut menu, click Go To Definition. Stylus Studio moves the focus to the definition of the referenced element. Suppose there are some elements that can appear zero, one, or more times, and there are other elements that can appear one or more times. The tree representation for this might look like the following: In this example, an instance document must contain these elements in the following order: Suppose you want them in the following order: In this case, the tree representation would look like this: |
Map between EDIFACT and X12
Anything can be mapped to anything: EDIFACT to X12 or vice-versa, either to XML, and any of those to flat files or other formats. Both the XSLT and XQuery mappers can help bridge complex formats with ease.
HTML Tidy
HTML Tidy is a program for turning HTML into something that can be parsed as XML, unlocking their data for use in XSLT and XQuery programs. Learn how to use HTML Tidy in Stylus Studio now.
Why XQuery - The Case for XQuery
Read "The Case for XQuery" - an article that debuted in the November 2005 issue of SOA WebServices Journal, written by Jerry King, Vice President of DataDirect Technologies.
Convert HTML to XML
Convert HTML-to-XML with a Document Wizard that quickly converts any HTML to standard XML with the click of a button! To get started, just click File, Document Wizards on the Stylus Studio menu.


