|
Home > Online Product Documentation > Table of Contents > Specifying That an Element is Required in DTDs Specifying That an Element is Required in DTDsYou specify that an element is required when you add a reference to that element in another element. In the Tree tab, to specify that an element is required:
1. Define the element that you want to be required. See
Defining Elements in the DTD Tree Tab.
2. Create the element that contains the element that you want to be required. This is the container element.
3. Click the container element name.
4. In the tool bar on the left, click
New Modifier
5. Double-click
Sequence.
6. If the required element can appear only once, skip this step. If the required element can appear more than once, click
New Modifier and double-click
One or More in the pop-up menu.
7. With the modifier highlighted, click
New Reference to Element
8. Enter the name of the element that you want this element to reference.
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. Example 1
For example, suppose the
The tree representation looks like this:
Example 2
It is also possible for an element to be required and for more than one to be allowed. Suppose the
The tree representation looks like this:
|
ADO to XML
The Stylus Studio ADO to XML data coversion wizard simplifies extracting of relational data into any XML format.
Single Source Publishing
Single source publishing is the ability to use one source of information for generating multiple types of output. Stylus Studio XML Publishing enables Single Source Publishing - publish PDF or HTML documents from Relational, XML or Legacy files.
XML to PDF
Convert XML to PDF using Stylus Studio's XML publishing tools - the easiest way to design beautiful document layouts for use in XSL:FO based multi-channel publishing and single source publishing applications.
Web Service Standards
Stylus Studio supports Web service standards including WSDL, UDDI and SOAP. The Web Service Tester lets you easily develop and leverage Web services in your XML applications.