XML-filformat

Som standard laddas och sparas filer i LibreOffice i OpenDocument-filformat.

Symbolen Info

The OpenDocument file format (ODF) is a standardized file format used by many software applications. You can find more information at the Wikipedia site: wikipedia.org/wiki/OpenDocument.


Namn på OpenDocument-filformat

LibreOffice använder följande filformat:

Dokumentformat

Filtillägg

OpenDocument-text

*.odt

OpenDocument-textmall

*.ott

OpenDocument-samlingsdokument

*.odm

ODF Master Document Template

*.otm

HTML dokument

*.html

HTML dokumentmall

*.oth

OpenDocument-tabell

*.ods

OpenDocument-tabellmall

*.ots

OpenDocument-teckning

*.odg

OpenDocument-teckningsmall

*.otg

OpenDocument-presentation

*.odp

OpenDocument-presentationsmall

*.otp

OpenDocument-formel

*.odf

OpenDocument-databas

*.odb

LibreOffice-paket

*.oxt


Symbolen Info

HTML-formatet är inte ett OpenDocument-format.


ODF-diagram är namnet på ett filformat för fristående diagram. Detta format med tillägget *.odc används inte för tillfället.

OpenDocument-formatets evolution

OpenDocument-formatet utvecklas efterhand.

ODF-version

Datum för OASIS godkännande av standard

Första versionen med stöd för programvaran

ODF 1.0

2005-05-01

OpenOffice.org 1.1.5 eller StarOffice 7

ODF 1.1

2007-02-02

OpenOffice.org 2.2 eller StarOffice 8 uppdatering 4

ODF 1.2

2011-09-30

OpenOffice.org 3, StarOffice 9, Oracle Open Office

ODF 1.2 Extended (compatibility mode)

LibreOffice 3.5

ODF 1.2 Extended

OpenOffice.org 3.2 eller StarOffice 9.2

ODF 1.3

TBD

LibreOffice 7.0

ODF 1.3 Extended

LibreOffice 7.0


In current versions, you can select to save your documents using ODF 1.2 or ODF 1.0/1.1 (for backward compatibility). Choose - Load/Save - General and select the ODF format version.

Symbolen Tips

If you want to define another file format as the default, choose - Load/Save - General to find alternative file formats for each LibreOffice document type.


XML-filens struktur

Dokument i OpenDocument-filformat lagras som komprimerade zipparkiv som innehåller XML-filer. Om du vill visa dessa XML-filer kan du öppna OpenDocument-filen med ett extraheringsprogram. Följande filer och kataloger ingår i OpenDocument-filerna:

  1. Dokumentets textinnehåll finns i content.xml.

    By default, content.xml is stored without formatting elements like indentation or line breaks to minimize the time for saving and opening the document. The use of indentations and line breaks can be activated in the Expert configuration by setting the property /org.openoffice.Office.Common/Save/Document PrettyPrinting to true.

  2. Filen meta.xml innehåller metainformation om dokumentet. Du kan mata in den här informationen under Arkiv - Egenskaper.

    Om du sparar ett dokument med lösenord krypteras inte meta.xml.

  3. Filen settings.xml innehåller ytterligare information om inställningarna för det här dokumentet.

  4. In styles.xml, you find the styles applied to the document that can be seen in the Styles window.

  5. Filen meta-inf/manifest.xml beskriver XML-filens struktur.

Ytterligare filer och mappar kan ingå i ett komprimerat filformat.

Definition av XML-formaten

The schema for the OpenDocument formats can be found on the www.oasis-open.org web site.

Stötta oss!