XML 檔案格式
依預設,LibreOffice 會以 Open Office 檔案格式載入與儲存檔案。
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.
Open Office 檔案格式名稱
LibreOffice 使用下列檔案格式:
文件格式 |
副檔名 |
ODF 文字 |
*.odt |
ODF 文字範本 |
*.ott |
ODF 主控文件 |
*.odm |
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 圖表是獨立圖表的檔案格式名稱。目前未使用副檔名為 *.odc 的格式。
OpenDocument format 的演進
OpenDocument 格式隨著時間不斷進化。
ODF 版本 |
OASIS 正式核准的日期 |
軟體的首次支援版本 |
ODF 1.0 |
2005 年 5 月 1 日 |
OpenOffice.org 1.1.5 或 StarSuite 7 |
ODF 1.1 |
2007 年 2 月 2 日 |
OpenOffice.org 2.2 或 StarSute 8 Update 4 |
ODF 1.2 |
2011年 9 月 30 日 |
OpenOffice.org 3、StarOffice 9、Oracle Open Office |
ODF 1.2 (擴充) |
- |
OpenOffice.org 3.2 或 StarSuite 9.2 |
在目前的版本中,您可以選擇使用 ODF 1.2 (預設值) 或 ODF 1.0/1.1 (用於向下相容性) 來儲存文件。請選擇
,並選取 ODF 格式版本。若要與仍在使用 OpenOffice.org 1 或 StarSuite 7 的使用者交換文件,請使用 [檔案類型] 清單方塊中以該程式名稱命名的篩選器來儲存文件。
If you want to define another file format as the default, choose LibreOffice - PreferencesTools - Options - Load/Save - General to find alternative file formats for each LibreOffice document type.
XML檔案的結構
檔案格式為 Open Office 的文件會儲存為壓縮的 zip 歸檔 (包含 XML 檔案)。若要檢視這些 XML 檔案,您可以使用解壓縮程式開啟 Open Office 檔案。下列檔案和目錄已包含在 Open Office 檔案中:
-
文件的文字內容存放於 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.
-
檔案 meta.xml 包含文件的複合資訊,您可在[檔案] - [屬性]下輸入該資訊。
如果您以密碼儲存文件,將不會加密 meta.xml。
-
檔案 settings.xml 包含有關此文件設定的其他資訊。
-
In styles.xml, you find the styles applied to the document that can be seen in the Styles window.
-
「meta-inf/manifest.xml」檔案會描述 XML 檔案的結構。
其他檔案和資料夾可能以壓縮的檔案格式存在。
XML 格式的定義
有關 OpenDocument 格式的模式,請造訪 www.oasis-open.org 網站。