Update ooo320-m1
[ooovba.git] / filter / source / docbook / docbooktosoffheadings.xsl
blobd8d7feb4768cce59c6e4130e4850c568e93ae7f7
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 Copyright 2008 by Sun Microsystems, Inc.
7 OpenOffice.org - a multi-platform office productivity suite
9 $RCSfile: docbooktosoffheadings.xsl,v $
11 $Revision: 1.10 $
13 This file is part of OpenOffice.org.
15 OpenOffice.org is free software: you can redistribute it and/or modify
16 it under the terms of the GNU Lesser General Public License version 3
17 only, as published by the Free Software Foundation.
19 OpenOffice.org is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Lesser General Public License version 3 for more details
23 (a copy is included in the LICENSE file that accompanied this code).
25 You should have received a copy of the GNU Lesser General Public License
26 version 3 along with OpenOffice.org. If not, see
27 <http://www.openoffice.org/license.html>
28 for a copy of the LGPLv3 License.
30 -->
31 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:office="http://openoffice.org/2000/office" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="http://openoffice.org/2000/meta" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" xmlns:config="http://openoffice.org/2001/config" office:class="text" office:version="1.0">
32 <xsl:decimal-format name="staff" digit="D"/>
33 <xsl:template match="/">
34 <xsl:element name="office:document">
35 <office:meta>
36 <dc:title>
37 <xsl:value-of select="/article/articleinfo/title"/>
38 </dc:title>
39 <dc:description></dc:description>
40 <dc:subject></dc:subject>
41 <dc:date>
42 <xsl:value-of select="article/articleinfo/pubdate"/>
43 </dc:date>
44 <dc:language>
45 <xsl:value-of select="article/@lang"/>
46 </dc:language>
47 <meta:user-defined meta:name="Info 1"/>
48 <meta:user-defined meta:name="Info 2"/>
49 <meta:user-defined meta:name="Info 3"/>
50 <meta:user-defined meta:name="Info 4"/>
51 </office:meta>
52 <office:font-decls>
53 <style:font-decl style:name="Tahoma1" fo:font-family="Tahoma"/>
54 <style:font-decl style:name="Thorndale" fo:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/>
55 <style:font-decl style:name="Albany" fo:font-family="Albany" style:font-family-generic="swiss" style:font-pitch="variable"/>
56 <style:font-decl style:name="Andale Sans UI" fo:font-family="'Andale Sans UI'" style:font-family-generic="system" style:font-pitch="variable"/>
57 <style:font-decl style:name="MS Mincho" fo:font-family="'MS Mincho'" style:font-family-generic="system" style:font-pitch="variable"/>
58 <style:font-decl style:name="Tahoma" fo:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
59 </office:font-decls>
60 <office:styles>
61 <style:default-style style:family="graphics">
62 <style:properties draw:shadow-offset-x="0.3cm" draw:shadow-offset-y="0.3cm" draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" style:text-autospace="ideograph-alpha" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false" style:use-window-font-color="true" fo:font-size="12pt" fo:language="en" fo:country="US" style:font-size-asian="12pt" style:language-asian="zxx" style:country-asian="none" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none">
63 <style:tab-stops/>
64 </style:properties>
65 </style:default-style>
66 <style:default-style style:family="paragraph">
67 <style:properties fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="2.205cm" style:writing-mode="page" style:use-window-font-color="true" style:font-name="Thorndale" fo:font-size="12pt" fo:language="en" fo:country="US" style:font-name-asian="Andale Sans UI" style:font-size-asian="12pt" style:language-asian="zxx" style:country-asian="none" style:font-name-complex="Tahoma" style:font-size-complex="12pt" style:language-complex="zxx" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>
68 </style:default-style>
69 <style:default-style style:family="table">
70 <style:properties table:border-model="separating"/>
71 </style:default-style>
72 <style:default-style style:family="table-row">
73 <style:properties fo:keep-together="always"/>
74 </style:default-style>
75 <style:style style:name="Standard" style:family="paragraph" style:class="text"/>
76 <style:style style:name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
77 <style:properties fo:margin-top="0cm" fo:margin-bottom="0.212cm"/>
78 </style:style>
79 <style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text body" style:class="text">
80 <style:properties fo:margin-top="0.423cm" fo:margin-bottom="0.212cm" fo:keep-with-next="true" style:font-name="Albany" fo:font-size="14pt" style:font-name-asian="MS Mincho" style:font-size-asian="14pt" style:font-name-complex="Tahoma" style:font-size-complex="14pt"/>
81 </style:style>
82 <style:style style:name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
83 <style:properties fo:font-size="115%" fo:font-weight="bold" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
84 </style:style>
85 <style:style style:name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
86 <style:properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-style-complex="italic" style:font-weight-complex="bold"/>
87 </style:style>
88 <style:style style:name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
89 <style:properties fo:font-size="14pt" fo:font-weight="bold" style:font-size-asian="14pt" style:font-weight-asian="bold" style:font-size-complex="14pt" style:font-weight-complex="bold"/>
90 </style:style>
91 <style:style style:name="Heading 4" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
92 <style:properties fo:font-size="85%" fo:font-style="italic" fo:font-weight="bold" style:font-size-asian="85%" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-size-complex="85%" style:font-style-complex="italic" style:font-weight-complex="bold"/>
93 </style:style>
94 <style:style style:name="List" style:family="paragraph" style:parent-style-name="Text body" style:class="list">
95 <style:properties style:font-name-complex="Tahoma1"/>
96 </style:style>
97 <style:style style:name="Table Contents" style:family="paragraph" style:parent-style-name="Text body" style:class="extra">
98 <style:properties text:number-lines="false" text:line-number="0"/>
99 </style:style>
100 <style:style style:name="Table Heading" style:family="paragraph" style:parent-style-name="Table Contents" style:class="extra">
101 <style:properties fo:text-align="center" style:justify-single-word="false" text:number-lines="false" text:line-number="0" fo:font-style="italic" fo:font-weight="bold" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-style-complex="italic" style:font-weight-complex="bold"/>
102 </style:style>
103 <style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
104 <style:properties fo:margin-top="0.212cm" fo:margin-bottom="0.212cm" text:number-lines="false" text:line-number="0" fo:font-size="10pt" fo:font-style="italic" style:font-size-asian="10pt" style:font-style-asian="italic" style:font-size-complex="10pt" style:font-style-complex="italic"/>
105 </style:style>
106 <style:style style:name="Table" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
107 <style:style style:name="Frame contents" style:family="paragraph" style:parent-style-name="Text body" style:class="extra"/>
108 <style:style style:name="Footnote" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
109 <style:properties fo:margin-left="0.499cm" fo:margin-right="0cm" fo:text-indent="-0.499cm" style:auto-text-indent="false" text:number-lines="false" text:line-number="0" fo:font-size="10pt" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
110 </style:style>
111 <style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
112 <style:properties text:number-lines="false" text:line-number="0" style:font-name-complex="Tahoma1"/>
113 </style:style>
114 <style:style style:name="Subtitle" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="chapter">
115 <style:properties fo:text-align="center" style:justify-single-word="false" fo:font-size="14pt" fo:font-style="italic" style:font-size-asian="14pt" style:font-style-asian="italic" style:font-size-complex="14pt" style:font-style-complex="italic"/>
116 </style:style>
117 <style:style style:name="Mediaobject" style:family="paragraph" style:class="text"/>
118 <style:style style:name="Object" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
119 <style:style style:name="Section Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
120 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
121 </style:style>
122 <style:style style:name="Appendix Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
123 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
124 </style:style>
125 <style:style style:name="Section1 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
126 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
127 </style:style>
128 <style:style style:name="Section2 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
129 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="13pt"/>
130 </style:style>
131 <style:style style:name="Section3 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
132 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="12pt"/>
133 </style:style>
134 <style:style style:name="Section4 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
135 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="12pt"/>
136 </style:style>
137 <style:style style:name="Section5 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
138 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="12pt"/>
139 </style:style>
140 <style:style style:name="Document Title" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Document SubTitle">
141 <style:properties fo:text-align="center" style:justify-single-word="false" fo:font-size="20pt"/>
142 </style:style>
143 <style:style style:name="Document SubTitle" style:family="paragraph" style:parent-style-name="Document Title" style:next-style-name="Text body">
144 <style:properties fo:font-size="14pt"/>
145 </style:style>
146 <style:style style:name="Section SubTitle" style:family="paragraph" style:parent-style-name="Section Title"/>
147 <style:style style:name="CopyRight" style:family="paragraph" style:parent-style-name="Text body"/>
148 <style:style style:name="VarList Item" style:family="paragraph" style:parent-style-name="Text body" style:list-style-name="Var List" style:class="text">
149 <style:properties fo:margin-left="3cm" fo:margin-right="0cm" fo:text-indent="0cm" style:auto-text-indent="false">
150 <style:tab-stops>
151 <style:tab-stop style:position="0cm"/>
152 </style:tab-stops>
153 </style:properties>
154 </style:style>
155 <style:style style:name="VarList Term" style:family="paragraph" style:parent-style-name="Text body" style:list-style-name="Var List" style:class="text">
156 <style:properties fo:margin-left="1cm" fo:margin-right="0cm" fo:text-indent="-4.5cm" style:auto-text-indent="false">
157 <style:tab-stops>
158 <style:tab-stop style:position="0cm"/>
159 </style:tab-stops>
160 </style:properties>
161 </style:style>
162 <style:style style:name="Footnote Symbol" style:family="text"/>
163 <style:style style:name="Numbering Symbols" style:family="text"/>
164 <style:style style:name="Bullet Symbols" style:family="text">
165 <style:properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
166 </style:style>
167 <style:style style:name="Internet link" style:family="text">
168 <style:properties fo:color="#000080" style:text-underline-color="font-color" style:text-underline="single"/>
169 </style:style>
170 <style:style style:name="Endnote Symbol" style:family="text"/>
171 <style:style style:name="Emphasis" style:family="text">
172 <style:properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic"/>
173 </style:style>
174 <style:style style:name="Source Text" style:family="text"/>
175 <style:style style:name="Highlight" style:family="text">
176 <style:properties style:text-background-color="#fff000"/>
177 </style:style>
178 <style:style style:name="KeyCap" style:family="text">
179 <style:properties fo:font-weight="bold"/>
180 </style:style>
181 <style:style style:name="Command" style:family="text">
182 <style:properties fo:font-weight="bold"/>
183 </style:style>
184 <style:style style:name="Application" style:family="text">
185 <style:properties fo:font-weight="bold"/>
186 </style:style>
187 <style:style style:name="FileName" style:family="text">
188 <style:properties fo:font-weight="bold"/>
189 </style:style>
190 <style:style style:name="SuperScript" style:family="text">
191 <style:properties style:text-position="super 58%"/>
192 </style:style>
193 <style:style style:name="SubScript" style:family="text">
194 <style:properties style:text-position="sub 58%"/>
195 </style:style>
196 <style:style style:name="SystemItem" style:family="text">
197 <style:properties fo:font-weight="bold"/>
198 </style:style>
199 <style:style style:name="ComputerOutput" style:family="text">
200 <style:properties fo:font-weight="bold"/>
201 </style:style>
202 <style:style style:name="KeyCombo" style:family="text">
203 <style:properties fo:font-weight="bold"/>
204 </style:style>
205 <style:style style:name="KeySym" style:family="text">
206 <style:properties fo:font-weight="bold"/>
207 </style:style>
208 <style:style style:name="GuiMenu" style:family="text">
209 <style:properties fo:color="#000fff" fo:font-style="italic"/>
210 </style:style>
211 <style:style style:name="GuiSubMenu" style:family="text">
212 <style:properties fo:color="#ff9966" fo:font-style="italic"/>
213 </style:style>
214 <style:style style:name="GuiButton" style:family="text">
215 <style:properties fo:color="#00f0ff" fo:font-style="italic"/>
216 </style:style>
217 <style:style style:name="GuiMenuItem" style:family="text">
218 <style:properties fo:color="#00ffff" fo:font-style="italic"/>
219 </style:style>
220 <style:style style:name="GuiLabel" style:family="text">
221 <style:properties fo:color="#00777f" fo:font-style="italic"/>
222 </style:style>
223 <style:style style:name="Frame" style:family="graphics">
224 <style:properties text:anchor-type="paragraph" svg:x="0cm" svg:y="0cm" fo:margin-left="0.201cm" fo:margin-right="0.201cm" fo:margin-top="0.201cm" fo:margin-bottom="0.201cm" style:wrap="parallel" style:number-wrapped-paragraphs="no-limit" style:wrap-contour="false" style:vertical-pos="top" style:vertical-rel="paragraph-content" style:horizontal-pos="center" style:horizontal-rel="paragraph-content" fo:padding="0.15cm" fo:border="0.002cm solid #000000"/>
225 </style:style>
226 <text:outline-style>
227 <text:outline-level-style text:level="1" style:num-format=""/>
228 <text:outline-level-style text:level="2" style:num-format=""/>
229 <text:outline-level-style text:level="3" style:num-format=""/>
230 <text:outline-level-style text:level="4" style:num-format=""/>
231 <text:outline-level-style text:level="5" style:num-format=""/>
232 <text:outline-level-style text:level="6" style:num-format=""/>
233 <text:outline-level-style text:level="7" style:num-format=""/>
234 <text:outline-level-style text:level="8" style:num-format=""/>
235 <text:outline-level-style text:level="9" style:num-format=""/>
236 <text:outline-level-style text:level="10" style:num-format=""/>
237 </text:outline-style>
238 <text:list-style style:name="Ordered List">
239 <text:list-level-style-number text:level="1" text:style-name="Numbering Symbols" style:num-suffix="." style:num-format="1">
240 <style:properties text:min-label-width="0.499cm"/>
241 </text:list-level-style-number>
242 <text:list-level-style-number text:level="2" style:num-suffix="." style:num-format="1">
243 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm"/>
244 </text:list-level-style-number>
245 <text:list-level-style-number text:level="3" style:num-suffix="." style:num-format="1">
246 <style:properties text:space-before="1cm" text:min-label-width="0.499cm"/>
247 </text:list-level-style-number>
248 <text:list-level-style-number text:level="4" style:num-suffix="." style:num-format="1">
249 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm"/>
250 </text:list-level-style-number>
251 <text:list-level-style-number text:level="5" style:num-suffix="." style:num-format="1">
252 <style:properties text:space-before="2cm" text:min-label-width="0.499cm"/>
253 </text:list-level-style-number>
254 <text:list-level-style-number text:level="6" style:num-suffix="." style:num-format="1">
255 <style:properties text:space-before="2.501cm" text:min-label-width="0.499cm"/>
256 </text:list-level-style-number>
257 <text:list-level-style-number text:level="7" style:num-suffix="." style:num-format="1">
258 <style:properties text:space-before="3.001cm" text:min-label-width="0.499cm"/>
259 </text:list-level-style-number>
260 <text:list-level-style-number text:level="8" style:num-suffix="." style:num-format="1">
261 <style:properties text:space-before="3.502cm" text:min-label-width="0.499cm"/>
262 </text:list-level-style-number>
263 <text:list-level-style-number text:level="9" style:num-suffix="." style:num-format="1">
264 <style:properties text:space-before="4.001cm" text:min-label-width="0.499cm"/>
265 </text:list-level-style-number>
266 <text:list-level-style-number text:level="10" style:num-suffix="." style:num-format="1">
267 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm"/>
268 </text:list-level-style-number>
269 </text:list-style>
270 <text:list-style style:name="UnOrdered List">
271 <text:list-level-style-bullet text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
272 <style:properties text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
273 </text:list-level-style-bullet>
274 <text:list-level-style-bullet text:level="2" text:style-name="Bullet Symbols" text:bullet-char="•">
275 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
276 </text:list-level-style-bullet>
277 <text:list-level-style-bullet text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
278 <style:properties text:space-before="1cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
279 </text:list-level-style-bullet>
280 <text:list-level-style-bullet text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
281 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
282 </text:list-level-style-bullet>
283 <text:list-level-style-bullet text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
284 <style:properties text:space-before="2cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
285 </text:list-level-style-bullet>
286 <text:list-level-style-bullet text:level="6" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
287 <style:properties text:space-before="2.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
288 </text:list-level-style-bullet>
289 <text:list-level-style-bullet text:level="7" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
290 <style:properties text:space-before="3.001cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
291 </text:list-level-style-bullet>
292 <text:list-level-style-bullet text:level="8" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
293 <style:properties text:space-before="3.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
294 </text:list-level-style-bullet>
295 <text:list-level-style-bullet text:level="9" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
296 <style:properties text:space-before="4.001cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
297 </text:list-level-style-bullet>
298 <text:list-level-style-bullet text:level="10" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
299 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
300 </text:list-level-style-bullet>
301 </text:list-style>
302 <text:list-style style:name="Var List">
303 <text:list-level-style-bullet text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
304 <style:properties text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
305 </text:list-level-style-bullet>
306 <text:list-level-style-bullet text:level="2" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
307 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
308 </text:list-level-style-bullet>
309 <text:list-level-style-bullet text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
310 <style:properties text:space-before="1cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
311 </text:list-level-style-bullet>
312 <text:list-level-style-bullet text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
313 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
314 </text:list-level-style-bullet>
315 <text:list-level-style-bullet text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
316 <style:properties text:space-before="2cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
317 </text:list-level-style-bullet>
318 <text:list-level-style-bullet text:level="6" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
319 <style:properties text:space-before="2.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
320 </text:list-level-style-bullet>
321 <text:list-level-style-bullet text:level="7" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
322 <style:properties text:space-before="3.001cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
323 </text:list-level-style-bullet>
324 <text:list-level-style-bullet text:level="8" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
325 <style:properties text:space-before="3.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
326 </text:list-level-style-bullet>
327 <text:list-level-style-bullet text:level="9" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
328 <style:properties text:space-before="4.001cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
329 </text:list-level-style-bullet>
330 <text:list-level-style-bullet text:level="10" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
331 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
332 </text:list-level-style-bullet>
333 </text:list-style>
334 <text:footnotes-configuration text:citation-style-name="Footnote Symbol" style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="page"/>
335 <text:endnotes-configuration text:citation-style-name="Endnote Symbol" text:master-page-name="Endnote" style:num-format="1" text:start-value="0"/>
336 <text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/>
337 </office:styles>
338 <office:automatic-styles>
339 <style:page-master style:name="pm1">
340 <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2.54cm" fo:margin-bottom="2.54cm" fo:margin-left="3.175cm" fo:margin-right="3.175cm" style:writing-mode="lr-tb" style:footnote-max-height="0cm">
341 <style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
342 </style:properties>
343 <style:header-style/>
344 <style:footer-style/>
345 </style:page-master>
346 <style:page-master style:name="pm2">
347 <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:writing-mode="lr-tb" style:footnote-max-height="0cm">
348 <style:footnote-sep style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
349 </style:properties>
350 <style:header-style/>
351 <style:footer-style/>
352 </style:page-master>
353 </office:automatic-styles>
354 <office:master-styles>
355 <style:master-page style:name="Standard" style:page-master-name="pm1"/>
356 <style:master-page style:name="Endnote" style:page-master-name="pm2"/>
357 </office:master-styles>
358 <office:body>
359 <xsl:apply-templates/>
360 </office:body>
361 </xsl:element>
362 </xsl:template>
364 <xsl:template match="subtitle">
365 <xsl:choose>
366 <xsl:when test="parent::table">
367 <xsl:apply-templates/>
368 </xsl:when>
369 <xsl:when test="parent::informaltable">
370 <xsl:apply-templates/>
371 </xsl:when>
372 <xsl:otherwise>
373 <xsl:element name="text:p">
374 <xsl:attribute name="text:style-name">Section SubTitle</xsl:attribute>
375 </xsl:element>
376 </xsl:otherwise>
377 </xsl:choose>
378 </xsl:template>
383 <xsl:template match="title">
384 <xsl:choose>
385 <xsl:when test="parent::figure"></xsl:when>
386 <xsl:when test="parent::table"></xsl:when>
387 <xsl:when test="parent::sect1"></xsl:when>
388 <xsl:when test="parent::sect2"></xsl:when>
389 <xsl:when test="parent::sect3"></xsl:when>
390 <xsl:when test="parent::sect4"></xsl:when>
391 <xsl:when test="parent::sect5"></xsl:when>
392 <xsl:when test="parent::informaltable">
393 <xsl:apply-templates/>
394 </xsl:when>
396 <xsl:otherwise>
397 <xsl:element name="text:p">
398 <xsl:choose>
400 <xsl:when test="parent::appendix">
401 <xsl:attribute name="text:style-name">Appendix Title</xsl:attribute>
402 </xsl:when>
403 </xsl:choose>
404 <xsl:apply-templates/>
405 </xsl:element>
406 </xsl:otherwise>
407 </xsl:choose>
408 </xsl:template>
410 <xsl:template match="articleinfo">
411 <xsl:element name="text:section">
412 <xsl:attribute name="text:style-name">ArticleInfo</xsl:attribute>
413 <xsl:attribute name="text:name">ArticleInfo</xsl:attribute>
414 <xsl:if test="/article/articleinfo/title !=''">
415 <xsl:element name="text:p">
416 <xsl:attribute name="text:style-name">Document Title</xsl:attribute>
417 <xsl:value-of select="/article/articleinfo/title"/>
418 </xsl:element>
419 <xsl:if test="/article/articleinfo/subtitle !=''">
420 <xsl:element name="text:p">
421 <xsl:attribute name="text:style-name">Document SubTitle</xsl:attribute>
422 <xsl:value-of select="/article/articleinfo/subtitle"/>
423 </xsl:element>
424 </xsl:if>
425 </xsl:if>
426 <xsl:apply-templates/>
427 </xsl:element>
429 </xsl:template>
431 <xsl:template match="appendix">
432 <xsl:element name="text:section">
433 <xsl:attribute name="text:style-name">Appendix</xsl:attribute>
434 <xsl:attribute name="text:name">Appendix</xsl:attribute>
435 <xsl:apply-templates/>
436 </xsl:element>
438 </xsl:template>
440 <!--
441 <xsl:template match="author">
442 <xsl:apply-templates/>
443 </xsl:template>
445 <xsl:template match="firstname">
446 <xsl:element name="text:variable-set">
447 <xsl:attribute name="text:name">
448 <xsl:if test="ancestor::articleinfo/author">
449 <xsl:text disable-output-escaping="yes">articleinfo.author</xsl:text><xsl:value-of select="count(parent::author[preceding-sibling::author])"/><xsl:text disable-output-escaping="yes">.firstname</xsl:text><xsl:value-of select="count(preceding-sibling::firstname)"/>
450 </xsl:if>
451 </xsl:attribute>
452 <xsl:apply-templates/>
453 </xsl:element>
455 </xsl:template>-->
457 <xsl:template match="articleinfo/title">
458 <!-- <xsl:element name="text:variable-decls">
459 <xsl:element name="text:variable-decl">
460 <xsl:attribute name="text:value-type">
461 <xsl:text>string</xsl:text>
462 </xsl:attribute>
463 <xsl:attribute name="text:name">
464 <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
465 </xsl:attribute>
466 </xsl:element>
468 </xsl:element>
469 <xsl:element name="text:p">
470 <xsl:element name="text:variable-set">
471 <xsl:attribute name="text:value-type">
472 <xsl:text>string</xsl:text>
473 </xsl:attribute>
474 <xsl:attribute name="text:name">
475 <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
476 </xsl:attribute>
477 <xsl:apply-templates/>
478 </xsl:element>
479 </xsl:element>--></xsl:template>
481 <xsl:template match="articleinfo/subtitle">
482 <xsl:element name="text:variable-decls">
483 <xsl:element name="text:variable-decl">
484 <xsl:attribute name="text:value-type">
485 <xsl:text>string</xsl:text>
486 </xsl:attribute>
487 <xsl:attribute name="text:name">
488 <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
489 </xsl:attribute>
490 </xsl:element>
491 </xsl:element>
492 <xsl:element name="text:p">
493 <xsl:element name="text:variable-set">
494 <xsl:attribute name="text:value-type">
495 <xsl:text>string</xsl:text>
496 </xsl:attribute>
497 <xsl:attribute name="text:name">
498 <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
499 </xsl:attribute>
500 <xsl:apply-templates/>
501 </xsl:element>
502 </xsl:element>
503 </xsl:template>
505 <xsl:template match="articleinfo/edition">
506 <xsl:element name="text:variable-decls">
507 <xsl:element name="text:variable-decl">
508 <xsl:attribute name="text:value-type">
509 <xsl:text>string</xsl:text>
510 </xsl:attribute>
511 <xsl:attribute name="text:name">
512 <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
513 </xsl:attribute>
514 </xsl:element>
515 </xsl:element>
516 <xsl:element name="text:p">
517 <xsl:element name="text:variable-set">
518 <xsl:attribute name="text:value-type">
519 <xsl:text>string</xsl:text>
520 </xsl:attribute>
521 <xsl:attribute name="text:name">
522 <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
523 </xsl:attribute>
524 <xsl:apply-templates/>
525 </xsl:element>
526 </xsl:element>
527 </xsl:template>
529 <xsl:template match="articleinfo/releaseinfo">
530 <xsl:element name="text:variable-decls">
531 <xsl:element name="text:variable-decl">
532 <xsl:attribute name="text:value-type">
533 <xsl:text>string</xsl:text>
534 </xsl:attribute>
535 <xsl:attribute name="text:name">
536 <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
537 <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
538 </xsl:attribute>
539 </xsl:element>
540 </xsl:element>
541 <xsl:element name="text:p">
542 <xsl:element name="text:variable-set">
543 <xsl:attribute name="text:value-type">
544 <xsl:text>string</xsl:text>
545 </xsl:attribute>
546 <xsl:attribute name="text:name">
547 <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
548 <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
549 </xsl:attribute>
550 <xsl:apply-templates/>
551 </xsl:element>
552 </xsl:element>
553 </xsl:template>
556 <xsl:template match="author/firstname">
557 <xsl:element name="text:variable-decls">
558 <xsl:element name="text:variable-decl">
559 <xsl:attribute name="text:value-type">
560 <xsl:text>string</xsl:text>
561 </xsl:attribute>
563 <xsl:attribute name="text:name">
564 <xsl:if test="ancestor::articleinfo">
565 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
566 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
567 <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
568 <xsl:value-of select="count(preceding-sibling::firstname)"/>
569 </xsl:if>
570 </xsl:attribute>
571 </xsl:element>
572 </xsl:element>
573 <xsl:element name="text:p">
574 <xsl:element name="text:variable-set">
575 <xsl:attribute name="text:value-type">
576 <xsl:text>string</xsl:text>
577 </xsl:attribute>
578 <xsl:attribute name="text:name">
579 <xsl:if test="ancestor::articleinfo">
580 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
581 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
582 <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
583 <xsl:value-of select="count(preceding-sibling::firstname)"/>
584 </xsl:if>
585 </xsl:attribute>
586 <xsl:apply-templates/>
587 </xsl:element>
588 </xsl:element>
589 </xsl:template>
593 <xsl:template match="articleinfo/copyright/year">
594 <xsl:element name="text:variable-decls">
595 <xsl:element name="text:variable-decl">
596 <xsl:attribute name="text:value-type">
597 <xsl:text>string</xsl:text>
598 </xsl:attribute>
600 <xsl:attribute name="text:name">
601 <xsl:if test="ancestor::articleinfo/copyright">
602 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
603 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
604 <xsl:text disable-output-escaping="yes">.year_</xsl:text>
605 <xsl:value-of select="count(preceding-sibling::year)"/>
606 </xsl:if>
607 </xsl:attribute>
608 </xsl:element>
609 </xsl:element>
610 <xsl:element name="text:p">
611 <xsl:element name="text:variable-set">
612 <xsl:attribute name="text:value-type">
613 <xsl:text>string</xsl:text>
614 </xsl:attribute>
615 <xsl:attribute name="text:name">
616 <xsl:if test="ancestor::articleinfo/copyright">
617 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
618 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
619 <xsl:text disable-output-escaping="yes">.year_</xsl:text>
620 <xsl:value-of select="count(preceding-sibling::year)"/>
621 </xsl:if>
622 </xsl:attribute>
623 <xsl:apply-templates/>
624 </xsl:element>
625 </xsl:element>
626 </xsl:template>
628 <xsl:template match="authorgroup">
629 <xsl:apply-templates/>
630 </xsl:template>
632 <xsl:template match="articleinfo/copyright/holder">
633 <xsl:element name="text:variable-decls">
634 <xsl:element name="text:variable-decl">
635 <xsl:attribute name="text:value-type">
636 <xsl:text>string</xsl:text>
637 </xsl:attribute>
639 <xsl:attribute name="text:name">
640 <xsl:if test="ancestor::articleinfo/copyright">
641 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
642 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
643 <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
644 <xsl:value-of select="count(preceding-sibling::holder)"/>
645 </xsl:if>
646 </xsl:attribute>
647 </xsl:element>
648 </xsl:element>
649 <xsl:element name="text:p">
650 <xsl:element name="text:variable-set">
651 <xsl:attribute name="text:value-type">
652 <xsl:text>string</xsl:text>
653 </xsl:attribute>
654 <xsl:attribute name="text:name">
655 <xsl:if test="ancestor::articleinfo/copyright">
656 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
657 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
658 <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
659 <xsl:value-of select="count(preceding-sibling::holder)"/>
660 </xsl:if>
661 </xsl:attribute>
662 <xsl:apply-templates/>
663 </xsl:element>
664 </xsl:element>
665 </xsl:template>
670 <xsl:template name="affiliation">
671 <xsl:apply-templates/>
672 </xsl:template>
674 <xsl:template match="author/affiliation/address">
675 <xsl:element name="text:variable-decls">
676 <xsl:element name="text:variable-decl">
677 <xsl:attribute name="text:value-type">
678 <xsl:text>string</xsl:text>
679 </xsl:attribute>
680 <xsl:attribute name="text:name">
681 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
682 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
683 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
684 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
685 <xsl:text disable-output-escaping="yes">.address_</xsl:text>
686 <xsl:value-of select="count(preceding-sibling::address)"/>
687 </xsl:attribute>
688 </xsl:element>
689 </xsl:element>
690 <xsl:element name="text:p">
691 <xsl:element name="text:variable-set">
692 <xsl:attribute name="text:value-type">
693 <xsl:text>string</xsl:text>
694 </xsl:attribute>
695 <xsl:attribute name="text:name">
696 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
697 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
698 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
699 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
700 <xsl:text disable-output-escaping="yes">.address_</xsl:text>
701 <xsl:value-of select="count(preceding-sibling::address)"/>
703 </xsl:attribute>
704 <xsl:apply-templates/>
705 </xsl:element>
706 </xsl:element>
707 </xsl:template>
709 <xsl:template match="author/affiliation/orgname">
710 <xsl:element name="text:variable-decls">
711 <xsl:element name="text:variable-decl">
712 <xsl:attribute name="text:value-type">
713 <xsl:text>string</xsl:text>
714 </xsl:attribute>
715 <xsl:if test="ancestor::articleinfo">
716 <xsl:attribute name="text:name">
717 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
718 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
719 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
720 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
721 <xsl:text disable-output-escaping="yes">.orgname_</xsl:text>
722 <xsl:value-of select="count(preceding-sibling::orgname)"/>
723 </xsl:attribute>
724 </xsl:if>
725 </xsl:element>
726 </xsl:element>
727 <xsl:element name="text:p">
728 <xsl:element name="text:variable-set">
729 <xsl:attribute name="text:value-type">
730 <xsl:text>string</xsl:text>
731 </xsl:attribute>
732 <xsl:if test="ancestor::articleinfo">
733 <xsl:attribute name="text:name">
734 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
735 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
736 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
737 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
738 <xsl:text disable-output-escaping="yes">.orgname_</xsl:text>
739 <xsl:value-of select="count(preceding-sibling::orgname)"/>
740 </xsl:attribute>
741 </xsl:if>
742 <xsl:apply-templates/>
743 </xsl:element>
744 </xsl:element>
745 </xsl:template>
749 <xsl:template match="author/surname">
750 <xsl:element name="text:variable-decls">
751 <xsl:element name="text:variable-decl">
752 <xsl:attribute name="text:value-type">
753 <xsl:text>string</xsl:text>
754 </xsl:attribute>
756 <xsl:attribute name="text:name">
757 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
758 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
759 <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
760 <xsl:value-of select="count(preceding-sibling::surname)"/>
761 </xsl:attribute>
762 </xsl:element>
763 </xsl:element>
764 <xsl:element name="text:p">
765 <xsl:element name="text:variable-set">
766 <xsl:attribute name="text:value-type">
767 <xsl:text>string</xsl:text>
768 </xsl:attribute>
769 <xsl:attribute name="text:name">
770 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
771 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
772 <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
773 <xsl:value-of select="count(preceding-sibling::surname)"/>
776 </xsl:attribute>
777 <xsl:apply-templates/>
778 </xsl:element>
779 </xsl:element>
780 </xsl:template>
786 <xsl:template match="para">
788 <xsl:element name="text:p">
790 <xsl:choose>
791 <xsl:when test="ancestor-or-self::footnote">
792 <xsl:attribute name="text:style-name">Footnote</xsl:attribute>
793 </xsl:when>
794 <xsl:when test="ancestor-or-self::listitem">
795 <xsl:attribute name="text:style-name">VarList Item</xsl:attribute>
796 </xsl:when>
797 <xsl:when test="ancestor-or-self::informaltable">
798 <xsl:if test="ancestor-or-self::informaltable">
799 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
800 </xsl:if>
801 <xsl:if test="ancestor-or-self::thead">
802 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
803 </xsl:if>
804 </xsl:when>
805 <xsl:when test="ancestor-or-self::table">
806 <xsl:if test="ancestor-or-self::table">
807 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
808 </xsl:if>
809 <xsl:if test="ancestor-or-self::thead">
810 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
811 </xsl:if>
812 </xsl:when>
813 <xsl:otherwise>
814 <xsl:attribute name="text:style-name">Text body</xsl:attribute>
815 </xsl:otherwise>
816 </xsl:choose>
818 <xsl:apply-templates/>
819 </xsl:element>
821 </xsl:template>
823 <xsl:template match="section">
824 <xsl:element name="text:h">
825 <xsl:attribute name="text:level">
826 <xsl:value-of select="count(ancestor-or-self::section)"/>
827 </xsl:attribute>
828 <xsl:value-of select="child::title"/>
829 </xsl:element>
830 <xsl:apply-templates/>
831 </xsl:template>
833 <xsl:template match="abstract">
834 <xsl:element name="text:h">
835 <xsl:attribute name="text:level">1</xsl:attribute>
836 <xsl:text>abstract</xsl:text>
837 </xsl:element>
838 <xsl:apply-templates/>
839 </xsl:template>
842 <xsl:template match="appendix">
843 <xsl:element name="text:h">
844 <xsl:attribute name="text:level">1</xsl:attribute>
845 <xsl:text>appendix</xsl:text>
846 </xsl:element>
847 <xsl:apply-templates/>
848 </xsl:template>
850 <xsl:template match="sect1">
851 <xsl:element name="text:h">
852 <xsl:attribute name="text:level">1</xsl:attribute>
853 <xsl:attribute name="text:style-name">Heading 1</xsl:attribute>
854 <xsl:value-of select="child::title"/>
855 </xsl:element>
856 <xsl:apply-templates/>
857 </xsl:template>
859 <xsl:template match="sect2">
860 <xsl:element name="text:h">
861 <xsl:attribute name="text:level">2</xsl:attribute>
862 <xsl:attribute name="text:style-name">Heading 2</xsl:attribute>
863 <xsl:value-of select="child::title"/>
864 </xsl:element>
865 <xsl:apply-templates/>
866 </xsl:template>
868 <xsl:template match="sect3">
869 <xsl:element name="text:h">
870 <xsl:attribute name="text:level">3</xsl:attribute>
871 <xsl:attribute name="text:style-name">Heading 3</xsl:attribute>
872 <xsl:value-of select="child::title"/>
873 </xsl:element>
874 <xsl:apply-templates/>
875 </xsl:template>
877 <xsl:template match="sect4">
878 <xsl:element name="text:h">
879 <xsl:attribute name="text:level">4</xsl:attribute>
880 <xsl:attribute name="text:style-name">Heading 4</xsl:attribute>
881 <xsl:value-of select="child::title"/>
882 </xsl:element>
883 <xsl:apply-templates/>
884 </xsl:template>
886 <xsl:template match="sect5">
887 <xsl:element name="text:h">
888 <xsl:attribute name="text:level">5</xsl:attribute>
889 <xsl:value-of select="child::title"/>
890 </xsl:element>
891 <xsl:apply-templates/>
892 </xsl:template>
894 <!--<xsl:template match="sect5">
895 <xsl:element name="text:section">
896 <xsl:attribute name="text:style-name">Sect1</xsl:attribute>
897 <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
898 <xsl:apply-templates/>
899 </xsl:element>
900 </xsl:template>-->
903 <xsl:template match="informaltable">
904 <xsl:element name="table:table">
905 <xsl:attribute name="table:name"></xsl:attribute>
906 <xsl:attribute name="table:style-name">Table1</xsl:attribute>
907 <xsl:attribute name="table:name">
908 <xsl:value-of select="@id"/>
909 </xsl:attribute>
910 <xsl:apply-templates/>
911 </xsl:element>
912 </xsl:template>
915 <xsl:template match="table">
916 <xsl:variable name="tabletitle">
917 <xsl:value-of select="title"/>
918 </xsl:variable>
919 <xsl:element name="table:table">
920 <xsl:attribute name="table:name"></xsl:attribute>
921 <xsl:attribute name="table:style-name">Table1</xsl:attribute>
922 <xsl:attribute name="table:name">
923 <xsl:value-of select="@id"/>
924 </xsl:attribute>
925 <xsl:apply-templates/>
926 </xsl:element>
927 <xsl:if test="not($tabletitle='')">
928 <xsl:element name="text:p">
929 <xsl:attribute name="text:style-name">Table</xsl:attribute>
930 <xsl:value-of select="$tabletitle"/>
931 </xsl:element>
932 </xsl:if>
933 </xsl:template>
935 <xsl:template match="tgroup">
936 <xsl:element name="table:table-column">
937 <xsl:attribute name="table:style-name">Table1.A</xsl:attribute>
938 <xsl:choose>
939 <xsl:when test="@cols >0">
940 <xsl:attribute name="table:number-columns-repeated">
941 <xsl:value-of select="@cols"/>
942 </xsl:attribute>
943 </xsl:when>
944 <xsl:otherwise>
945 <xsl:attribute name="table:number-columns-repeated">
946 <xsl:value-of select="count(child::tbody/row/entry) div count(child::tbody/row)"/>
947 </xsl:attribute>
948 </xsl:otherwise>
949 </xsl:choose>
950 </xsl:element>
951 <xsl:apply-templates/>
952 </xsl:template>
955 <xsl:template match="indexterm"></xsl:template>
957 <xsl:template match="thead">
958 <xsl:element name="table:table-header-rows">
959 <xsl:apply-templates/>
960 </xsl:element>
961 </xsl:template>
963 <xsl:template match="tbody">
964 <xsl:apply-templates/>
965 </xsl:template>
967 <xsl:template match="row">
968 <xsl:element name="table:table-row">
969 <xsl:apply-templates/>
970 </xsl:element>
971 </xsl:template>
973 <xsl:template match="entry">
974 <xsl:element name="table:table-cell">
975 <xsl:if test="ancestor-or-self::thead">
976 <xsl:attribute name="table:style-name">Table1.A1</xsl:attribute>
977 </xsl:if>
978 <xsl:if test="not(ancestor-or-self::thead)">
979 <xsl:attribute name="table:style-name">Table1.A2</xsl:attribute>
980 </xsl:if>
982 <xsl:choose>
983 <xsl:when test="@spanname">
984 <!--<xsl:if test="@spanname">-->
985 <xsl:variable name="sname">
986 <xsl:value-of select="@spanname"/>
987 </xsl:variable>
988 <xsl:attribute name="table:number-columns-spanned">
989 <xsl:variable name="colnamestart">
990 <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@namest"/>
991 </xsl:variable>
992 <xsl:variable name="colnameend">
993 <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@nameend"/>
994 </xsl:variable>
995 <xsl:variable name="colnumstart">
996 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
997 </xsl:variable>
998 <xsl:variable name="colnumend">
999 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
1000 </xsl:variable>
1001 <xsl:value-of select="$colnumend - $colnumstart + 1"/>
1002 </xsl:attribute>
1003 </xsl:when>
1004 <xsl:when test="@namest and @nameend">
1005 <!--<xsl:if test="@namest and @nameend">-->
1006 <xsl:variable name="colnamestart">
1007 <xsl:value-of select="@namest"/>
1008 </xsl:variable>
1009 <xsl:variable name="colnameend">
1010 <xsl:value-of select="@nameend"/>
1011 </xsl:variable>
1013 <xsl:attribute name="table:number-columns-spanned">
1014 <xsl:variable name="colnumstart">
1015 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
1016 </xsl:variable>
1017 <xsl:variable name="colnumend">
1018 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
1019 </xsl:variable>
1020 <xsl:value-of select="$colnumend - $colnumstart + 1"/>
1022 </xsl:attribute>
1023 </xsl:when>
1024 </xsl:choose>
1025 <!--
1026 <xsl:if test="not(@namest = '' ) ">
1027 <xsl:attribute name="table:number-columns-spanned">
1028 <xsl:value-of select="(substring-after(@nameend,'c')-substring-after(@namest,'c'))+1"/>
1030 </xsl:attribute>
1031 </xsl:if>
1033 <xsl:choose>
1034 <xsl:when test="not(child::para)">
1035 <xsl:element name="text:p">
1036 <xsl:if test="ancestor-or-self::thead">
1037 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
1038 </xsl:if>
1039 <xsl:if test="ancestor-or-self::tbody">
1040 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
1041 </xsl:if>
1042 <xsl:apply-templates/>
1043 </xsl:element>
1044 </xsl:when>
1045 <xsl:otherwise>
1046 <xsl:apply-templates/>
1047 </xsl:otherwise>
1048 </xsl:choose>
1049 </xsl:element>
1050 </xsl:template>
1057 <xsl:template match="figure">
1058 <xsl:apply-templates/>
1059 </xsl:template>
1061 <!-- lists Section -->
1063 <xsl:template match="itemizedlist">
1064 <xsl:element name="text:unordered-list">
1065 <xsl:if test="not(ancestor::itemizedlist)">
1066 <xsl:attribute name="text:style-name">L1</xsl:attribute>
1067 </xsl:if>
1068 <xsl:apply-templates/>
1069 </xsl:element>
1070 </xsl:template>
1072 <xsl:template match="variablelist">
1073 <xsl:element name="text:unordered-list">
1074 <xsl:attribute name="text:style-name">Var List</xsl:attribute>
1075 <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
1076 <xsl:apply-templates/>
1077 </xsl:element>
1078 </xsl:template>
1080 <xsl:template match="orderedlist">
1081 <xsl:element name="text:ordered-list">
1082 <xsl:attribute name="text:style-name">Ordered List</xsl:attribute>
1083 <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
1084 <xsl:apply-templates/>
1085 </xsl:element>
1086 </xsl:template>
1088 <xsl:template match="term">
1089 <xsl:if test="parent::varlistentry">
1090 <text:list-item>
1091 <xsl:element name="text:p">
1092 <xsl:attribute name="text:style-name">VarList Term</xsl:attribute>
1093 <xsl:apply-templates/>
1094 </xsl:element>
1095 </text:list-item>
1096 </xsl:if>
1097 </xsl:template>
1099 <xsl:template match="listitem">
1100 <text:list-item>
1101 <xsl:apply-templates/>
1102 </text:list-item>
1103 </xsl:template>
1105 <!-- end of lists-->
1107 <xsl:template match="menuchoice">
1108 <xsl:apply-templates/>
1109 </xsl:template>
1111 <xsl:template match="guimenuitem">
1112 <xsl:element name="text:span">
1113 <xsl:attribute name="text:style-name">GuiMenuItem</xsl:attribute>
1114 <xsl:apply-templates/>
1115 </xsl:element>
1116 </xsl:template>
1118 <xsl:template match="guibutton">
1119 <xsl:element name="text:span">
1120 <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
1121 <xsl:apply-templates/>
1122 </xsl:element>
1123 </xsl:template>
1125 <xsl:template match="guisubmenu">
1126 <xsl:element name="text:span">
1127 <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
1128 <xsl:apply-templates/>
1129 </xsl:element>
1130 </xsl:template>
1132 <xsl:template match="emphasis">
1133 <xsl:element name="text:span">
1134 <xsl:attribute name="text:style-name">Emphasis</xsl:attribute>
1135 <xsl:apply-templates/>
1136 </xsl:element>
1137 </xsl:template>
1140 <xsl:template match="guimenu">
1141 <xsl:element name="text:span">
1142 <xsl:attribute name="text:style-name">GuiMenu</xsl:attribute>
1143 <xsl:apply-templates/>
1144 </xsl:element>
1145 </xsl:template>
1147 <xsl:template match="guisubmenu">
1148 <xsl:element name="text:span">
1149 <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
1150 <xsl:apply-templates/>
1151 </xsl:element>
1152 </xsl:template>
1155 <xsl:template match="guilabel">
1156 <xsl:element name="text:span">
1157 <xsl:attribute name="text:style-name">GuiLabel</xsl:attribute>
1158 <xsl:apply-templates/>
1159 </xsl:element>
1160 </xsl:template>
1162 <xsl:template match="guibutton">
1163 <xsl:element name="text:span">
1164 <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
1165 <xsl:apply-templates/>
1166 </xsl:element>
1167 </xsl:template>
1169 <xsl:template match="keycap">
1170 <xsl:element name="text:span">
1171 <xsl:attribute name="text:style-name">KeyCap</xsl:attribute>
1172 <xsl:apply-templates/>
1173 </xsl:element>
1174 </xsl:template>
1177 <xsl:template match="keysym">
1178 <xsl:element name="text:span">
1179 <xsl:attribute name="text:style-name">KeySym</xsl:attribute>
1180 <xsl:apply-templates/>
1181 </xsl:element>
1182 </xsl:template>
1185 <xsl:template match="keycombo">
1186 <xsl:element name="text:span">
1187 <xsl:attribute name="text:style-name">KeyCombo</xsl:attribute>
1188 <xsl:apply-templates/>
1189 </xsl:element>
1190 </xsl:template>
1192 <xsl:template match="command">
1193 <xsl:element name="text:span">
1194 <xsl:attribute name="text:style-name">Command</xsl:attribute>
1195 <xsl:apply-templates/>
1196 </xsl:element>
1197 </xsl:template>
1199 <xsl:template match="application">
1200 <xsl:element name="text:span">
1201 <xsl:attribute name="text:style-name">Application</xsl:attribute>
1202 <xsl:apply-templates/>
1203 </xsl:element>
1204 </xsl:template>
1206 <xsl:template match="filename">
1207 <xsl:element name="text:span">
1208 <xsl:attribute name="text:style-name">FileName</xsl:attribute>
1209 <xsl:apply-templates/>
1210 </xsl:element>
1211 </xsl:template>
1213 <xsl:template match="systemitem">
1214 <xsl:element name="text:span">
1215 <xsl:attribute name="text:style-name">SystemItem</xsl:attribute>
1216 <xsl:apply-templates/>
1217 </xsl:element>
1218 </xsl:template>
1220 <xsl:template match="computeroutput">
1221 <xsl:element name="text:span">
1222 <xsl:attribute name="text:style-name">ComputerOutput</xsl:attribute>
1223 <xsl:apply-templates/>
1224 </xsl:element>
1225 </xsl:template>
1227 <xsl:template match="inlinegraphic">
1228 <xsl:element name="draw:image">
1229 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1230 <xsl:attribute name="draw:name"></xsl:attribute>
1231 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1232 <xsl:attribute name="draw:z-index"></xsl:attribute>
1233 <xsl:attribute name="xlink:href">
1234 <xsl:value-of select="@fileref"/>
1235 </xsl:attribute>
1236 <xsl:attribute name="xlink:type"></xsl:attribute>
1237 <xsl:attribute name="svg:width">
1238 <!--<xsl:value-of select="@width"/>-->
1239 <xsl:text>1cm</xsl:text>
1240 </xsl:attribute>
1241 <xsl:attribute name="svg:height">
1242 <xsl:text>1cm</xsl:text>
1243 </xsl:attribute>
1244 <xsl:attribute name="xlink:show">
1245 <xsl:text>embed</xsl:text>
1246 </xsl:attribute>
1247 <xsl:attribute name="xlink:actuate">
1248 <xsl:text>onLoad</xsl:text>
1249 </xsl:attribute>
1250 <xsl:attribute name="draw:filter-name">
1251 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1252 </xsl:attribute>
1253 </xsl:element>
1254 </xsl:template>
1257 <xsl:template match="footnote">
1258 <xsl:element name="text:footnote">
1259 <!--<xsl:element name="text:footnote-citation">Aidan</xsl:element>-->
1260 <xsl:element name="text:footnote-body">
1261 <xsl:apply-templates/>
1262 </xsl:element>
1263 </xsl:element>
1264 </xsl:template>
1266 <xsl:template match="highlight">
1267 <xsl:element name="text:span">
1268 <xsl:attribute name="text:style-name">Highlight</xsl:attribute>
1269 <xsl:apply-templates/>
1270 </xsl:element>
1271 </xsl:template>
1273 <xsl:template match="ulink">
1274 <xsl:element name="text:a">
1275 <xsl:attribute name="xlink:type">
1276 <xsl:text>simple</xsl:text>
1277 </xsl:attribute>
1278 <xsl:attribute name="xlink:href">
1279 <xsl:value-of select="@url"/>
1280 </xsl:attribute>
1281 <xsl:apply-templates/>
1282 </xsl:element>
1284 </xsl:template>
1286 <xsl:template match="link">
1287 <xsl:element name="text:a">
1288 <xsl:attribute name="xlink:type">
1289 <xsl:text>simple</xsl:text>
1290 </xsl:attribute>
1291 <xsl:attribute name="xlink:href">
1292 <xsl:text>#</xsl:text>
1293 <xsl:value-of select="@linkend"/>
1294 <xsl:text>%7Cregion</xsl:text>
1295 </xsl:attribute>
1296 <xsl:apply-templates/>
1297 </xsl:element>
1299 </xsl:template>
1301 <xsl:template match="olink">
1302 <xsl:element name="text:a">
1303 <xsl:attribute name="xlink:type">
1304 <xsl:text>simple</xsl:text>
1305 </xsl:attribute>
1306 <xsl:attribute name="xlink:href">
1307 <xsl:value-of select="@targetdocent"/>
1308 </xsl:attribute>
1309 <xsl:apply-templates/>
1310 </xsl:element>
1311 </xsl:template>
1313 <xsl:template match="note">
1314 <office:annotation>
1315 <text:p>
1316 <xsl:apply-templates/>
1317 </text:p>
1318 </office:annotation>
1319 </xsl:template>
1321 <xsl:template match="imageobject">
1322 <xsl:apply-templates/>
1323 </xsl:template>
1325 <xsl:template match="textobject"></xsl:template>
1327 <xsl:template match="caption">
1328 <xsl:apply-templates/>
1329 </xsl:template>
1332 <xsl:template match="imagedata">
1333 <xsl:element name="draw:image">
1334 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1335 <xsl:attribute name="draw:name"></xsl:attribute>
1336 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1337 <xsl:attribute name="draw:z-index"></xsl:attribute>
1338 <xsl:attribute name="xlink:href">
1339 <xsl:value-of select="@fileref"/>
1340 </xsl:attribute>
1341 <xsl:attribute name="xlink:type"></xsl:attribute>
1342 <xsl:attribute name="svg:width">
1343 <!--<xsl:value-of select="@width"/>-->
1344 <xsl:text>1cm</xsl:text>
1345 </xsl:attribute>
1346 <xsl:attribute name="svg:height">
1347 <xsl:text>1cm</xsl:text>
1348 </xsl:attribute>
1349 <xsl:attribute name="xlink:show">
1350 <xsl:text>embed</xsl:text>
1351 </xsl:attribute>
1352 <xsl:attribute name="xlink:actuate">
1353 <xsl:text>onLoad</xsl:text>
1354 </xsl:attribute>
1355 <xsl:attribute name="draw:filter-name">
1356 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1357 </xsl:attribute>
1358 </xsl:element>
1359 </xsl:template>
1361 <xsl:template match="audioobject">
1362 <xsl:element name="draw:plugin">
1363 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1364 <xsl:attribute name="draw:name"></xsl:attribute>
1365 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1366 <xsl:attribute name="draw:z-index"></xsl:attribute>
1367 <xsl:attribute name="xlink:href">
1368 <xsl:value-of select="@fileref"/>
1369 </xsl:attribute>
1370 <xsl:attribute name="xlink:type"></xsl:attribute>
1371 <xsl:attribute name="svg:width">
1372 <!--<xsl:value-of select="@width"/>-->
1373 <xsl:text>1cm</xsl:text>
1374 </xsl:attribute>
1375 <xsl:attribute name="svg:height">
1376 <xsl:text>1cm</xsl:text>
1377 </xsl:attribute>
1378 <xsl:attribute name="xlink:show">
1379 <xsl:text>embed</xsl:text>
1380 </xsl:attribute>
1381 <xsl:attribute name="xlink:actuate">
1382 <xsl:text>onLoad</xsl:text>
1383 </xsl:attribute>
1384 <xsl:attribute name="draw:filter-name">
1385 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1386 </xsl:attribute>
1387 </xsl:element>
1388 </xsl:template>
1390 <xsl:template match="remark">
1391 <xsl:apply-templates/>
1392 </xsl:template>
1394 <xsl:template match="mediaobject">
1395 <xsl:element name="text:p">
1396 <xsl:attribute name="text:style-name">Mediaobject</xsl:attribute>
1397 <xsl:apply-templates/>
1398 </xsl:element>
1399 </xsl:template>
1401 <xsl:template match="superscript">
1402 <xsl:element name="text:span">
1403 <xsl:attribute name="text:style-name">SuperScript</xsl:attribute>
1404 <xsl:apply-templates/>
1405 </xsl:element>
1406 </xsl:template>
1408 <xsl:template match="subscript">
1409 <xsl:element name="text:span">
1410 <xsl:attribute name="text:style-name">SubScript</xsl:attribute>
1411 <xsl:apply-templates/>
1412 </xsl:element>
1413 </xsl:template>
1415 <xsl:template match="anchor">
1416 <xsl:element name="text:bookmark">
1417 <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
1418 </xsl:element>
1419 </xsl:template>
1421 <!-- Change Made By Kevin Fowlks (fowlks@msu.edu) July 2nd, 2003 -->
1422 <xsl:template match="example">
1423 <xsl:element name="text:p">
1424 <xsl:attribute name="text:style-name">Example</xsl:attribute>
1425 <xsl:value-of select="programlisting"/>
1426 </xsl:element>
1427 </xsl:template>
1428 </xsl:stylesheet>