|
Home > Online Product Documentation > Table of Contents > Specifying That an Element is Optional in DTDs Specifying That an Element is Optional in DTDsYou specify that an element is optional when you add a reference to that element in another element. When an element is optional, it means that there can be one or none. If you want to specify that there can be none, one, or more, use the Zero or More modifier. See Specifying That Multiple Instances of An Element Are Allowed in DTDs. In the Tree tab, to specify that an element is optional:
1. Define the element that you want to be optional. See
Defining Elements in the DTD Tree Tab.
2. Create the element that contains the element that you want to be optional. This is the container element.
3. Click the container element name.
4. In the tool bar on the left, click
New Modifier
5. If the container element can contain only the optional element, skip this step. If the container element can contain more than one element, click
Sequence.
6. Click
New Modifier.
7. In the pop-up menu that appears, double-click
Optional.
8. In the tool bar on the left, 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. |
XML Videos
Stylus Studio online XML video demonstrations illustrate how easy it is to learn advanced XML editing techniques. Now playing: Java Code Generation, Convert to XML, Grid View, and many other informative video demonstrations.
XSD Editor
XSD Editor provides a synchronized split-pane interface that simultaneously shows both a visual XSD Diagram and the underlying code, with changes in one pane immediately reflected in the other
Semiconductors & E-Components
Buuuuuzzzzz, zappp! There sure is a lot of electiricty flying with these semiconductors & c-component producers. It is because these top companies use Stylus Studio 2006 to light up their work day!
XML Notepad
XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.


