summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/guide/xsltfilter.xhp
blob: f2c4138410b88a89e9ab036013e0a526d0394494 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>



<!--
 ***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2008 by Sun Microsystems, Inc.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * $RCSfile: xsltfilter.xhp,v $
 * $Revision: 1.20 $
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->


		<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>