XML Schema Documentation xaal-structures.xsd

Schema Document Properties

Target Namespace http://www.cs.hut.fi/Research/SVG/XAAL
Version 0.1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition

Declared Namespaces

Prefix Namespace
Default namespace http://www.cs.hut.fi/Research/SVG/XAAL
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
html http://www.w3.org/1999/xhtml

Schema Component Representation

<xs:schema targetNamespace="http://www.cs.hut.fi/Research/SVG/XAAL" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
<xs:include schemaLocation="xaal-graphical-animation.xsd"/>
...
</xs:schema>

Global Definitions

Attribute Group: orientation-attributes

Name orientation-attributes

XML Instance Representation
orientation=" xs:token (value comes from list: {'horizontal'|'vertical'}) [0..1]"

Schema Component Representation

<xs:attributeGroup name="orientation-attributes">
<xs:attribute name="orientation" use="optional" default="horizontal">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="horizontal"/>
<xs:enumeration value="vertical"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>

Attribute Group: structure-attributes

Name structure-attributes

XML Instance Representation
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"

Schema Component Representation

<xs:attributeGroup name="structure-attributes">
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="style" type="xs:IDREF" use="optional"/>
<xs:attribute name="ref" type="xs:IDREF" use="optional"/>
</xs:attributeGroup>

Complex Type: array

Super-types: base-structure < array (by extension)
Sub-types: None
Name array
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
indexed=" xs:boolean [0..1]"
size=" xs:int [0..1]"
orientation=" xs:token (value comes from list: {'horizontal'|'vertical'}) [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
<index> index </index> [0..*]
</...>

Schema Component Representation

<xs:complexType name="array">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:sequence>
<xs:element name="index" type="index" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="indexed" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="size" type="xs:int" use="optional"/>
<xs:attributeGroup ref="orientation-attributes"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: base-structure

Super-types: None
Sub-types:
Name base-structure
Abstract yes

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
</...>

Schema Component Representation

<xs:complexType name="base-structure" abstract="true">
<xs:sequence>
<xs:element name="narrative" type="xhtml" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="structure-property" type="structure-property" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="coordinate" type="coordinate" minOccurs="0"/>
<xs:element name="style" type="style" minOccurs="0"/>
<xs:element name="graphical" type="graphical" minOccurs="0"/>
</xs:sequence>
<xs:attributeGroup ref="structure-attributes"/>
</xs:complexType>

Complex Type: binedge

Super-types: base-structure < edge (by extension) < binedge (by extension)
Sub-types: None
Name binedge
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
from=" xs:IDREF [1]"
to=" xs:IDREF [1]"
directed=" xs:boolean [0..1]"
label=" xs:token [0..1]"
child=" child-type [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
</...>

Schema Component Representation

<xs:complexType name="binedge">
<xs:complexContent>
<xs:extension base="edge">
<xs:attribute name="child" type="child-type" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: bintree

Super-types: base-structure < bintree (by extension)
Sub-types: None
Name bintree
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
root=" xs:IDREF [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: bin-node-or-edge [0..*]
Start Choice [1]
<node> node </node> [0..1]
<edge> binedge </edge> [0..1]
End Choice
End Group: bin-node-or-edge
</...>

Schema Component Representation

<xs:complexType name="bintree">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:group ref="bin-node-or-edge" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute name="root" type="xs:IDREF" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: edge

Super-types: base-structure < edge (by extension)
Sub-types:
Name edge
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
from=" xs:IDREF [1]"
to=" xs:IDREF [1]"
directed=" xs:boolean [0..1]"
label=" xs:token [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
</...>

Schema Component Representation

<xs:complexType name="edge">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:attribute name="from" type="xs:IDREF" use="required"/>
<xs:attribute name="to" type="xs:IDREF" use="required"/>
<xs:attribute name="directed" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="label" type="xs:token" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: graph

Super-types: base-structure < graph (by extension)
Sub-types: None
Name graph
Abstract no
Documentation Graph in XAAL.

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: node-or-edge [0..*]
Start Choice [1]
<node> node </node> [0..1]
<edge> edge </edge> [0..1]
End Choice
End Group: node-or-edge
</...>

Schema Component Representation

<xs:complexType name="graph">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:group ref="node-or-edge" minOccurs="0" maxOccurs="unbounded"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: graphical

Super-types: None
Sub-types: None
Name graphical
Abstract no

XML Instance Representation

<...>
Start Sequence [0..*]
End Sequence
</...>

Schema Component Representation

<xs:complexType name="graphical">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:group ref="all-graphics"/>
<xs:group ref="all-graphical-operations"/>
</xs:sequence>
</xs:complexType>

Complex Type: index

Super-types: base-structure < node (by extension) < index (by extension)
Sub-types: None
Name index
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
label=" xs:token [0..1]"
index=" xs:int [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: structures [0..1]
Start Choice [1]
<array> array </array> [0..1]
<graph> graph </graph> [0..1]
<list> list </list> [0..1]
<tree> tree </tree> [0..1]
<bintree> bintree </bintree> [0..1]
End Choice
End Group: structures
<key> key </key> [0..1]
</...>

Schema Component Representation

<xs:complexType name="index">
<xs:complexContent>
<xs:extension base="node">
<xs:attribute name="index" type="xs:int"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: key

Super-types: base-structure < key (by extension)
Sub-types: None
Name key
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
value=" xs:token [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
</...>

Schema Component Representation

<xs:complexType name="key">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:attribute name="value" type="xs:token" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: list

Super-types: base-structure < list (by extension)
Sub-types: None
Name list
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
orientation=" xs:token (value comes from list: {'horizontal'|'vertical'}) [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: node-or-edge [0..*]
Start Choice [1]
<node> node </node> [0..1]
<edge> edge </edge> [0..1]
End Choice
End Group: node-or-edge
</...>

Schema Component Representation

<xs:complexType name="list">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:group ref="node-or-edge" minOccurs="0" maxOccurs="unbounded"/>
<xs:attributeGroup ref="orientation-attributes"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: marker

Super-types: base-structure < marker (by extension)
Sub-types: None
Name marker
Abstract no
Documentation A marker that can be used to add a pointer to a structure. To move the marker, change the property 'target' using the change-property operation.

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
target=" xs:IDREF [1]"
label=" xs:string [1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
</...>

Schema Component Representation

<xs:complexType name="marker">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:attribute name="target" type="xs:IDREF" use="required"/>
<xs:attribute name="label" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: node

Super-types: base-structure < node (by extension)
Sub-types:
Name node
Abstract no
Documentation The possible coordinate specifying the position of the node is relative to the position of the structure that contains it.

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
label=" xs:token [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: structures [0..1]
Start Choice [1]
<array> array </array> [0..1]
<graph> graph </graph> [0..1]
<list> list </list> [0..1]
<tree> tree </tree> [0..1]
<bintree> bintree </bintree> [0..1]
End Choice
End Group: structures
<key> key </key> [0..1]
</...>

Schema Component Representation

<xs:complexType name="node">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:group ref="structures" minOccurs="0"/>
<xs:element name="key" type="key" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="label" type="xs:token" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Complex Type: structure-property

Super-types: None
Sub-types: None
Name structure-property
Abstract no

XML Instance Representation

<...
name=" xs:token [1]"
value=" xs:string [0..1]"/>

Schema Component Representation

<xs:complexType name="structure-property" mixed="true">
<xs:attribute name="name" type="xs:token" use="required"/>
<xs:attribute name="value" type="xs:string" use="optional"/>
</xs:complexType>

Complex Type: tree

Super-types: base-structure < tree (by extension)
Sub-types: None
Name tree
Abstract no

XML Instance Representation

<...
id=" xs:ID [0..1]"
style=" xs:IDREF [0..1]"
ref=" xs:IDREF [0..1]"
root=" xs:IDREF [0..1]">
<narrative> xhtml </narrative> [0..*]
<structure-property> structure-property </structure-property> [0..*]
<coordinate> coordinate </coordinate> [0..1]
<style> style </style> [0..1]
<graphical> graphical </graphical> [0..1]
Start Group: node-or-edge [0..*]
Start Choice [1]
<node> node </node> [0..1]
<edge> edge </edge> [0..1]
End Choice
End Group: node-or-edge
</...>

Schema Component Representation

<xs:complexType name="tree">
<xs:complexContent>
<xs:extension base="base-structure">
<xs:group ref="node-or-edge" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute name="root" type="xs:IDREF" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Model Group: all-structures

Name all-structures

XML Instance Representation
Start Group: structures [0..1]
Start Choice [1]

<array> array </array> [0..1]
<graph> graph </graph> [0..1]
<list> list </list> [0..1]
<tree> tree </tree> [0..1]
<bintree> bintree </bintree> [0..1]
End Choice
End Group: structures
Start Group: node-or-edge [0..1]
Start Choice [1]
<node> node </node> [0..1]
<edge> edge </edge> [0..1]
End Choice
End Group: node-or-edge
<key> key </key> [0..1]
<index> index </index> [0..1]
<marker> marker </marker> [0..1]

Schema Component Representation

<xs:group name="all-structures">
<xs:sequence>
<xs:group ref="structures" minOccurs="0"/>
<xs:group ref="node-or-edge" minOccurs="0"/>
<xs:element name="key" type="key" minOccurs="0"/>
<xs:element name="index" type="index" minOccurs="0"/>
<xs:element name="marker" type="marker" minOccurs="0"/>
</xs:sequence>
</xs:group>

Model Group: bin-node-or-edge

Name bin-node-or-edge

XML Instance Representation
Start Choice [1]

<node> node </node> [0..1]
<edge> binedge </edge> [0..1]
End Choice

Schema Component Representation

<xs:group name="bin-node-or-edge">
<xs:choice>
<xs:element name="node" type="node" minOccurs="0"/>
<xs:element name="edge" type="binedge" minOccurs="0"/>
</xs:choice>
</xs:group>

Model Group: node-or-edge

Name node-or-edge

XML Instance Representation
Start Choice [1]

<node> node </node> [0..1]
<edge> edge </edge> [0..1]
End Choice

Schema Component Representation

<xs:group name="node-or-edge">
<xs:choice>
<xs:element name="node" type="node" minOccurs="0"/>
<xs:element name="edge" type="edge" minOccurs="0"/>
</xs:choice>
</xs:group>

Model Group: structures

Name structures

XML Instance Representation
Start Choice [1]

<array> array </array> [0..1]
<graph> graph </graph> [0..1]
<list> list </list> [0..1]
<tree> tree </tree> [0..1]
<bintree> bintree </bintree> [0..1]
End Choice

Schema Component Representation

<xs:group name="structures">
<xs:choice>
<xs:element name="array" type="array" minOccurs="0"/>
<xs:element name="graph" type="graph" minOccurs="0"/>
<xs:element name="list" type="list" minOccurs="0"/>
<-- <xs:element name="queue" type="queue" minOccurs="0"/> <xs:element name="stack" type="stack" minOccurs="0"/>-->
<xs:element name="tree" type="tree" minOccurs="0"/>
<xs:element name="bintree" type="bintree" minOccurs="0"/>
</xs:choice>
</xs:group>

Simple Type: child-type

Super-types: xs:token < child-type (by restriction)
Sub-types: None
Name child-type
Content
  • Base XSD Type: token
  • value comes from list: {'left'|'right'}
Documentation Defines a child node type, either left or right.

Schema Component Representation

<xs:simpleType name="child-type">
<xs:restriction base="xs:token">
<xs:enumeration value="left"/>
<xs:enumeration value="right"/>
</xs:restriction>
</xs:simpleType>

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia" >
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice [1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1]
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

  • The minimum and maximum occurrence of elements and attributes are provided in square brackets, e.g. [0..1].
  • Model group information are shown in gray, e.g. Start Choice ... End Choice.
  • For type derivations, the elements and attributes that have been added to or changed from the base type's content are shown in bold.
  • If an element/attribute has a fixed value, the fixed value is shown in green, e.g. country="Australia".
  • Otherwise, the type of the element/attribute is displayed.
    • If the element/attribute's type is in the schema, a link is provided to it.
    • For local simple type definitions, the constraints are displayed in angle brackets, e.g. <<pattern = [1-9][0-9]{3}>>.

Schema Component Representation
<complexType name="AusAddress">
<complexContent>
<extension base=" Address ">
<sequence>
<element name="state" type=" AusStates "/>
<element name="postcode">
<simpleType>
<restriction base=" string ">
<pattern value="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="country" type=" string " fixed="Australia"/>
</extension>
</complexContent>
</complexType>

The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)

Glossary

Term Description
Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.
All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.
Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.
Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.
Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.
Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.
Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.
Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.
Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.
Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.
Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.
Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.
Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.
Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).
Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.
Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.
Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.
Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.
Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.
Generated by xs3p.