o2xdl-core Documentation

Table of Contents

top

Schema Document Properties

Target Namespacehttp://www.o2xdl.org/3.0/o2xdl
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
  • This schema imports schema(s) from the following namespace(s):
    • http://www.w3.org/XML/1998/namespace (at http://www.w3.org/2001/xml.xsd)
Documentation location: http://www.o2xdl.org/3.0/o2xdl-core.xsd

Copyright (c)2002-20019: R.Antonini, M.Sillano, A.Simonetta

Declared Namespaces

PrefixNamespace
Default namespacehttp://www.w3.org/2001/XMLSchema
xmlhttp://www.w3.org/XML/1998/namespace
o2xhttp://www.o2xdl.org/3.0/o2xdl
Schema Component Representation
<schema targetNamespace="http://www.o2xdl.org/3.0/o2xdl" elementFormDefault="qualified">
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
...
</schema>
top

Global Declarations

Element: annotation

Nameannotation
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation The comment element, allowed almost in any point.
XML Instance Representation
<o2x:annotation>
Start Choice [1..*]
<o2x:appinfo> ... </o2x:appinfo> [1]
<o2x:documentation> ... </o2x:documentation> [1]
End Choice
</o2x:annotation>
Schema Component Representation
<element name="annotation">
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="o2x:appinfo"/>
<element ref="o2x:documentation"/>
</choice>
</complexType>
</element>
top

Element: appinfo

Nameappinfo
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation Extra infos for automatic processing.
XML Instance Representation
<o2x:appinfo
source="anyURI [0..1] ?">
<!-- Mixed content -->
Start Sequence [0..*]
Allow any elements from any namespace (lax validation). [1]
End Sequence
</o2x:appinfo>
Schema Component Representation
<element name="appinfo">
<complexType mixed="true">
<sequence minOccurs="0" maxOccurs="unbounded">
<any processContents="lax"/>
</sequence>
<attribute name="source" type="anyURI" use="optional"/>
</complexType>
</element>
top

Element: contentList

NamecontentList
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation Container for building complex objects. Optional in o2x:object.
XML Instance Representation
<o2x:contentList
name="string [0..1] ?"
Allow any attributes from any namespace (lax validation).
>
Start Choice [1..*] ?
<o2x:object> ... </o2x:object> [1] ?
<o2x:annotation> ... </o2x:annotation> [1]
End Choice
</o2x:contentList>
Schema Component Representation
<element name="contentList">
<complexType>
<sequence>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="o2x:object"/>
<element ref="o2x:annotation"/>
</choice>
</sequence>
<attribute name="name" type="string" use="optional"/>
<anyAttribute processContents="lax"/>
</complexType>
</element>
top

Element: documentation

Namedocumentation
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation Comment for human readers.
XML Instance Representation
<o2x:documentation
source="anyURI [0..1] ?"
xml:lang="[0..1]">
<!-- Mixed content -->
Start Sequence [0..*]
Allow any elements from any namespace (lax validation). [1]
End Sequence
</o2x:documentation>
Schema Component Representation
<element name="documentation">
<complexType mixed="true">
<sequence minOccurs="0" maxOccurs="unbounded">
<any processContents="lax"/>
</sequence>
<attribute name="source" type="anyURI" use="optional"/>
<attribute ref="xml:lang"/>
</complexType>
</element>
top

Element: method

Namemethod
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation This element defines a XSLT fragment, by-value or by-reference. Can be used by realize() to transform the o2x:dataValues. If visibility = 'static' is a XSLT general pourpose fragment inside a o2x:class.
XML Instance Representation
<o2x:method
name="string [0..1] ?"
key="NMTOKEN [1] ?"
context="NMTOKEN [0..1] ?"
URIref="anyURI [0..1] ?"
visibility="string (value comes from list: {'final'|'protected'|'public'|'private'|'virtual'|'static'}) [0..1] ?"
Allow any attributes from any namespace (lax validation).
>
Start Choice [0..*]
<o2x:paramValues> o2x:ReferenceType </o2x:paramValues> [1] ?
<o2x:inline> o2x:XMLtree </o2x:inline> [1] ?
<o2x:annotation> ... </o2x:annotation> [1]
End Choice
</o2x:method>
Schema Component Representation
<element name="method">
<complexType>
<sequence>
<choice minOccurs="0" maxOccurs="unbounded">
<element name="paramValues" type="o2x:ReferenceType"/>
<element name="inline" type="o2x:XMLtree"/>
<element ref="o2x:annotation"/>
</choice>
</sequence>
<attribute name="name" type="string" use="optional"/>
<attribute name="key" type="NMTOKEN" use="required"/>
<attribute name="context" type="NMTOKEN" use="optional"/>
<attribute name="URIref" type="anyURI" use="optional"/>
<attribute name="visibility" use="optional">
<simpleType>
<restriction base="string">
<enumeration value="final"/>
<enumeration value="protected"/>
<enumeration value="public"/>
<enumeration value="private"/>
<enumeration value="virtual"/>
<enumeration value="static"/>
</restriction>
</simpleType>
</attribute>
<anyAttribute processContents="lax"/>
</complexType>
</element>
top

Element: object

Nameobject
TypeLocally-defined complex type
Nillableno
Abstractno
Documentation Definition of an o2xdl CORE object.
XML Instance Representation
<o2x:object
name="string [0..1] ?"
key="NMTOKEN [0..1] ?"
target="string [0..1] ?"
position="NMTOKEN [0..1] ?"
actualContext="NMTOKEN [0..1] ?"
URIref="anyURI [0..1] ?"
Allow any attributes from any namespace (lax validation).
>
Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
Start Choice [0..*]
<o2x:dataValues> o2x:ReferenceType </o2x:dataValues> [1] ?
<o2x:method> ... </o2x:method> [1] ?
<o2x:contentList> ... </o2x:contentList> [1] ?
<o2x:annotation> ... </o2x:annotation> [1]
End Choice
</o2x:object>
Schema Component Representation
<element name="object">
<complexType>
<sequence>
<any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##other"/>
<choice minOccurs="0" maxOccurs="unbounded">
<element name="dataValues" type="o2x:ReferenceType"/>
<element ref="o2x:method"/>
<element ref="o2x:contentList"/>
<element ref="o2x:annotation"/>
</choice>
</sequence>
<attribute name="name" type="string" use="optional"/>
<attribute name="key" type="NMTOKEN" use="optional"/>
<attribute name="target" type="string" use="optional"/>
<attribute name="position" type="NMTOKEN" use="optional"/>
<attribute name="actualContext" type="NMTOKEN" use="optional"/>
<attribute name="URIref" type="anyURI" use="optional"/>
<anyAttribute processContents="lax"/>
</complexType>
</element>
top

Global Definitions

Complex Type: ReferenceType

Super-types:None
Sub-types:None
NameReferenceType
Abstractno
Documentation This Type defines a generic XML tree, by-value or by-reference. Used for data and parameters.
XML Instance Representation
<...
name="string [0..1] ?"
URIref="anyURI [0..1] ?"
Allow any attributes from any namespace (lax validation).
>
Start Choice [0..*]
<o2x:body> o2x:XMLtree </o2x:body> [1] ?
<o2x:annotation> ... </o2x:annotation> [1]
End Choice
</...>
Schema Component Representation
<complexType name="ReferenceType">
<choice minOccurs="0" maxOccurs="unbounded">
<element name="body" type="o2x:XMLtree"/>
<element ref="o2x:annotation"/>
</choice>
<attribute name="name" type="string" use="optional"/>
<attribute name="URIref" type="anyURI" use="optional"/>
<anyAttribute processContents="lax"/>
</complexType>
top

Complex Type: XMLtree

Super-types:None
Sub-types:None
NameXMLtree
Abstractno
Documentation Generic XML tree locally included (by-value).
XML Instance Representation
<...>
<!-- Mixed content -->
Start Sequence [0..*]
Allow any elements from any namespace (lax validation). [1]
End Sequence
</...>
Schema Component Representation
<complexType name="XMLtree" mixed="true">
<sequence minOccurs="0" maxOccurs="unbounded">
<any processContents="lax" namespace="##any"/>
</sequence>
</complexType>
top