<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->

<meta>
<topic id="textsharedguidexsltfilterxml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">Working With %PRODUCTNAME XML Filters </title>
<filename>/text/shared/guide/xsltfilter.xhp</filename>
</topic>
</meta>
<body>
  
  
  
<bookmark xml-lang="en-US" branch="index" id="bm_id7007583"><bookmark_value>saving;to XML</bookmark_value> <bookmark_value>loading;XML files</bookmark_value> <bookmark_value>importing;from XML</bookmark_value> <bookmark_value>exporting;to XML</bookmark_value> <bookmark_value>file filters;XML</bookmark_value>
<bookmark_value>XSLT filters, see also XML filters</bookmark_value>
</bookmark>
  <comment>mw moved 2 index entries to the new file xsltfilter_distribute.xhp and 2 entries to new file xsltfilter_create.xhp</comment>
  <paragraph xml-lang="en-US" id="par_idN10923" role="heading" level="1"><variable id="xsltfilter"><link href="text/shared/guide/xsltfilter.xhp">About XML Filters</link> 
</variable></paragraph>
  <paragraph xml-lang="en-US" id="par_idN10927" role="paragraph">%PRODUCTNAME <link href="text/shared/00/00000021.xhp">stores documents in XML format</link>. You can create customized filters that convert the native OpenDocument XML file format used by %PRODUCTNAME into another format. These filters can be integrated into %PRODUCTNAME seamlessly so that you can save or load these formats transparently.</paragraph>
  <paragraph xml-lang="en-US" id="par_idN1093A" role="note">To create an XML filter, you must have a good understanding of XML and XSLT concepts. These concepts are beyond the scope of this help.</paragraph>
  <paragraph xml-lang="en-US" id="par_idN1093D" role="paragraph">An XML filter contains <emph>stylesheets</emph> that are written in the XSLT language. The stylesheets define the transformation from the OpenDocument file format to another XML format through export and import filters. There are three types of XML filters:</paragraph>
  <list type="unordered">
   <listitem>
    <paragraph xml-lang="en-US" id="par_idN10947" role="paragraph"><emph>Import Filters</emph> - 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 <link href="text/shared/01/01020000.xhp"><emph>File Open</emph></link> dialog.</paragraph>
   </listitem>
   <listitem>
    <paragraph xml-lang="en-US" id="par_idN10960" role="paragraph"><emph>Export Filters</emph> - transform OpenDocument XML files and <emph>save</emph> 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 <link href="text/shared/01/01070001.xhp"><emph>Export</emph></link> dialog.</paragraph>
   </listitem>
   <listitem>
    <paragraph xml-lang="en-US" id="par_idN10979" role="paragraph"><emph>Import/Export Filters</emph> - load and save OpenDocument XML files into a different XML <emph>format</emph>. After you install these filters, the names of the filters are added to the list of file types in the <link href="text/shared/01/01020000.xhp"><emph>File Open</emph></link> dialog and the <link href="text/shared/01/01070000.xhp"><emph>File Save As</emph></link> dialog.</paragraph>
   </listitem>
  </list>
  <section id="relatedtopics">
   
   <paragraph xml-lang="en-US" id="par_idN10B39" role="paragraph"><link href="https://www.w3.org/Style/XSL/">World Wide Web Consortium Pages on Extensible <emph>Stylesheet</emph> Language (XSL)</link></paragraph>
   <paragraph xml-lang="en-US" id="par_idN10B4E" role="paragraph"><link href="https://www.w3.org/XML/">World Wide Web Consortium Pages on Extensible Markup Language (XML)</link></paragraph>
   <paragraph xml-lang="en-US" id="par_idN10D97" role="paragraph" localize="false"> <embedvar href="text/shared/00/00000021.xhp#xmlformat"/> </paragraph>
   <paragraph xml-lang="en-US" id="par_id5569017" role="paragraph"><link href="text/shared/guide/xsltfilter_distribute.xhp">Distributing XML filters</link></paragraph>
   <paragraph xml-lang="en-US" id="par_id6426892" role="paragraph"><link href="text/shared/guide/xsltfilter_create.xhp">Creating and Testing XML filters</link></paragraph>
   
  </section>
 </body>
</helpdocument>
