Make image inline threshold a parameter (#1), and remove the para.padding parameter
[xhtml2odt:xhtml2odt.git] / xsl / param.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4     xhtml2odt - XHTML to ODT XML transformation.
5     Copyright (C) 2009 Aurelien Bompard
6     Inspired by the work on docbook2odt, by Roman Fordinal
7     http://open.comsultia.com/docbook2odf/
8
9     License: LGPL v2.1 or later <http://www.gnu.org/licenses/lgpl-2.1.html>
10
11     This library is free software; you can redistribute it and/or
12     modify it under the terms of the GNU Lesser General Public
13     License as published by the Free Software Foundation; either
14     version 2.1 of the License, or (at your option) any later version.
15
16     This library is distributed in the hope that it will be useful,
17     but WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     Lesser General Public License for more details.
20
21     You should have received a copy of the GNU Lesser General Public
22     License along with this library; if not, write to the Free Software
23     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
24     MA  02110-1301  USA
25
26 -->
27 <xsl:stylesheet
28     xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
29     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
30     xmlns:dc="http://purl.org/dc/elements/1.1/"
31     xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
32     xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
33     xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
34     xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
35     xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
36     xmlns:xlink="http://www.w3.org/1999/xlink"
37     xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
38     xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
39     xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
40     xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
41     xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
42     xmlns:math="http://www.w3.org/1998/Math/MathML"
43     xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
44     xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
45     xmlns:dom="http://www.w3.org/2001/xml-events"
46     xmlns:xforms="http://www.w3.org/2002/xforms"
47     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
48     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
49     xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
50     version="1.0">
51
52
53     <xsl:param name="debug"></xsl:param>
54
55     <!-- URL of the converted page -->
56     <xsl:param name="url">http://localhost</xsl:param>
57
58     <!-- in the text to convert, heading tags start below this level
59          (0 for h1, 1 for h2, etc.) -->
60     <xsl:param name="heading_minus_level">0</xsl:param>
61
62     <!-- default image size -->
63     <xsl:param name="img_default_width">8cm</xsl:param>
64     <xsl:param name="img_default_height">6cm</xsl:param>
65
66     <!-- images smaller that this will be placed inline (e.g. smileys) -->
67     <xsl:param name="img_inline_threshold">2</xsl:param>
68
69 </xsl:stylesheet>
70