LML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://eclipse.org/ptp/lml
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.
Schema Composition
  • This schema includes components from the following schema document(s):

Declared Namespaces

Prefix Namespace
Default namespace http://www.w3.org/2001/XMLSchema
xml http://www.w3.org/XML/1998/namespace
lml http://eclipse.org/ptp/lml
Schema Component Representation
<schema targetNamespace="http://eclipse.org/ptp/lml">
<include schemaLocation="lgui.xsd"/>
...
</schema>
top

Global Definitions

Complex Type: cell_type

Super-types: None
Sub-types: None
Name cell_type
Abstract no
Documentation Can be linked to column by using foreign key cid to cid-attribute of column-tag. Otherwise order of cells define connections to columns.
XML Instance Representation
<...
cid="positiveInteger [0..1] ?"
value="string [0..1]"/>
Schema Component Representation
<complexType name="cell_type">
<attribute name="cid" type=" positiveInteger "/>
<attribute name="value" type=" string "/>
</complexType>
top

Complex Type: column_type

Super-types: None
Sub-types: None
Name column_type
Abstract no
Documentation Describes one column of table.
XML Instance Representation
<...
name="NCName [1]"
sort=" lml:sorting_type [0..1]"
description="string [0..1]"
id="positiveInteger [1]"
type=" string (value comes from list: {'mandatory'|'optional'}) [0..1] ?"/>
Schema Component Representation
<complexType name="column_type">
<attribute name="name" type=" NCName " use="required"/>
<attribute name="sort" type=" lml:sorting_type "/>
<attribute name="description" type=" string "/>
<attribute name="id" type=" positiveInteger " use="required"/>
<attribute name="type" default="optional">
<simpleType>
<restriction base=" string ">
<enumeration value="mandatory"/>
<enumeration value="optional"/>
</restriction>
</simpleType>
</attribute>
</complexType>
top

Complex Type: row_type

Super-types: None
Sub-types: None
Name row_type
Abstract no
Documentation One row in final table.
XML Instance Representation
<...
oid="NCName [0..1] ?">
<cell> lml:cell_type </cell> [0..*]
</...>
Schema Component Representation
<complexType name="row_type">
<sequence>
<element name="cell" type=" lml:cell_type " maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="oid" type=" NCName "/>
</complexType>
top

Complex Type: table_type

Super-types: lml:gobject_type < table_type (by extension)
Sub-types: None
Name table_type
Abstract no
Documentation An abstract table. Defines several columns, which can be sorted by different datatypes. Then data is defined in row-tags, which can be linked with object-tags.
XML Instance Representation
<...
contenttype=" lml:content_type [0..1] ?"
form=" string (value comes from list: {'regular'|'sparse'}) [0..1] ?">
<column> lml:column_type </column> [0..*]
<row> lml:row_type
<!--
Uniqueness Constraint - cellCIDUnique
Selector - cell
Field(s) - @cid
-->
</row> [0..*]
</...>
Schema Component Representation
<complexType name="table_type">
<complexContent>
<extension base=" lml:gobject_type ">
<sequence>
<element name="column" type=" lml:column_type " maxOccurs="unbounded" minOccurs="0"/>
<element name="row" type=" lml:row_type " maxOccurs="unbounded" minOccurs="0">
<-- for one column only one cell in a row -->
<unique name="cellCIDUnique">
<selector xpath="cell"/>
<field xpath="@cid"/>
</unique>
</element>
</sequence>
<attribute name="contenttype" type=" lml:content_type " default="other"/>
<attribute name="form" default="sparse">
<simpleType>
<restriction base=" string ">
<enumeration value="regular"/>
<enumeration value="sparse"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
top

Simple Type: sorting_type

Super-types: string < sorting_type (by restriction)
Sub-types: None
Name sorting_type
Content
  • Base XSD Type: string
  • value comes from list: {'numeric'|'alpha'|'date'}
Documentation Defines allowed ways of how columns are sorted. If value is date, the values have to match the regular expression ^\d{4}\-\d{2}\-\d{2}\s*(\d{2}:\d{2}(:\d{2})?)?$ A valid example is: "2011-04-13 09:56:44"
Schema Component Representation
<simpleType name="sorting_type">
<restriction base=" string ">
<enumeration value="numeric"/>
<enumeration value="alpha"/>
<enumeration value="date"/>
</restriction>
</simpleType>
top