|
Home > Online Product Documentation > Table of Contents > Specifying That An Element Can Contain One of a Group of Elements in DTDs Specifying That An Element Can Contain One of a Group of Elements in DTDs
You might want to define an element that contains one element out of a group of elements. For example, you might want an
In the Tree tab, to define an element that contains one of a group of elements:
1. Define the elements that your new element can contain. See
Defining Elements in DTDs.
2. Define the element that you want to contain another element. This is the container element.
3. Click the container element name.
4. In the left tool bar, click
New Modifier
5. Double-click
Choice.
6. For each element in the group of elements from which one element can appear:
a. Click
New Reference to Element
b. Type the name of the element and press Enter.
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. When the XSLT processor validates an instance document against this DTD, it ensures that each instance of the new element you just defined contains exactly one of the referenced elements. Example
The tree representation for an
|
Configuring an ODBC Data Source Using DataDirect SequeLink Server
How to create and configure an ODBC system data source for use with Stylus Studio using DataDirect Sequelink Server.
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.
Technology Companies That Use Stylus Studio
Technology companies can't always handle every technology that they come across. That's why when it comes to XML, they look to Stylus Studio to guide them. Check out which top technology companies are looking to the future with Stylus Studio.
XQuery Activist Kit
Help us get the word out! This "XQuery for All" activist's kit will help you get educated about the importance of XQuery and to serve as an important rallying point for the community of Microsoft XML developers who have lost their right to XQuery.