
Chapter 3 Building XML Models
Attribute Groups (XSM)
Attribute groups are not supported by XDR.
An attribute group is a set of attributes, which is referenced in the model by various elements:
- An attribute group - is created independently, without a parent element, and can be reused multiple times by elements, complex types or other global attribute groups, through references. In a schema, it is directly linked to the <schema> tag (root element). See Creating an attribute group.
- A reference to an attribute group - is created within an element, complex type, or global attribute group, and makes the referenced attribute group available to its parent. See Creating a reference to an attribute group.
For example:
The quality attribute group is composed of the guarantee and qualityStandards attributes. The productA element reuses the quality attribute group via the Attributes tab of its property sheet.
- Generated XSD file:
In a schema, a group of attributes is declared with the <attributeGroup> tag. It can contain the following tags: <attribute>, <attributeGroup> or <anyAttribute>.
- Generated DTD file:
Copyright (C) 2007. Sybase Inc. All rights reserved.
|
|