XML Schema Documentation

Schema Document Properties

Target Namespacehttps://schema.omnius.com/pagesformat/2022.03.01
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.
PrefixNamespace
Default namespacehttps://schema.omnius.com/pagesformat/2022.03.01
xmlhttp://www.w3.org/XML/1998/namespace
xshttp://www.w3.org/2001/XMLSchema
<xs:schema targetNamespace="https://schema.omnius.com/pagesformat/2022.03.01" elementFormDefault="qualified">
...
</xs:schema>

Global Declarations

Element: PcGts

NamePcGts
TypeLocally-defined complex type
Nillableno
Abstractno
<PcGts
 id="xs:ID" [0..1]
>
   <Metadata> MetadataType </Metadata> [1]
   <Property> PropertyType </Property> [0..*]
   <Page> PageType </Page> [1..*]
   <Group> GroupType </Group> [0..*]
</PcGts>
<xs:element name="PcGts">
   <xs:complexType>
      <xs:sequence>
         <xs:element name="Metadata" type="MetadataType"/>
         <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
         <xs:element name="Page" type="PageType" minOccurs="1" maxOccurs="unbounded"/>
         <xs:element name="Group" type="GroupType" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="id" type="xs:ID" use="optional"/>
   </xs:complexType>
</xs:element>

Global Definitions

Complex Type: BaselineType

Super-types:None
Sub-types:None
NameBaselineType
Abstractno
<...
 points="PointsType" [1]
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
/> 

<xs:complexType name="BaselineType">
   <xs:attribute name="points" type="PointsType" use="required"/>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: CoordsType

Super-types:None
Sub-types:None
NameCoordsType
Abstractno
<...
 points="PointsType" [1]
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
/> 

<xs:complexType name="CoordsType">
   <xs:attribute name="points" type="PointsType" use="required"/>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: CustomRegionType

Super-types:RegionType < CustomRegionType (by extension)
Sub-types:None
NameCustomRegionType
Abstractno
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
 type="NotEmptyType" [0..1] 
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
</...>
<xs:complexType name="CustomRegionType">
   <xs:complexContent>
      <xs:extension base="RegionType">
         <xs:attribute name="type" type="NotEmptyType" use="optional"/>
      </xs:extension>
   </xs:complexContent>
</xs:complexType>

Complex Type: GlyphType

Super-types:None
Sub-types:None
NameGlyphType
Abstractno
<...
 id="xs:ID" [1]
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
   <TextEquiv> TextEquivType </TextEquiv> [0..*]
</...>
<xs:complexType name="GlyphType">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Coords" type="CoordsType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="TextEquiv" type="TextEquivType" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>

Complex Type: GroupType

Super-types:None
Sub-types:None
NameGroupType
Abstractno
<...
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
 id="xs:ID" [1]
>
   <Property> PropertyType </Property> [0..*]
   <Member> MemberType </Member> [1..*]
</...>
<xs:complexType name="GroupType">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Member" type="MemberType" minOccurs="1" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
   <xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>

Complex Type: ImageOrientationType

Super-types:None
Sub-types:None
NameImageOrientationType
Abstractno
<...
 angle="xs:string (pattern = (-90|0|90|180))" [1]
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
/> 

<xs:complexType name="ImageOrientationType">
   <xs:attribute name="angle" use="required">
      <xs:simpleType>
         <xs:restriction base="xs:string">
            <xs:pattern value="(-90|0|90|180)"/>
         </xs:restriction>
      </xs:simpleType>
   </xs:attribute>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: ImageRegionType

Super-types:RegionType < ImageRegionType (by extension)
Sub-types:None
NameImageRegionType
Abstractno
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
</...>
<xs:complexType name="ImageRegionType">
   <xs:complexContent>
      <xs:extension base="RegionType"/>
   </xs:complexContent>
</xs:complexType>

Complex Type: MemberType

Super-types:None
Sub-types:None
NameMemberType
Abstractno
<...
 conf="ConfType" [0..1]
 ref="xs:IDREF" [1] 
/> 

<xs:complexType name="MemberType">
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="ref" type="xs:IDREF" use="required"/>
</xs:complexType>

Complex Type: MetadataType

Super-types:None
Sub-types:None
NameMetadataType
Abstractno
<...>
   <Creator> NotEmptyType </Creator> [1]
   <Created> xs:dateTime </Created> [1]
   <LastChange> xs:dateTime </LastChange> [1]
   <Process> ProcessType </Process> [0..*]
</...>
<xs:complexType name="MetadataType">
   <xs:sequence>
      <xs:element name="Creator" type="NotEmptyType"/>
      <xs:element name="Created" type="xs:dateTime"/>
      <xs:element name="LastChange" type="xs:dateTime"/>
      <xs:element name="Process" type="ProcessType" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
</xs:complexType>

Complex Type: PageType

Super-types:None
Sub-types:None
NamePageType
Abstractno
<...
 id="xs:ID" [0..1]
 imageFilename="NotEmptyType" [1] 
 imageWidth="xs:int" [1]
 imageHeight="xs:int" [1]
>
   <ImageOrientation> ImageOrientationType </ImageOrientation> [0..1]
   <Property> PropertyType </Property> [0..*]
   Start Choice [0..*]
      <Word> WordType </Word> [1]
      <TextLine> TextLineType </TextLine> [1]
      <TextRegion> TextRegionType </TextRegion> [1]
      <TableRegion> TableRegionType </TableRegion> [1]
      <ImageRegion> ImageRegionType </ImageRegion> [1]
      <SeparatorRegion> SeparatorRegionType </SeparatorRegion> [1]
      <CustomRegion> CustomRegionType </CustomRegion> [1]
   End Choice
</...>
<xs:complexType name="PageType">
   <xs:sequence>
      <xs:element name="ImageOrientation" type="ImageOrientationType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
         <xs:element name="Word" type="WordType"/>
         <xs:element name="TextLine" type="TextLineType"/>
         <xs:element name="TextRegion" type="TextRegionType"/>
         <xs:element name="TableRegion" type="TableRegionType"/>
         <xs:element name="ImageRegion" type="ImageRegionType"/>
         <xs:element name="SeparatorRegion" type="SeparatorRegionType"/>
         <xs:element name="CustomRegion" type="CustomRegionType"/>
      </xs:choice>
   </xs:sequence>
   <xs:attribute name="id" type="xs:ID" use="optional"/>
   <xs:attribute name="imageFilename" type="NotEmptyType" use="required"/>
   <xs:attribute name="imageWidth" type="xs:int" use="required"/>
   <xs:attribute name="imageHeight" type="xs:int" use="required"/>
</xs:complexType>

Complex Type: ProcessType

Super-types:None
Sub-types:None
NameProcessType
Abstractno
<...
 id="xs:ID" [0..1] 
 started="xs:dateTime" [1] 
 time="xs:float" [1] 
 tool="NotEmptyType" [1] 
 ref="NotEmptyType" [0..1] 
/> 

<xs:complexType name="ProcessType">
   <xs:attribute name="id" type="xs:ID" use="optional"/>
   <xs:attribute name="started" type="xs:dateTime" use="required"/>
   <xs:attribute name="time" type="xs:float" use="required"/>
   <xs:attribute name="tool" type="NotEmptyType" use="required"/>
   <xs:attribute name="ref" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: PropertyType

Super-types:None
Sub-types:None
NamePropertyType
Abstractno
<...
 key="xs:string (pattern = [a-zA-Z0-9_.-]+)" [1]
 value="NotEmptyType" [0..1]
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
/> 

<xs:complexType name="PropertyType">
   <xs:attribute name="key" use="required">
      <xs:simpleType>
         <xs:restriction base="xs:string">
            <xs:pattern value="[a-zA-Z0-9_.-]+"/>
         </xs:restriction>
      </xs:simpleType>
   </xs:attribute>
   <xs:attribute name="value" type="NotEmptyType" use="optional"/>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: RegionType

Super-types:None
Sub-types:
NameRegionType
Abstractyes
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
</...>
<xs:complexType name="RegionType" abstract="true">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Coords" type="CoordsType" minOccurs="0" maxOccurs="1"/>
   </xs:sequence>
   <xs:attribute name="id" type="xs:ID" use="required"/>
   <xs:attribute name="orientation" type="AngleType" use="optional"/>
</xs:complexType>

Complex Type: SeparatorRegionType

Super-types:RegionType < SeparatorRegionType (by extension)
Sub-types:None
NameSeparatorRegionType
Abstractno
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
</...>
<xs:complexType name="SeparatorRegionType">
   <xs:complexContent>
      <xs:extension base="RegionType"/>
   </xs:complexContent>
</xs:complexType>

Complex Type: TableRegionType

Super-types:RegionType < TableRegionType (by extension)
Sub-types:None
NameTableRegionType
Abstractno
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
 rows="xs:int" [0..1] 
 columns="xs:int" [0..1] 
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
   <Word> WordType </Word> [0..*]
   <TextLine> TextLineType </TextLine> [0..*]
   <TextRegion> TextRegionType </TextRegion> [0..*]
   <SeparatorRegion> SeparatorRegionType </SeparatorRegion> [0..*]
</...>
<xs:complexType name="TableRegionType">
   <xs:complexContent>
      <xs:extension base="RegionType">
         <xs:sequence>
            <xs:element name="Word" type="WordType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="TextLine" type="TextLineType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="TextRegion" type="TextRegionType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="SeparatorRegion" type="SeparatorRegionType" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
         <xs:attribute name="rows" type="xs:int" use="optional"/>
         <xs:attribute name="columns" type="xs:int" use="optional"/>
      </xs:extension>
   </xs:complexContent>
</xs:complexType>

Complex Type: TextEquivType

Super-types:None
Sub-types:None
NameTextEquivType
Abstractno
<...
 type="NotEmptyType" [0..1] 
 conf="ConfType" [0..1]
 setBy="NotEmptyType" [0..1]
>
   <Property> PropertyType </Property> [0..*]
   <Unicode> NotEmptyType </Unicode> [1] 
</...>
<xs:complexType name="TextEquivType">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Unicode" type="NotEmptyType"/>
   </xs:sequence>
   <xs:attribute name="type" type="NotEmptyType" use="optional"/>
   <xs:attribute name="conf" type="ConfType" use="optional"/>
   <xs:attribute name="setBy" type="NotEmptyType" use="optional"/>
</xs:complexType>

Complex Type: TextLineType

Super-types:None
Sub-types:None
NameTextLineType
Abstractno
<...
 id="xs:ID" [1]
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
   <Baseline> BaselineType </Baseline> [0..1]
   <Word> WordType </Word> [0..*]
   <TextEquiv> TextEquivType </TextEquiv> [0..*]
</...>
<xs:complexType name="TextLineType">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Coords" type="CoordsType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Baseline" type="BaselineType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Word" type="WordType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="TextEquiv" type="TextEquivType" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>

Complex Type: TextRegionType

Super-types:RegionType < TextRegionType (by extension)
Sub-types:None
NameTextRegionType
Abstractno
<...
 id="xs:ID" [1]
 orientation="AngleType" [0..1] 
 readingDirection="ReadingDirectionType" [0..1]
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
   <Word> WordType </Word> [0..*]
   <TextLine> TextLineType </TextLine> [0..*]
   <TextEquiv> TextEquivType </TextEquiv> [0..*]
</...>
<xs:complexType name="TextRegionType">
   <xs:complexContent>
      <xs:extension base="RegionType">
         <xs:sequence>
            <xs:element name="Word" type="WordType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="TextLine" type="TextLineType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="TextEquiv" type="TextEquivType" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
         <xs:attribute name="readingDirection" type="ReadingDirectionType" use="optional"/>
      </xs:extension>
   </xs:complexContent>
</xs:complexType>

Complex Type: WordType

Super-types:None
Sub-types:None
NameWordType
Abstractno
<...
 id="xs:ID" [1]
>
   <Property> PropertyType </Property> [0..*]
   <Coords> CoordsType </Coords> [0..1]
   <Glyph> GlyphType </Glyph> [0..*]
   <TextEquiv> TextEquivType </TextEquiv> [0..*]
</...>
<xs:complexType name="WordType">
   <xs:sequence>
      <xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="Coords" type="CoordsType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Glyph" type="GlyphType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="TextEquiv" type="TextEquivType" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>

Simple Type: AngleType

Super-types:xs:float < AngleType (by restriction)
Sub-types:None
NameAngleType
Content
  • Base XSD Type: float
  • -180 < value <= 180
<xs:simpleType name="AngleType">
   <xs:restriction base="xs:float">
      <xs:minExclusive value="-180"/>
      <xs:maxInclusive value="180"/>
   </xs:restriction>
</xs:simpleType>

Simple Type: ConfType

Super-types:xs:float < ConfType (by restriction)
Sub-types:None
NameConfType
Content
  • Base XSD Type: float
  • 0 <= value <= 1
<xs:simpleType name="ConfType">
   <xs:restriction base="xs:float">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive value="1"/>
   </xs:restriction>
</xs:simpleType>

Simple Type: NotEmptyType

Super-types:xs:token < NotEmptyType (by restriction)
Sub-types:None
NameNotEmptyType
Content
  • Base XSD Type: token
  • length >= 1
<xs:simpleType name="NotEmptyType">
   <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
   </xs:restriction>
</xs:simpleType>

Simple Type: PointsType

Super-types:xs:string < PointsType (by restriction)
Sub-types:None
NamePointsType
Content
  • Base XSD Type: string
  • pattern = ([-.0-9]+,[-.0-9]+ )+([-.0-9]+,[-.0-9]+)
<xs:simpleType name="PointsType">
   <xs:restriction base="xs:string">
      <xs:pattern value="([-.0-9]+,[-.0-9]+ )+([-.0-9]+,[-.0-9]+)"/>
   </xs:restriction>
</xs:simpleType>

Simple Type: ReadingDirectionType

Super-types:xs:string < ReadingDirectionType (by restriction)
Sub-types:None
NameReadingDirectionType
Content
  • Base XSD Type: string
  • value comes from list: {'left-to-right'|'right-to-left'|'top-to-bottom'|'bottom-to-top'}
<xs:simpleType name="ReadingDirectionType">
   <xs:restriction base="xs:string">
      <xs:enumeration value="left-to-right"/>
      <xs:enumeration value="right-to-left"/>
      <xs:enumeration value="top-to-bottom"/>
      <xs:enumeration value="bottom-to-top"/>
   </xs:restriction>
</xs:simpleType>

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.