140 likes | 375 Views
OpenDocument. Steve Adebayo April 1, 2006. Learning Objectives. OpenDocument Format Zip Archive Downloading OpenOffice Transform OpenOffice Document. Timeline. 1. OpenOffice.org creates the OpenOffice.org 1.0 .
E N D
OpenDocument Steve Adebayo April 1, 2006
Learning Objectives • OpenDocument Format • Zip Archive • Downloading OpenOffice • Transform OpenOffice Document
Timeline • 1. OpenOffice.org creates the OpenOffice.org 1.0. • 2. Sun submits the OpenOffice.org 1.0 format to OASIS for standardization. KDE and Corel join the OASIS TC and help expand the format. • 3. The European Union commissions Valoris to report on open file formats. • 4. The new OASIS format is called Open Office XML. • 5. OpenOffice.org and KOffice both commit to making it their native format. • 6. The Valoris report is published. The EU makes recommendations, including the submission to ISO. • 7. The format is submitted to ISO and changes its name to the OpenDocument format.
What is OpenDocument? • OpenDocument is an XML format standardized by OASIS(Organization for the Advancement of Structured Information Standards). • OpenOffice.org will read and save files in several formats used by other office applications, but its default format is OpenDocument
OpenDocument Continued • An OpenDocument file takes the form of a compressed zip archive with one of the following extensions: • .odt (text) • .odm (master document) • .oth (HTML template) • .ods (spreadsheet) • .odg (drawing) • .odp (presentation) • .odb (database)
Zip Archive • Content.xml • Meta.xml • Settings.xml • Styles.xml • Manifest.xml
Content.xml • The <office:document-content> root contains only the document content, along with the automatic styles needed for the document content: • <define name="office-document-content"> • <element name="office:document-content"> • <ref name="office-document-common-attrs"/> • <ref name="office-scripts"/> • <ref name="office-font-face-decls"/> • <ref name="office-automatic-styles"/> • <ref name="office-body"/> • </element> • </define>
Meta.xml • The <office:document-meta> root contains the meta information about a document. • <define name="office-document-meta"> • <element name="office:document-meta"> • <ref name="office-document-common-attrs"/> • <ref name="office-meta"/> • </element> • </define>
Settings.xml • The <office:document-settings> root contains application specific settings to be applied when processing this document. • <define name="office-document-settings"> • <element name="office:document-settings"> • <ref name="office-document-common-attrs"/> • <ref name="office-settings"/> • </element> • </define>
Styles.xml • The <office:document-styles> root contains all named styles of a document, along with the automatic styles needed for the named styles: • <define name="office-document-styles"> • <element name="office:document-styles"> • <ref name="office-document-common-attrs"/> • <ref name="office-font-face-decls"/> • <ref name="office-styles"/> • <ref name="office-automatic-styles"/> • <ref name="office-master-styles"/> • </element> • </define>
Manifest.xml • <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd"> <manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"> <manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.text" manifest:full-path="/"/> <manifest:file-entry manifest:media-type="application/vnd.sun.xml.ui.configuration" manifest:full-path="Configurations2/"/> <manifest:file-entry manifest:media-type="" manifest:full-path="Pictures/"/> <manifest:file-entry manifest:media-type="text/xml" manifest:full-path="content.xml"/> <manifest:file-entry manifest:media-type="text/xml" manifest:full-path="styles.xml"/> <manifest:file-entry manifest:media-type="text/xml" manifest:full-path="meta.xml"/> <manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/thumbnail.png"/> <manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/"/> <manifest:file-entry manifest:media-type="text/xml" manifest:full-path="settings.xml"/> </manifest:manifest>
Downloading OpenOffice • OpenSource- Free to Download • Includes Writer, Calc, Impress, Draw, and Base • http://download.openoffice.org/2.0.2/index.html
Exercise • Create an OO document and then use XSLT to transform it. • Helpful Link: http://books.evc-cit.info/odbook/apc.html#xslt-framework-section