Sybase XML Impact Driver User Manual


 
Chapter 2 Building an XML model
XSM User's Guide 39
In a model targeted with the XML-Data Reduced language, elements are
defined by different attributes:
XDR attribute
for an element Description
Property or page
in element
property sheet
Model
To specify if a global element can
contain new local elements. Set to
closed by default. Set to open if an
Any symbol is attached to the element
symbol
Content
To specify the content of a global
element. If a group particle and a data
type are defined, the content value is
mixed. If a group particle and no data
type is defined, the content value is
eltOnly. If no group particle and a
data type is defined, the content value
is textOnly. If no group particle or
data type is defined, the content value
is empty
Group type, Type
Order
To specify how local elements are
organized within a global element.
Set to seq for a sequence group
particle. Set to one for a choice group
particle. Set to many for an All group
particle
Group type
dt:type
To specify a data type for a global
element
Type
dt:values
To specify a list of available values
for a global element
Values page
type
To specify the name of a global
element as reference for a local
element
Reference
minOccurs
To specify the minimum number of
occurrences for a local element.
Usually set to 0 or 1
Detail page in local
element property
sheet
maxOccurs
To specify the maximum number of
occurrences for a local element.
Usually set to 1 or * (unbounded)
Detail page in local
element property
sheet
Defining elements
in XDR files