summaryrefslogtreecommitdiff
path: root/source/text/shared/guide/xsltfilter.xhp
blob: b894478eea9f9d65b54ffea45972ff86716c9211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>



<!--
 * 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 .
 -->


		<helpdocument version="1.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" l10n="NEW"><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" l10n="CHG">%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" l10n="NEW">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" l10n="NEW">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" l10n="NEW"> <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">File Open dialog</link>.</paragraph>
   </listitem>
   <listitem>
    <paragraph xml-lang="en-US" id="par_idN10960" role="paragraph" l10n="NEW"> <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">Export dialog</link>.</paragraph>
   </listitem>
   <listitem>
    <paragraph xml-lang="en-US" id="par_idN10979" role="paragraph" l10n="NEW"> <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">File Open dialog</link> and the <link href="text/shared/01/01070000.xhp">File Save As dialog</link>.</paragraph>
   </listitem>
  </list>
  <section id="relatedtopics">
   
   <paragraph xml-lang="en-US" id="par_idN10B39" role="paragraph" l10n="NEW"><link href="http://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" l10n="NEW"><link href="http://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" l10n="NEW"> <embedvar href="text/shared/00/00000021.xhp#xmlformat"/> </paragraph>
   <paragraph xml-lang="en-US" id="par_id5569017" role="paragraph" l10n="NEW"><link href="text/shared/guide/xsltfilter_distribute.xhp">Distributing XML filters</link></paragraph>
   <paragraph xml-lang="en-US" id="par_id6426892" role="paragraph" l10n="NEW"><link href="text/shared/guide/xsltfilter_create.xhp">Creating and Testing XML filters</link></paragraph>
   
  </section>
 </body>
</helpdocument>