Menu

Open_document

Allan Cunliffe
Attachments
Opendocument.png (9029 bytes)

Introduction

This is a schema to encapsulate Open Document Format (ODF) files. 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/opendocument/1.0

Declared namespaces

Prefix Namespace

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

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

Schema

The following sections describe the opendocument XML schema.

Diagram

XML Schema Definition

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           xmlns:opendocument="http://preservation.naa.gov.au/opendocument/1.0" 
           targetNamespace="http://preservation.naa.gov.au/opendocument/1.0"
           version="1.0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
 opendocument. A schema to encapsulate Open Document Format (ODF) files.
 Developed by the National Archives of Australia. Copyright 2010
 Commonwealth of Australia.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="opendocument">
 <xsd:complexType>
   <xsd:attribute name="description" type="xsd:string" use="optional" />
   <xsd:attribute name="type" type="xsd:string" use="optional" />
   <xsd:attribute name="extension" type="xsd:string" use="optional" />
 </xsd:complexType>
</xsd:element>
</xsd:schema>

Example

The following is an instance of the opendocument schema.

<opendocument:opendocument xmlns:opendocument="http://preservation.naa.gov.au/odf/1.0" 
opendocument:description="The following data is a MIME-compliant (RFC 1421) PEM base64 (RFC 1421) representation of 
an Open Document Format (ISO 26300, Version 1.0) document, produced by Open Office version 2.0." 
opendocument:type="Microsoft Word" 
opendocument:extension="odt">
UEsDBBQAAAgAAAMQ2DxexjIMJwAAACcAAAAIAAAAbWltZXR5cGVhcHBsaWNhdGlvbi92bmQub2Fz
aXMub3BlbmRvY3VtZW50LnRleHRQSwMEFAAICAgAAxDYPAAAAAAAAAAAAAAAAC0AAABQaWN0dXJl
[...]
</opendocument:opendocument>

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.