Menu

Multipage

Allan Cunliffe
Attachments
Multipage.png (12802 bytes)

Introduction

This is a schema to encapsulate multipage data files. Multipage data files consist of a sequence of page-like objects, such as a multipage TIFF. The specification consists of a description of the XML schema and an example of an instance of the schema.

Target namespace

http://preservation.naa.gov.au/multipage/1.0

Declared namespaces

Prefix Namespace

xsd
http://www.w3.org/2001/XMLSchema

multipage
http://preservation.naa.gov.au/multipage/1.0

Schema

The following sections describe the multipage XML schema.

Diagram

XML Schema Definition

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
          targetNamespace="http://preservation.naa.gov.au/multipage/1.0"
          xmlns:multipage="http://preservation.naa.gov.au/multipage/1.0"
          version="1.0">
<xsd:annotation>
 <xsd:documentation xml:lang="en">
  multipage. A schema to represent files that
  consist of a sequence of page-like objects
  such as a multipage TIFF.
  Developed by the National Archives of Australia. Copyright 2010
  Commonwealth of Australia.
 </xsd:documentation>
</xsd:annotation>
<xsd:element name="multipage">
<xsd:complexType>
 <xsd:sequence>
  <xsd:element name="page" minOccurs="0" maxOccurs="unbounded">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
     </xsd:sequence>
        <xsd:attribute name="id" type="xsd:ID" use="optional" />
    <xsd:attribute name="label" type="xsd:string" use="optional" />
   </xsd:complexType>
  </xsd:element>
 </xsd:sequence>
 </xsd:complexType>
</xsd:element>
</xsd:schema>

Example

The following is an extract of an instance of the multipage schema, containing a multipage PNG file.

<multipage:multipage xmlns:multipage="http://preservation.naa.gov.au/multipage/1.0">
<multipage:page>
<png:png xmlns:png="http://preservation.naa.gov.au/png/1.0" 
png:description="The following data represents a Base64 encoding of a PNG image file ( ISO Standard 15948 ).">
iVBORw0KGgoAAAANSUhEUgAABsAAAAkiAQAAAABcBmSzAAAAAmJLR0QAAd2KE6QAAAAJcEhZcwAA
HsIAAB7CAW7QdT4AAAAJdnBBZwAABsAAAAkiAM+J6ygAAHNvSURBVHja7d0PkBvXfSf4h+mRMJQY
[...]
<png:metadata/>
</png:png>
</multipage:page>
<multipage:page>
<png:png xmlns:png="http://preservation.naa.gov.au/png/1.0" 
png:description="The following data represents a Base64 encoding of a PNG image file ( ISO Standard  15948 ).">
iVBORw0KGgoAAAANSUhEUgAABsAAAAkpAQAAAAA2wZRwAAAAAmJLR0QAAd2KE6QAAAAJcEhZcwAA
[...]
<png:metadata/>
</png:png>
</multipage:page>
<multipage:page>
<png:png xmlns:png="http://preservation.naa.gov.au/png/1.0" 
png:description="The following data represents a Base64 encoding of a PNG image file ( ISO Standard 15948 ).">
iVBORw0KGgoAAAANSUhEUgAACScAAAbAAQAAAAC3BEwdAAAAAmJLR0QAAd2KE6QAAAAJcEhZcwAA
HsIAAB7CAW7QdT4AAAAJdnBBZwAACScAAAbAAFWUZqgAAIAASURBVHja7f0PfBtHfiD4VhOkwNEo
[...]
<png:metadata/>
</png:png>
</multipage:page>
</multipage:multipage>

Related

Wiki: Xena_schemas

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.