XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://xmlns.opennms.org/xsd/config/charts
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations have no namespace.
  • By default, local attribute declarations have no namespace.

Declared Namespaces

Prefix Namespace
Default namespace http://www.w3.org/2001/XMLSchema
xml http://www.w3.org/XML/1998/namespace
this http://xmlns.opennms.org/xsd/config/charts
Schema Component Representation
<schema targetNamespace="http://xmlns.opennms.org/xsd/config/charts">
...
</schema>
top

Global Declarations

Element: bar-chart

Name bar-chart
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:bar-chart
name="string [1]"
domain-axis-label="string [1]"
range-axis-label="string [1]"
sub-label-class="string [0..1]"
series-color-class="string [0..1]"
draw-bar-outline="boolean [0..1]"
show-legend="boolean [0..1]"
show-tool-tips="boolean [0..1]"
show-urls="boolean [0..1]"
variation=" string (pattern = (2d|3d)) [0..1]"
plot-orientation=" string (pattern = (horizontal|vertical)) [0..1]">
<this:title> ... </this:title> [1]
<this:image-size> ... </this:image-size> [1]
<this:sub-title> ... </this:sub-title> [0..*]
<this:grid-lines> ... </this:grid-lines> [0..1]
<this:series-def> ... </this:series-def> [0..*]
</this:bar-chart>
Schema Component Representation
<element name="bar-chart">
<complexType>
<sequence>
<element ref=" this:title " minOccurs="1" maxOccurs="1"/>
<element ref=" this:image-size " minOccurs="1" maxOccurs="1"/>
<element ref=" this:sub-title " minOccurs="0" maxOccurs="unbounded"/>
<element ref=" this:grid-lines " minOccurs="0" maxOccurs="1"/>
<element ref=" this:series-def " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type=" string " use="required"/>
<attribute name="domain-axis-label" type=" string " use="required"/>
<attribute name="range-axis-label" type=" string " use="required"/>
<attribute name="sub-label-class" type=" string " use="optional"/>
<attribute name="series-color-class" type=" string " use="optional"/>
<attribute name="draw-bar-outline" type=" boolean " use="optional" default="true"/>
<attribute name="show-legend" type=" boolean " use="optional" default="true"/>
<attribute name="show-tool-tips" type=" boolean " use="optional" default="false"/>
<attribute name="show-urls" type=" boolean " use="optional" default="false"/>
<attribute name="variation" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(2d|3d)"/>
</restriction>
</simpleType>
</attribute>
<attribute name="plot-orientation" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(horizontal|vertical)"/>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
top

Element: blue

Name blue
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:blue>
<this:rgb-color> ... </this:rgb-color> [1]
</this:blue>
Schema Component Representation
<element name="blue">
<complexType>
<sequence>
<element ref=" this:rgb-color " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: chart-configuration

Name chart-configuration
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:chart-configuration>
<this:bar-chart> ... </this:bar-chart> [0..*]
</this:chart-configuration>
Schema Component Representation
<element name="chart-configuration">
<complexType>
<sequence>
<element ref=" this:bar-chart " minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
top

Element: green

Name green
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:green>
<this:rgb-color> ... </this:rgb-color> [1]
</this:green>
Schema Component Representation
<element name="green">
<complexType>
<sequence>
<element ref=" this:rgb-color " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: grid-lines

Name grid-lines
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:grid-lines
visible="boolean [1]">
<this:rgb> ... </this:rgb> [0..1]
</this:grid-lines>
Schema Component Representation
<element name="grid-lines">
<complexType>
<sequence>
<element ref=" this:rgb " minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="visible" type=" boolean " use="required"/>
</complexType>
</element>
top

Element: hex-color

Name hex-color
Type Locally-defined simple type
Nillable no
Abstract no
XML Instance Representation
<this:hex-color> string (pattern = ^#([0-9a-f]{1,2}){3}$) </this:hex-color>
Schema Component Representation
<element name="hex-color">
<simpleType>
<restriction base=" string ">
<pattern value="^#([0-9a-f]{1,2}){3}$"/>
</restriction>
</simpleType>
</element>
top

Element: hz-size

Name hz-size
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:hz-size>
<this:pixels> ... </this:pixels> [1]
</this:hz-size>
Schema Component Representation
<element name="hz-size">
<complexType>
<sequence>
<element ref=" this:pixels " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: image-size

Name image-size
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:image-size>
<this:hz-size> ... </this:hz-size> [1]
<this:vt-size> ... </this:vt-size> [1]
</this:image-size>
Schema Component Representation
<element name="image-size">
<complexType>
<sequence>
<element ref=" this:hz-size " minOccurs="1" maxOccurs="1"/>
<element ref=" this:vt-size " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: jdbc-data-set

Name jdbc-data-set
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:jdbc-data-set
db-name="string [1]"
sql="string [1]"/>
Schema Component Representation
<element name="jdbc-data-set">
<complexType>
<attribute name="db-name" type=" string " use="required"/>
<attribute name="sql" type=" string " use="required"/>
</complexType>
</element>
top

Element: pixels

Name pixels
Type Locally-defined simple type
Nillable no
Abstract no
XML Instance Representation
<this:pixels> int (value >= 1) </this:pixels>
Schema Component Representation
<element name="pixels">
<simpleType>
<restriction base=" int ">
<minInclusive value="1"/>
</restriction>
</simpleType>
</element>
top

Element: red

Name red
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:red>
<this:rgb-color> ... </this:rgb-color> [1]
</this:red>
Schema Component Representation
<element name="red">
<complexType>
<sequence>
<element ref=" this:rgb-color " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: rgb

Name rgb
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:rgb>
<this:red> ... </this:red> [1]
<this:green> ... </this:green> [1]
<this:blue> ... </this:blue> [1]
</this:rgb>
Schema Component Representation
<element name="rgb">
<complexType>
<sequence>
<element ref=" this:red " minOccurs="1" maxOccurs="1"/>
<element ref=" this:green " minOccurs="1" maxOccurs="1"/>
<element ref=" this:blue " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

Element: rgb-color

Name rgb-color
Type Locally-defined simple type
Nillable no
Abstract no
XML Instance Representation
<this:rgb-color> int (0 <= value <= 255) </this:rgb-color>
Schema Component Representation
<element name="rgb-color">
<simpleType>
<restriction base=" int ">
<minInclusive value="0"/>
<maxInclusive value="255"/>
</restriction>
</simpleType>
</element>
top

Element: series-def

Name series-def
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:series-def
number=" int (value >= 1) [1]"
series-name="string [1]"
use-labels="boolean [0..1]">
<this:jdbc-data-set> ... </this:jdbc-data-set> [1]
<this:rgb> ... </this:rgb> [0..1]
</this:series-def>
Schema Component Representation
<element name="series-def">
<complexType>
<sequence>
<element ref=" this:jdbc-data-set " minOccurs="1" maxOccurs="1"/>
<element ref=" this:rgb " minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="number" use="required">
<simpleType>
<restriction base=" int ">
<minInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
<attribute name="series-name" type=" string " use="required"/>
<attribute name="use-labels" type=" boolean " use="optional" default="true"/>
</complexType>
</element>
top

Element: sub-title

Name sub-title
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:sub-title
position=" string (pattern = (top|bottom)) [0..1]"
horizontal-alignment=" string (pattern = (left|center|right)) [0..1]">
<this:title> ... </this:title> [1]
</this:sub-title>
Schema Component Representation
<element name="sub-title">
<complexType>
<sequence>
<element ref=" this:title " minOccurs="1" maxOccurs="1"/>
</sequence>
<attribute name="position" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(top|bottom)"/>
</restriction>
</simpleType>
</attribute>
<attribute name="horizontal-alignment" use="optional">
<simpleType>
<restriction base=" string ">
<pattern value="(left|center|right)"/>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
top

Element: title

Name title
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:title
value="string [1]"
font="string [0..1]"
pitch=" int (value >= 1) [0..1]"
style="string [0..1]"/>
Schema Component Representation
<element name="title">
<complexType>
<sequence>
<element ref=" this:rgb " minOccurs="0" maxOccurs="0"/>
</sequence>
<attribute name="value" type=" string " use="required"/>
<attribute name="font" type=" string " use="optional"/>
<attribute name="pitch" use="optional">
<simpleType>
<restriction base=" int ">
<minInclusive value="1"/>
</restriction>
</simpleType>
</attribute>
<attribute name="style" type=" string " use="optional"/>
</complexType>
</element>
top

Element: vt-size

Name vt-size
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<this:vt-size>
<this:pixels> ... </this:pixels> [1]
</this:vt-size>
Schema Component Representation
<element name="vt-size">
<complexType>
<sequence>
<element ref=" this:pixels " minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
top

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.

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.)
top

Glossary

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.

top