XML ファイル形式

ファイルを読み込むまたは保存するとき、LibreOffice は標準で OpenDocument ファイル形式を使用します。

注マーク

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.


OpenDocument ファイル形式名

LibreOffice では以下のファイル形式を使用します。

ドキュメント書式

ファイル拡張子

ODF テキスト

*.odt

ODF テキストテンプレート

*.ott

ODF マスタードキュメント

*.odm

ODF Master Document Template

*.otm

HTML ドキュメント

*.html

HTML ドキュメントテンプレート

*.oth

ODF 表計算ドキュメント

*.ods

ODF 表計算ドキュメントテンプレート

*.ots

ODF 描画

*.odg

ODF 図形描画テンプレート

*.otg

ODF プレゼンテーション

*.odp

ODF プレゼンテーションテンプレート

*.otp

ODF 数式

*.odf

ODF データベース

*.odb

LibreOffice 拡張機能

*.oxt


注マーク

HTML 形式は OpenDocument 形式ではありません。


ODF Chart は、スタンドアロングラフのファイル書式名です。 この書式で拡張子 *.odc のものは現在使用されていません。

OpenDocument フォーマットの発展

OpenDocument フォーマットは日々発展しています。

ODF のバージョン

OASIS が標準として承認した日付

ソフトウェアがサポートする最初のバージョン

ODF 1.0

2005年5月1日

OpenOffice.org 1.1.5 または StarOffice 7

ODF 1.1

2007年2月2日

OpenOffice.org 2.2 または StarOffice 8 Update 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 または 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.

ヒント

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 ファイルの構成

OpenDocument ファイル形式のドキュメントは、XML ファイルが入った圧縮 ZIP アーカイブとして格納されます。このような XML ファイルを表示するには、zip 解凍プログラムを使用して OpenDocument ファイルを開きます。OpenDocument ファイルには、以下のファイルとディレクトリが入っています。

  1. ドキュメントのテキストコンテンツは、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. ファイル meta.xml には、メニュー ファイル → プロパティ で入力できるドキュメントのメタ情報が含まれています。

    ドキュメントにパスワードを付けて保存した場合は、meta.xml は暗号化されません。

  3. settings.xml には、該当ファイルに関するより詳細な設定情報が記載されています。

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

  5. ファイル meta-inf/manifest.xml には、XML ファイルの構造が記述されています。

圧縮済みファイル形式には、追加のファイルおよびフォルダーを含めることができます。

XML 書式の定義

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

ご支援をお願いします!