Sybase XML manual Defining group properties

Models: XML

1 290
Download 290 pages 48.58 Kb
Page 89
Image 89

Chapter 2 Building an XML model

In the generated XSD file, the group is first declared with the <group> tag and then reused through a reference (ref) set to descriptionLines:

In the generated DTD file, the group is expanded directly within its parent element:

In the generated XDR file, the group is declared through a <group> tag, within an <ElementType> tag with its order attribute set to seq:

Defining group properties

There are global and referencing groups:

Global groups are directly created in a diagram without a parent symbol. In a schema, they are directly linked to the <schema> tag (root element). They can be reused within any element or complex type of the model through references (See descriptionLines in Defining a group of elements)

XSM User's Guide

77

Page 89
Image 89
Sybase XML manual Defining group properties