Contents

# 關於 XML 篩選器

LibreOffice 以 XML 格式儲存文件。您可以建立自訂的篩選器，將 LibreOffice 使用的原生 OpenDocument XML 檔案格式轉換成其他格式。這些篩選器可以與 LibreOffice 緊密整合，因此您可以以透明化作業的方式儲存或載入這些格式。

若要建立 XML 篩選器，您必須對 XML 和 XSLT 概念有良好的瞭解。這些概念不在本說明討論的範圍之內。

XML 篩選器包含以 XSLT 語言撰寫的樣式表。樣式表可定義 Open Office 檔案格式如何透過匯出及匯入篩選器，變換成其他 XML 格式。有三種 XML 篩選器類型：

- Import Filters - load external XML files and transform the format of the files into the OpenDocument XML file format. After you install an import filter, the name of the filter is added to the list of file types in the File Open dialog.

- Export Filters - transform OpenDocument XML files and save the files to a different XML format. After you install an export filter, the name of the filter is added to the list of file types in the Export dialog.

- Import/Export Filters - load and save OpenDocument XML files into a different XML format. After you install these filters, the names of the filters are added to the list of file types in the File Open dialog and the File Save As dialog.

相關主題

World Wide Web Consortium Pages on Extensible Stylesheet Language (XSL)

World Wide Web Consortium Pages on Extensible Markup Language (XML)

XML 檔案格式

分發 XML 篩選器

建立與測試 XML 篩選器