|
Home > Online Product Documentation > Table of Contents > Defining complexTypes That Contain Elements and Attributes - Tree View Defining complexTypes That Contain Elements and Attributes - Tree View
The
In the Tree view, to define a complex type with a similar structure:
1. Click the
Schema node.
2. In the left tool bar, click
New complexType
3. Type a name for this new complexType and press Enter.
4. In the left tool bar, click
New Model Group
5. Double-click the modifier you want. For a description of each modifier, see
Model Group Properties in XML Schemas.
You can specify any number of modifiers in a complexType. Each modifier controls the occurrence of its child nodes. You can specify the same modifier more than once. For example, you might want to specify the
6. For each element that you want to define in this complexType with the selected modifier, perform the following steps:
a. Click the modifier name in the
Tree view.
b. In the left tool bar, click
New Element Definition
c. Type a name for the new element and press Enter. Stylus Studio displays a pop-up menu that lists the built-in simpleTypes and simpleTypes you defined.
d. Double-click the type for the new element.
e. In the
Properties window, you can double-click the field for any property to set the value for that property.
For example, you can specify
7. For each element or group that you want to refer to in this complexType with the selected modifier, perform the following steps:
a. Click the modifier name in the
Tree view.
b. In the left tool bar, click
New Reference to Element
c. Double-click the element or group you want to reference.
8. To define an attribute in this complexType:
a. Click the name of the complexType in the
Tree view.
b. In the left tool bar, click
New Attribute
c. Type a name for the new attribute and press Enter. Stylus Studio displays a pop-up menu that lists the built-in simpleTypes and the simpleTypes you defined in this schema.
d. Double-click the type of the new attribute.
9. To reference an attribute or attributeGroup in this complexType:
a. Click the name of the complexType in the
Tree view.
b. In the left tool bar, click
New Reference to Attribute
c. Double-click the attribute or attributeGroup you want to reference.
|
XML Unicode Encoding
Stylus Studio supports over 300 different file encodings, including UTF-8, UTF-16, EUC-JP, SHIFT-JIS, and more, alowing you to work with any XML document. Robust text editors support standard editing features, and Sense:X intelligent auto-completion.
XQuery Functions - User Defined Functions in XQuery
Dr. Michael Kay's tutorial entitled: 'Defining your own Functions in XQuery' explains how to write powerful User Defined Functions in XQuery.
Berkeley DB XML and Stylus Studio
Develop XML applications for Berkeley DBXML with Stylus Studio integrated tools support for SleepyCat Software's DBXML. Open, Query and Save XML to and from Berkeley DB XML directly from within the Stylus Studio XML IDE.
Stylus Studio Enables Multi-Channel Publishing for University of Pittsburg Professor
Learn how Dr. David Birnbaum of the University of Pittsburgh uses Stylus Studio to develop customized XSLT stylesheets that produce enhanced versions of source documents in different output formats, including Web and print.