bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / docbook / docbooktosoffheadings.xsl
blob00f18380a31533fe8514ceca3d76f7ab29f7dfa4
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
19 <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">
20 <xsl:decimal-format name="staff" digit="D"/>
21 <xsl:template match="/">
22 <xsl:element name="office:document">
23 <office:meta>
24 <dc:title>
25 <xsl:value-of select="/article/articleinfo/title"/>
26 </dc:title>
27 <dc:description></dc:description>
28 <dc:subject></dc:subject>
29 <dc:date>
30 <xsl:value-of select="article/articleinfo/pubdate"/>
31 </dc:date>
32 <dc:language>
33 <xsl:value-of select="article/@lang"/>
34 </dc:language>
35 <meta:user-defined meta:name="Info 1"/>
36 <meta:user-defined meta:name="Info 2"/>
37 <meta:user-defined meta:name="Info 3"/>
38 <meta:user-defined meta:name="Info 4"/>
39 </office:meta>
40 <office:font-decls>
41 <style:font-decl style:name="Tahoma1" fo:font-family="Tahoma"/>
42 <style:font-decl style:name="Thorndale" fo:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/>
43 <style:font-decl style:name="Albany" fo:font-family="Albany" style:font-family-generic="swiss" style:font-pitch="variable"/>
44 <style:font-decl style:name="Andale Sans UI" fo:font-family="'Andale Sans UI'" style:font-family-generic="system" style:font-pitch="variable"/>
45 <style:font-decl style:name="MS Mincho" fo:font-family="'MS Mincho'" style:font-family-generic="system" style:font-pitch="variable"/>
46 <style:font-decl style:name="Tahoma" fo:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
47 </office:font-decls>
48 <office:styles>
49 <style:default-style style:family="graphics">
50 <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">
51 <style:tab-stops/>
52 </style:properties>
53 </style:default-style>
54 <style:default-style style:family="paragraph">
55 <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"/>
56 </style:default-style>
57 <style:default-style style:family="table">
58 <style:properties table:border-model="separating"/>
59 </style:default-style>
60 <style:default-style style:family="table-row">
61 <style:properties fo:keep-together="always"/>
62 </style:default-style>
63 <style:style style:name="Standard" style:family="paragraph" style:class="text"/>
64 <style:style style:name="Text body" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
65 <style:properties fo:margin-top="0cm" fo:margin-bottom="0.212cm"/>
66 </style:style>
67 <style:style style:name="Heading" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Text body" style:class="text">
68 <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"/>
69 </style:style>
70 <style:style style:name="Heading 1" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
71 <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"/>
72 </style:style>
73 <style:style style:name="Heading 2" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
74 <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"/>
75 </style:style>
76 <style:style style:name="Heading 3" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
77 <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"/>
78 </style:style>
79 <style:style style:name="Heading 4" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="text">
80 <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"/>
81 </style:style>
82 <style:style style:name="List" style:family="paragraph" style:parent-style-name="Text body" style:class="list">
83 <style:properties style:font-name-complex="Tahoma1"/>
84 </style:style>
85 <style:style style:name="Table Contents" style:family="paragraph" style:parent-style-name="Text body" style:class="extra">
86 <style:properties text:number-lines="false" text:line-number="0"/>
87 </style:style>
88 <style:style style:name="Table Heading" style:family="paragraph" style:parent-style-name="Table Contents" style:class="extra">
89 <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"/>
90 </style:style>
91 <style:style style:name="Caption" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
92 <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"/>
93 </style:style>
94 <style:style style:name="Table" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
95 <style:style style:name="Frame contents" style:family="paragraph" style:parent-style-name="Text body" style:class="extra"/>
96 <style:style style:name="Footnote" style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
97 <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"/>
98 </style:style>
99 <style:style style:name="Index" style:family="paragraph" style:parent-style-name="Standard" style:class="index">
100 <style:properties text:number-lines="false" text:line-number="0" style:font-name-complex="Tahoma1"/>
101 </style:style>
102 <style:style style:name="Subtitle" style:family="paragraph" style:parent-style-name="Heading" style:next-style-name="Text body" style:class="chapter">
103 <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"/>
104 </style:style>
105 <style:style style:name="Mediaobject" style:family="paragraph" style:class="text"/>
106 <style:style style:name="Object" style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
107 <style:style style:name="Section Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
108 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
109 </style:style>
110 <style:style style:name="Appendix Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
111 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
112 </style:style>
113 <style:style style:name="Section1 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
114 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="14pt"/>
115 </style:style>
116 <style:style style:name="Section2 Title" style:family="paragraph" style:next-style-name="Text body" style:master-page-name="">
117 <style:properties fo:line-height="200%" fo:text-transform="capitalize" fo:font-size="13pt"/>
118 </style:style>
119 <style:style style:name="Section3 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="12pt"/>
121 </style:style>
122 <style:style style:name="Section4 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="12pt"/>
124 </style:style>
125 <style:style style:name="Section5 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="12pt"/>
127 </style:style>
128 <style:style style:name="Document Title" style:family="paragraph" style:parent-style-name="Standard" style:next-style-name="Document SubTitle">
129 <style:properties fo:text-align="center" style:justify-single-word="false" fo:font-size="20pt"/>
130 </style:style>
131 <style:style style:name="Document SubTitle" style:family="paragraph" style:parent-style-name="Document Title" style:next-style-name="Text body">
132 <style:properties fo:font-size="14pt"/>
133 </style:style>
134 <style:style style:name="Section SubTitle" style:family="paragraph" style:parent-style-name="Section Title"/>
135 <style:style style:name="CopyRight" style:family="paragraph" style:parent-style-name="Text body"/>
136 <style:style style:name="VarList Item" style:family="paragraph" style:parent-style-name="Text body" style:list-style-name="Var List" style:class="text">
137 <style:properties fo:margin-left="3cm" fo:margin-right="0cm" fo:text-indent="0cm" style:auto-text-indent="false">
138 <style:tab-stops>
139 <style:tab-stop style:position="0cm"/>
140 </style:tab-stops>
141 </style:properties>
142 </style:style>
143 <style:style style:name="VarList Term" style:family="paragraph" style:parent-style-name="Text body" style:list-style-name="Var List" style:class="text">
144 <style:properties fo:margin-left="1cm" fo:margin-right="0cm" fo:text-indent="-4.5cm" style:auto-text-indent="false">
145 <style:tab-stops>
146 <style:tab-stop style:position="0cm"/>
147 </style:tab-stops>
148 </style:properties>
149 </style:style>
150 <style:style style:name="Footnote Symbol" style:family="text"/>
151 <style:style style:name="Numbering Symbols" style:family="text"/>
152 <style:style style:name="Bullet Symbols" style:family="text">
153 <style:properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
154 </style:style>
155 <style:style style:name="Internet link" style:family="text">
156 <style:properties fo:color="#000080" style:text-underline-color="font-color" style:text-underline="single"/>
157 </style:style>
158 <style:style style:name="Endnote Symbol" style:family="text"/>
159 <style:style style:name="Emphasis" style:family="text">
160 <style:properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic"/>
161 </style:style>
162 <style:style style:name="Source Text" style:family="text"/>
163 <style:style style:name="Highlight" style:family="text">
164 <style:properties style:text-background-color="#fff000"/>
165 </style:style>
166 <style:style style:name="KeyCap" style:family="text">
167 <style:properties fo:font-weight="bold"/>
168 </style:style>
169 <style:style style:name="Command" style:family="text">
170 <style:properties fo:font-weight="bold"/>
171 </style:style>
172 <style:style style:name="Application" style:family="text">
173 <style:properties fo:font-weight="bold"/>
174 </style:style>
175 <style:style style:name="FileName" style:family="text">
176 <style:properties fo:font-weight="bold"/>
177 </style:style>
178 <style:style style:name="SuperScript" style:family="text">
179 <style:properties style:text-position="super 58%"/>
180 </style:style>
181 <style:style style:name="SubScript" style:family="text">
182 <style:properties style:text-position="sub 58%"/>
183 </style:style>
184 <style:style style:name="SystemItem" style:family="text">
185 <style:properties fo:font-weight="bold"/>
186 </style:style>
187 <style:style style:name="ComputerOutput" style:family="text">
188 <style:properties fo:font-weight="bold"/>
189 </style:style>
190 <style:style style:name="KeyCombo" style:family="text">
191 <style:properties fo:font-weight="bold"/>
192 </style:style>
193 <style:style style:name="KeySym" style:family="text">
194 <style:properties fo:font-weight="bold"/>
195 </style:style>
196 <style:style style:name="GuiMenu" style:family="text">
197 <style:properties fo:color="#000fff" fo:font-style="italic"/>
198 </style:style>
199 <style:style style:name="GuiSubMenu" style:family="text">
200 <style:properties fo:color="#ff9966" fo:font-style="italic"/>
201 </style:style>
202 <style:style style:name="GuiButton" style:family="text">
203 <style:properties fo:color="#00f0ff" fo:font-style="italic"/>
204 </style:style>
205 <style:style style:name="GuiMenuItem" style:family="text">
206 <style:properties fo:color="#00ffff" fo:font-style="italic"/>
207 </style:style>
208 <style:style style:name="GuiLabel" style:family="text">
209 <style:properties fo:color="#00777f" fo:font-style="italic"/>
210 </style:style>
211 <style:style style:name="Frame" style:family="graphics">
212 <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"/>
213 </style:style>
214 <text:outline-style>
215 <text:outline-level-style text:level="1" style:num-format=""/>
216 <text:outline-level-style text:level="2" style:num-format=""/>
217 <text:outline-level-style text:level="3" style:num-format=""/>
218 <text:outline-level-style text:level="4" style:num-format=""/>
219 <text:outline-level-style text:level="5" style:num-format=""/>
220 <text:outline-level-style text:level="6" style:num-format=""/>
221 <text:outline-level-style text:level="7" style:num-format=""/>
222 <text:outline-level-style text:level="8" style:num-format=""/>
223 <text:outline-level-style text:level="9" style:num-format=""/>
224 <text:outline-level-style text:level="10" style:num-format=""/>
225 </text:outline-style>
226 <text:list-style style:name="Ordered List">
227 <text:list-level-style-number text:level="1" text:style-name="Numbering Symbols" style:num-suffix="." style:num-format="1">
228 <style:properties text:min-label-width="0.499cm"/>
229 </text:list-level-style-number>
230 <text:list-level-style-number text:level="2" style:num-suffix="." style:num-format="1">
231 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm"/>
232 </text:list-level-style-number>
233 <text:list-level-style-number text:level="3" style:num-suffix="." style:num-format="1">
234 <style:properties text:space-before="1cm" text:min-label-width="0.499cm"/>
235 </text:list-level-style-number>
236 <text:list-level-style-number text:level="4" style:num-suffix="." style:num-format="1">
237 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm"/>
238 </text:list-level-style-number>
239 <text:list-level-style-number text:level="5" style:num-suffix="." style:num-format="1">
240 <style:properties text:space-before="2cm" text:min-label-width="0.499cm"/>
241 </text:list-level-style-number>
242 <text:list-level-style-number text:level="6" style:num-suffix="." style:num-format="1">
243 <style:properties text:space-before="2.501cm" text:min-label-width="0.499cm"/>
244 </text:list-level-style-number>
245 <text:list-level-style-number text:level="7" style:num-suffix="." style:num-format="1">
246 <style:properties text:space-before="3.001cm" text:min-label-width="0.499cm"/>
247 </text:list-level-style-number>
248 <text:list-level-style-number text:level="8" style:num-suffix="." style:num-format="1">
249 <style:properties text:space-before="3.502cm" text:min-label-width="0.499cm"/>
250 </text:list-level-style-number>
251 <text:list-level-style-number text:level="9" style:num-suffix="." style:num-format="1">
252 <style:properties text:space-before="4.001cm" text:min-label-width="0.499cm"/>
253 </text:list-level-style-number>
254 <text:list-level-style-number text:level="10" style:num-suffix="." style:num-format="1">
255 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm"/>
256 </text:list-level-style-number>
257 </text:list-style>
258 <text:list-style style:name="UnOrdered List">
259 <text:list-level-style-bullet text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
260 <style:properties text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
261 </text:list-level-style-bullet>
262 <text:list-level-style-bullet text:level="2" text:style-name="Bullet Symbols" text:bullet-char="•">
263 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
264 </text:list-level-style-bullet>
265 <text:list-level-style-bullet text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
266 <style:properties text:space-before="1cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
267 </text:list-level-style-bullet>
268 <text:list-level-style-bullet text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
269 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
270 </text:list-level-style-bullet>
271 <text:list-level-style-bullet text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
272 <style:properties text:space-before="2cm" 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="6" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
275 <style:properties text:space-before="2.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="7" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
278 <style:properties text:space-before="3.001cm" 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="8" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
281 <style:properties text:space-before="3.502cm" 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="9" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
284 <style:properties text:space-before="4.001cm" 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="10" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
287 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
288 </text:list-level-style-bullet>
289 </text:list-style>
290 <text:list-style style:name="Var List">
291 <text:list-level-style-bullet text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
292 <style:properties text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
293 </text:list-level-style-bullet>
294 <text:list-level-style-bullet text:level="2" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
295 <style:properties text:space-before="0.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
296 </text:list-level-style-bullet>
297 <text:list-level-style-bullet text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
298 <style:properties text:space-before="1cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
299 </text:list-level-style-bullet>
300 <text:list-level-style-bullet text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
301 <style:properties text:space-before="1.501cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
302 </text:list-level-style-bullet>
303 <text:list-level-style-bullet text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
304 <style:properties text:space-before="2cm" 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="6" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
307 <style:properties text:space-before="2.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="7" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
310 <style:properties text:space-before="3.001cm" 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="8" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
313 <style:properties text:space-before="3.502cm" 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="9" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
316 <style:properties text:space-before="4.001cm" 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="10" text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
319 <style:properties text:space-before="4.502cm" text:min-label-width="0.499cm" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
320 </text:list-level-style-bullet>
321 </text:list-style>
322 <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"/>
323 <text:endnotes-configuration text:citation-style-name="Endnote Symbol" text:master-page-name="Endnote" style:num-format="1" text:start-value="0"/>
324 <text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/>
325 </office:styles>
326 <office:automatic-styles>
327 <style:page-master style:name="pm1">
328 <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">
329 <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"/>
330 </style:properties>
331 <style:header-style/>
332 <style:footer-style/>
333 </style:page-master>
334 <style:page-master style:name="pm2">
335 <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">
336 <style:footnote-sep style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
337 </style:properties>
338 <style:header-style/>
339 <style:footer-style/>
340 </style:page-master>
341 </office:automatic-styles>
342 <office:master-styles>
343 <style:master-page style:name="Standard" style:page-master-name="pm1"/>
344 <style:master-page style:name="Endnote" style:page-master-name="pm2"/>
345 </office:master-styles>
346 <office:body>
347 <xsl:apply-templates/>
348 </office:body>
349 </xsl:element>
350 </xsl:template>
352 <xsl:template match="subtitle">
353 <xsl:choose>
354 <xsl:when test="parent::table">
355 <xsl:apply-templates/>
356 </xsl:when>
357 <xsl:when test="parent::informaltable">
358 <xsl:apply-templates/>
359 </xsl:when>
360 <xsl:otherwise>
361 <xsl:element name="text:p">
362 <xsl:attribute name="text:style-name">Section SubTitle</xsl:attribute>
363 </xsl:element>
364 </xsl:otherwise>
365 </xsl:choose>
366 </xsl:template>
371 <xsl:template match="title">
372 <xsl:choose>
373 <xsl:when test="parent::figure"></xsl:when>
374 <xsl:when test="parent::table"></xsl:when>
375 <xsl:when test="parent::sect1"></xsl:when>
376 <xsl:when test="parent::sect2"></xsl:when>
377 <xsl:when test="parent::sect3"></xsl:when>
378 <xsl:when test="parent::sect4"></xsl:when>
379 <xsl:when test="parent::sect5"></xsl:when>
380 <xsl:when test="parent::informaltable">
381 <xsl:apply-templates/>
382 </xsl:when>
384 <xsl:otherwise>
385 <xsl:element name="text:p">
386 <xsl:choose>
388 <xsl:when test="parent::appendix">
389 <xsl:attribute name="text:style-name">Appendix Title</xsl:attribute>
390 </xsl:when>
391 </xsl:choose>
392 <xsl:apply-templates/>
393 </xsl:element>
394 </xsl:otherwise>
395 </xsl:choose>
396 </xsl:template>
398 <xsl:template match="articleinfo">
399 <xsl:element name="text:section">
400 <xsl:attribute name="text:style-name">ArticleInfo</xsl:attribute>
401 <xsl:attribute name="text:name">ArticleInfo</xsl:attribute>
402 <xsl:if test="/article/articleinfo/title !=''">
403 <xsl:element name="text:p">
404 <xsl:attribute name="text:style-name">Document Title</xsl:attribute>
405 <xsl:value-of select="/article/articleinfo/title"/>
406 </xsl:element>
407 <xsl:if test="/article/articleinfo/subtitle !=''">
408 <xsl:element name="text:p">
409 <xsl:attribute name="text:style-name">Document SubTitle</xsl:attribute>
410 <xsl:value-of select="/article/articleinfo/subtitle"/>
411 </xsl:element>
412 </xsl:if>
413 </xsl:if>
414 <xsl:apply-templates/>
415 </xsl:element>
417 </xsl:template>
419 <xsl:template match="appendix">
420 <xsl:element name="text:section">
421 <xsl:attribute name="text:style-name">Appendix</xsl:attribute>
422 <xsl:attribute name="text:name">Appendix</xsl:attribute>
423 <xsl:apply-templates/>
424 </xsl:element>
426 </xsl:template>
428 <!--
429 <xsl:template match="author">
430 <xsl:apply-templates/>
431 </xsl:template>
433 <xsl:template match="firstname">
434 <xsl:element name="text:variable-set">
435 <xsl:attribute name="text:name">
436 <xsl:if test="ancestor::articleinfo/author">
437 <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)"/>
438 </xsl:if>
439 </xsl:attribute>
440 <xsl:apply-templates/>
441 </xsl:element>
443 </xsl:template>-->
445 <xsl:template match="articleinfo/title">
446 <!-- <xsl:element name="text:variable-decls">
447 <xsl:element name="text:variable-decl">
448 <xsl:attribute name="text:value-type">
449 <xsl:text>string</xsl:text>
450 </xsl:attribute>
451 <xsl:attribute name="text:name">
452 <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
453 </xsl:attribute>
454 </xsl:element>
456 </xsl:element>
457 <xsl:element name="text:p">
458 <xsl:element name="text:variable-set">
459 <xsl:attribute name="text:value-type">
460 <xsl:text>string</xsl:text>
461 </xsl:attribute>
462 <xsl:attribute name="text:name">
463 <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
464 </xsl:attribute>
465 <xsl:apply-templates/>
466 </xsl:element>
467 </xsl:element>--></xsl:template>
469 <xsl:template match="articleinfo/subtitle">
470 <xsl:element name="text:variable-decls">
471 <xsl:element name="text:variable-decl">
472 <xsl:attribute name="text:value-type">
473 <xsl:text>string</xsl:text>
474 </xsl:attribute>
475 <xsl:attribute name="text:name">
476 <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
477 </xsl:attribute>
478 </xsl:element>
479 </xsl:element>
480 <xsl:element name="text:p">
481 <xsl:element name="text:variable-set">
482 <xsl:attribute name="text:value-type">
483 <xsl:text>string</xsl:text>
484 </xsl:attribute>
485 <xsl:attribute name="text:name">
486 <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
487 </xsl:attribute>
488 <xsl:apply-templates/>
489 </xsl:element>
490 </xsl:element>
491 </xsl:template>
493 <xsl:template match="articleinfo/edition">
494 <xsl:element name="text:variable-decls">
495 <xsl:element name="text:variable-decl">
496 <xsl:attribute name="text:value-type">
497 <xsl:text>string</xsl:text>
498 </xsl:attribute>
499 <xsl:attribute name="text:name">
500 <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
501 </xsl:attribute>
502 </xsl:element>
503 </xsl:element>
504 <xsl:element name="text:p">
505 <xsl:element name="text:variable-set">
506 <xsl:attribute name="text:value-type">
507 <xsl:text>string</xsl:text>
508 </xsl:attribute>
509 <xsl:attribute name="text:name">
510 <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
511 </xsl:attribute>
512 <xsl:apply-templates/>
513 </xsl:element>
514 </xsl:element>
515 </xsl:template>
517 <xsl:template match="articleinfo/releaseinfo">
518 <xsl:element name="text:variable-decls">
519 <xsl:element name="text:variable-decl">
520 <xsl:attribute name="text:value-type">
521 <xsl:text>string</xsl:text>
522 </xsl:attribute>
523 <xsl:attribute name="text:name">
524 <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
525 <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
526 </xsl:attribute>
527 </xsl:element>
528 </xsl:element>
529 <xsl:element name="text:p">
530 <xsl:element name="text:variable-set">
531 <xsl:attribute name="text:value-type">
532 <xsl:text>string</xsl:text>
533 </xsl:attribute>
534 <xsl:attribute name="text:name">
535 <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
536 <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
537 </xsl:attribute>
538 <xsl:apply-templates/>
539 </xsl:element>
540 </xsl:element>
541 </xsl:template>
544 <xsl:template match="author/firstname">
545 <xsl:element name="text:variable-decls">
546 <xsl:element name="text:variable-decl">
547 <xsl:attribute name="text:value-type">
548 <xsl:text>string</xsl:text>
549 </xsl:attribute>
551 <xsl:attribute name="text:name">
552 <xsl:if test="ancestor::articleinfo">
553 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
554 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
555 <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
556 <xsl:value-of select="count(preceding-sibling::firstname)"/>
557 </xsl:if>
558 </xsl:attribute>
559 </xsl:element>
560 </xsl:element>
561 <xsl:element name="text:p">
562 <xsl:element name="text:variable-set">
563 <xsl:attribute name="text:value-type">
564 <xsl:text>string</xsl:text>
565 </xsl:attribute>
566 <xsl:attribute name="text:name">
567 <xsl:if test="ancestor::articleinfo">
568 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
569 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
570 <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
571 <xsl:value-of select="count(preceding-sibling::firstname)"/>
572 </xsl:if>
573 </xsl:attribute>
574 <xsl:apply-templates/>
575 </xsl:element>
576 </xsl:element>
577 </xsl:template>
581 <xsl:template match="articleinfo/copyright/year">
582 <xsl:element name="text:variable-decls">
583 <xsl:element name="text:variable-decl">
584 <xsl:attribute name="text:value-type">
585 <xsl:text>string</xsl:text>
586 </xsl:attribute>
588 <xsl:attribute name="text:name">
589 <xsl:if test="ancestor::articleinfo/copyright">
590 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
591 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
592 <xsl:text disable-output-escaping="yes">.year_</xsl:text>
593 <xsl:value-of select="count(preceding-sibling::year)"/>
594 </xsl:if>
595 </xsl:attribute>
596 </xsl:element>
597 </xsl:element>
598 <xsl:element name="text:p">
599 <xsl:element name="text:variable-set">
600 <xsl:attribute name="text:value-type">
601 <xsl:text>string</xsl:text>
602 </xsl:attribute>
603 <xsl:attribute name="text:name">
604 <xsl:if test="ancestor::articleinfo/copyright">
605 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
606 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
607 <xsl:text disable-output-escaping="yes">.year_</xsl:text>
608 <xsl:value-of select="count(preceding-sibling::year)"/>
609 </xsl:if>
610 </xsl:attribute>
611 <xsl:apply-templates/>
612 </xsl:element>
613 </xsl:element>
614 </xsl:template>
616 <xsl:template match="authorgroup">
617 <xsl:apply-templates/>
618 </xsl:template>
620 <xsl:template match="articleinfo/copyright/holder">
621 <xsl:element name="text:variable-decls">
622 <xsl:element name="text:variable-decl">
623 <xsl:attribute name="text:value-type">
624 <xsl:text>string</xsl:text>
625 </xsl:attribute>
627 <xsl:attribute name="text:name">
628 <xsl:if test="ancestor::articleinfo/copyright">
629 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
630 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
631 <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
632 <xsl:value-of select="count(preceding-sibling::holder)"/>
633 </xsl:if>
634 </xsl:attribute>
635 </xsl:element>
636 </xsl:element>
637 <xsl:element name="text:p">
638 <xsl:element name="text:variable-set">
639 <xsl:attribute name="text:value-type">
640 <xsl:text>string</xsl:text>
641 </xsl:attribute>
642 <xsl:attribute name="text:name">
643 <xsl:if test="ancestor::articleinfo/copyright">
644 <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
645 <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
646 <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
647 <xsl:value-of select="count(preceding-sibling::holder)"/>
648 </xsl:if>
649 </xsl:attribute>
650 <xsl:apply-templates/>
651 </xsl:element>
652 </xsl:element>
653 </xsl:template>
658 <xsl:template name="affiliation">
659 <xsl:apply-templates/>
660 </xsl:template>
662 <xsl:template match="author/affiliation/address">
663 <xsl:element name="text:variable-decls">
664 <xsl:element name="text:variable-decl">
665 <xsl:attribute name="text:value-type">
666 <xsl:text>string</xsl:text>
667 </xsl:attribute>
668 <xsl:attribute name="text:name">
669 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
670 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
671 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
672 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
673 <xsl:text disable-output-escaping="yes">.address_</xsl:text>
674 <xsl:value-of select="count(preceding-sibling::address)"/>
675 </xsl:attribute>
676 </xsl:element>
677 </xsl:element>
678 <xsl:element name="text:p">
679 <xsl:element name="text:variable-set">
680 <xsl:attribute name="text:value-type">
681 <xsl:text>string</xsl:text>
682 </xsl:attribute>
683 <xsl:attribute name="text:name">
684 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
685 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
686 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
687 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
688 <xsl:text disable-output-escaping="yes">.address_</xsl:text>
689 <xsl:value-of select="count(preceding-sibling::address)"/>
691 </xsl:attribute>
692 <xsl:apply-templates/>
693 </xsl:element>
694 </xsl:element>
695 </xsl:template>
697 <xsl:template match="author/affiliation/orgname">
698 <xsl:element name="text:variable-decls">
699 <xsl:element name="text:variable-decl">
700 <xsl:attribute name="text:value-type">
701 <xsl:text>string</xsl:text>
702 </xsl:attribute>
703 <xsl:if test="ancestor::articleinfo">
704 <xsl:attribute name="text:name">
705 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
706 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
707 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
708 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
709 <xsl:text disable-output-escaping="yes">.orgname_</xsl:text>
710 <xsl:value-of select="count(preceding-sibling::orgname)"/>
711 </xsl:attribute>
712 </xsl:if>
713 </xsl:element>
714 </xsl:element>
715 <xsl:element name="text:p">
716 <xsl:element name="text:variable-set">
717 <xsl:attribute name="text:value-type">
718 <xsl:text>string</xsl:text>
719 </xsl:attribute>
720 <xsl:if test="ancestor::articleinfo">
721 <xsl:attribute name="text:name">
722 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
723 <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
724 <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
725 <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
726 <xsl:text disable-output-escaping="yes">.orgname_</xsl:text>
727 <xsl:value-of select="count(preceding-sibling::orgname)"/>
728 </xsl:attribute>
729 </xsl:if>
730 <xsl:apply-templates/>
731 </xsl:element>
732 </xsl:element>
733 </xsl:template>
737 <xsl:template match="author/surname">
738 <xsl:element name="text:variable-decls">
739 <xsl:element name="text:variable-decl">
740 <xsl:attribute name="text:value-type">
741 <xsl:text>string</xsl:text>
742 </xsl:attribute>
744 <xsl:attribute name="text:name">
745 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
746 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
747 <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
748 <xsl:value-of select="count(preceding-sibling::surname)"/>
749 </xsl:attribute>
750 </xsl:element>
751 </xsl:element>
752 <xsl:element name="text:p">
753 <xsl:element name="text:variable-set">
754 <xsl:attribute name="text:value-type">
755 <xsl:text>string</xsl:text>
756 </xsl:attribute>
757 <xsl:attribute name="text:name">
758 <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
759 <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
760 <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
761 <xsl:value-of select="count(preceding-sibling::surname)"/>
764 </xsl:attribute>
765 <xsl:apply-templates/>
766 </xsl:element>
767 </xsl:element>
768 </xsl:template>
774 <xsl:template match="para">
776 <xsl:element name="text:p">
778 <xsl:choose>
779 <xsl:when test="ancestor-or-self::footnote">
780 <xsl:attribute name="text:style-name">Footnote</xsl:attribute>
781 </xsl:when>
782 <xsl:when test="ancestor-or-self::listitem">
783 <xsl:attribute name="text:style-name">VarList Item</xsl:attribute>
784 </xsl:when>
785 <xsl:when test="ancestor-or-self::informaltable">
786 <xsl:if test="ancestor-or-self::informaltable">
787 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
788 </xsl:if>
789 <xsl:if test="ancestor-or-self::thead">
790 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
791 </xsl:if>
792 </xsl:when>
793 <xsl:when test="ancestor-or-self::table">
794 <xsl:if test="ancestor-or-self::table">
795 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
796 </xsl:if>
797 <xsl:if test="ancestor-or-self::thead">
798 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
799 </xsl:if>
800 </xsl:when>
801 <xsl:otherwise>
802 <xsl:attribute name="text:style-name">Text body</xsl:attribute>
803 </xsl:otherwise>
804 </xsl:choose>
806 <xsl:apply-templates/>
807 </xsl:element>
809 </xsl:template>
811 <xsl:template match="section">
812 <xsl:element name="text:h">
813 <xsl:attribute name="text:level">
814 <xsl:value-of select="count(ancestor-or-self::section)"/>
815 </xsl:attribute>
816 <xsl:value-of select="child::title"/>
817 </xsl:element>
818 <xsl:apply-templates/>
819 </xsl:template>
821 <xsl:template match="abstract">
822 <xsl:element name="text:h">
823 <xsl:attribute name="text:level">1</xsl:attribute>
824 <xsl:text>abstract</xsl:text>
825 </xsl:element>
826 <xsl:apply-templates/>
827 </xsl:template>
830 <xsl:template match="appendix">
831 <xsl:element name="text:h">
832 <xsl:attribute name="text:level">1</xsl:attribute>
833 <xsl:text>appendix</xsl:text>
834 </xsl:element>
835 <xsl:apply-templates/>
836 </xsl:template>
838 <xsl:template match="sect1">
839 <xsl:element name="text:h">
840 <xsl:attribute name="text:level">1</xsl:attribute>
841 <xsl:attribute name="text:style-name">Heading 1</xsl:attribute>
842 <xsl:value-of select="child::title"/>
843 </xsl:element>
844 <xsl:apply-templates/>
845 </xsl:template>
847 <xsl:template match="sect2">
848 <xsl:element name="text:h">
849 <xsl:attribute name="text:level">2</xsl:attribute>
850 <xsl:attribute name="text:style-name">Heading 2</xsl:attribute>
851 <xsl:value-of select="child::title"/>
852 </xsl:element>
853 <xsl:apply-templates/>
854 </xsl:template>
856 <xsl:template match="sect3">
857 <xsl:element name="text:h">
858 <xsl:attribute name="text:level">3</xsl:attribute>
859 <xsl:attribute name="text:style-name">Heading 3</xsl:attribute>
860 <xsl:value-of select="child::title"/>
861 </xsl:element>
862 <xsl:apply-templates/>
863 </xsl:template>
865 <xsl:template match="sect4">
866 <xsl:element name="text:h">
867 <xsl:attribute name="text:level">4</xsl:attribute>
868 <xsl:attribute name="text:style-name">Heading 4</xsl:attribute>
869 <xsl:value-of select="child::title"/>
870 </xsl:element>
871 <xsl:apply-templates/>
872 </xsl:template>
874 <xsl:template match="sect5">
875 <xsl:element name="text:h">
876 <xsl:attribute name="text:level">5</xsl:attribute>
877 <xsl:value-of select="child::title"/>
878 </xsl:element>
879 <xsl:apply-templates/>
880 </xsl:template>
882 <!--<xsl:template match="sect5">
883 <xsl:element name="text:section">
884 <xsl:attribute name="text:style-name">Sect1</xsl:attribute>
885 <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
886 <xsl:apply-templates/>
887 </xsl:element>
888 </xsl:template>-->
891 <xsl:template match="informaltable">
892 <xsl:element name="table:table">
893 <xsl:attribute name="table:name"></xsl:attribute>
894 <xsl:attribute name="table:style-name">Table1</xsl:attribute>
895 <xsl:attribute name="table:name">
896 <xsl:value-of select="@id"/>
897 </xsl:attribute>
898 <xsl:apply-templates/>
899 </xsl:element>
900 </xsl:template>
903 <xsl:template match="table">
904 <xsl:variable name="tabletitle">
905 <xsl:value-of select="title"/>
906 </xsl:variable>
907 <xsl:element name="table:table">
908 <xsl:attribute name="table:name"></xsl:attribute>
909 <xsl:attribute name="table:style-name">Table1</xsl:attribute>
910 <xsl:attribute name="table:name">
911 <xsl:value-of select="@id"/>
912 </xsl:attribute>
913 <xsl:apply-templates/>
914 </xsl:element>
915 <xsl:if test="not($tabletitle='')">
916 <xsl:element name="text:p">
917 <xsl:attribute name="text:style-name">Table</xsl:attribute>
918 <xsl:value-of select="$tabletitle"/>
919 </xsl:element>
920 </xsl:if>
921 </xsl:template>
923 <xsl:template match="tgroup">
924 <xsl:element name="table:table-column">
925 <xsl:attribute name="table:style-name">Table1.A</xsl:attribute>
926 <xsl:choose>
927 <xsl:when test="@cols >0">
928 <xsl:attribute name="table:number-columns-repeated">
929 <xsl:value-of select="@cols"/>
930 </xsl:attribute>
931 </xsl:when>
932 <xsl:otherwise>
933 <xsl:attribute name="table:number-columns-repeated">
934 <xsl:value-of select="count(child::tbody/row/entry) div count(child::tbody/row)"/>
935 </xsl:attribute>
936 </xsl:otherwise>
937 </xsl:choose>
938 </xsl:element>
939 <xsl:apply-templates/>
940 </xsl:template>
943 <xsl:template match="indexterm"></xsl:template>
945 <xsl:template match="thead">
946 <xsl:element name="table:table-header-rows">
947 <xsl:apply-templates/>
948 </xsl:element>
949 </xsl:template>
951 <xsl:template match="tbody">
952 <xsl:apply-templates/>
953 </xsl:template>
955 <xsl:template match="row">
956 <xsl:element name="table:table-row">
957 <xsl:apply-templates/>
958 </xsl:element>
959 </xsl:template>
961 <xsl:template match="entry">
962 <xsl:element name="table:table-cell">
963 <xsl:if test="ancestor-or-self::thead">
964 <xsl:attribute name="table:style-name">Table1.A1</xsl:attribute>
965 </xsl:if>
966 <xsl:if test="not(ancestor-or-self::thead)">
967 <xsl:attribute name="table:style-name">Table1.A2</xsl:attribute>
968 </xsl:if>
970 <xsl:choose>
971 <xsl:when test="@spanname">
972 <!--<xsl:if test="@spanname">-->
973 <xsl:variable name="sname">
974 <xsl:value-of select="@spanname"/>
975 </xsl:variable>
976 <xsl:attribute name="table:number-columns-spanned">
977 <xsl:variable name="colnamestart">
978 <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@namest"/>
979 </xsl:variable>
980 <xsl:variable name="colnameend">
981 <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@nameend"/>
982 </xsl:variable>
983 <xsl:variable name="colnumstart">
984 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
985 </xsl:variable>
986 <xsl:variable name="colnumend">
987 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
988 </xsl:variable>
989 <xsl:value-of select="$colnumend - $colnumstart + 1"/>
990 </xsl:attribute>
991 </xsl:when>
992 <xsl:when test="@namest and @nameend">
993 <!--<xsl:if test="@namest and @nameend">-->
994 <xsl:variable name="colnamestart">
995 <xsl:value-of select="@namest"/>
996 </xsl:variable>
997 <xsl:variable name="colnameend">
998 <xsl:value-of select="@nameend"/>
999 </xsl:variable>
1001 <xsl:attribute name="table:number-columns-spanned">
1002 <xsl:variable name="colnumstart">
1003 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
1004 </xsl:variable>
1005 <xsl:variable name="colnumend">
1006 <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
1007 </xsl:variable>
1008 <xsl:value-of select="$colnumend - $colnumstart + 1"/>
1010 </xsl:attribute>
1011 </xsl:when>
1012 </xsl:choose>
1013 <!--
1014 <xsl:if test="not(@namest = '' ) ">
1015 <xsl:attribute name="table:number-columns-spanned">
1016 <xsl:value-of select="(substring-after(@nameend,'c')-substring-after(@namest,'c'))+1"/>
1018 </xsl:attribute>
1019 </xsl:if>
1021 <xsl:choose>
1022 <xsl:when test="not(child::para)">
1023 <xsl:element name="text:p">
1024 <xsl:if test="ancestor-or-self::thead">
1025 <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
1026 </xsl:if>
1027 <xsl:if test="ancestor-or-self::tbody">
1028 <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
1029 </xsl:if>
1030 <xsl:apply-templates/>
1031 </xsl:element>
1032 </xsl:when>
1033 <xsl:otherwise>
1034 <xsl:apply-templates/>
1035 </xsl:otherwise>
1036 </xsl:choose>
1037 </xsl:element>
1038 </xsl:template>
1045 <xsl:template match="figure">
1046 <xsl:apply-templates/>
1047 </xsl:template>
1049 <!-- lists Section -->
1051 <xsl:template match="itemizedlist">
1052 <xsl:element name="text:unordered-list">
1053 <xsl:if test="not(ancestor::itemizedlist)">
1054 <xsl:attribute name="text:style-name">L1</xsl:attribute>
1055 </xsl:if>
1056 <xsl:apply-templates/>
1057 </xsl:element>
1058 </xsl:template>
1060 <xsl:template match="variablelist">
1061 <xsl:element name="text:unordered-list">
1062 <xsl:attribute name="text:style-name">Var List</xsl:attribute>
1063 <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
1064 <xsl:apply-templates/>
1065 </xsl:element>
1066 </xsl:template>
1068 <xsl:template match="orderedlist">
1069 <xsl:element name="text:ordered-list">
1070 <xsl:attribute name="text:style-name">Ordered List</xsl:attribute>
1071 <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
1072 <xsl:apply-templates/>
1073 </xsl:element>
1074 </xsl:template>
1076 <xsl:template match="term">
1077 <xsl:if test="parent::varlistentry">
1078 <text:list-item>
1079 <xsl:element name="text:p">
1080 <xsl:attribute name="text:style-name">VarList Term</xsl:attribute>
1081 <xsl:apply-templates/>
1082 </xsl:element>
1083 </text:list-item>
1084 </xsl:if>
1085 </xsl:template>
1087 <xsl:template match="listitem">
1088 <text:list-item>
1089 <xsl:apply-templates/>
1090 </text:list-item>
1091 </xsl:template>
1093 <!-- end of lists-->
1095 <xsl:template match="menuchoice">
1096 <xsl:apply-templates/>
1097 </xsl:template>
1099 <xsl:template match="guimenuitem">
1100 <xsl:element name="text:span">
1101 <xsl:attribute name="text:style-name">GuiMenuItem</xsl:attribute>
1102 <xsl:apply-templates/>
1103 </xsl:element>
1104 </xsl:template>
1106 <xsl:template match="guibutton">
1107 <xsl:element name="text:span">
1108 <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
1109 <xsl:apply-templates/>
1110 </xsl:element>
1111 </xsl:template>
1113 <xsl:template match="guisubmenu">
1114 <xsl:element name="text:span">
1115 <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
1116 <xsl:apply-templates/>
1117 </xsl:element>
1118 </xsl:template>
1120 <xsl:template match="emphasis">
1121 <xsl:element name="text:span">
1122 <xsl:attribute name="text:style-name">Emphasis</xsl:attribute>
1123 <xsl:apply-templates/>
1124 </xsl:element>
1125 </xsl:template>
1128 <xsl:template match="guimenu">
1129 <xsl:element name="text:span">
1130 <xsl:attribute name="text:style-name">GuiMenu</xsl:attribute>
1131 <xsl:apply-templates/>
1132 </xsl:element>
1133 </xsl:template>
1135 <xsl:template match="guisubmenu">
1136 <xsl:element name="text:span">
1137 <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
1138 <xsl:apply-templates/>
1139 </xsl:element>
1140 </xsl:template>
1143 <xsl:template match="guilabel">
1144 <xsl:element name="text:span">
1145 <xsl:attribute name="text:style-name">GuiLabel</xsl:attribute>
1146 <xsl:apply-templates/>
1147 </xsl:element>
1148 </xsl:template>
1150 <xsl:template match="guibutton">
1151 <xsl:element name="text:span">
1152 <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
1153 <xsl:apply-templates/>
1154 </xsl:element>
1155 </xsl:template>
1157 <xsl:template match="keycap">
1158 <xsl:element name="text:span">
1159 <xsl:attribute name="text:style-name">KeyCap</xsl:attribute>
1160 <xsl:apply-templates/>
1161 </xsl:element>
1162 </xsl:template>
1165 <xsl:template match="keysym">
1166 <xsl:element name="text:span">
1167 <xsl:attribute name="text:style-name">KeySym</xsl:attribute>
1168 <xsl:apply-templates/>
1169 </xsl:element>
1170 </xsl:template>
1173 <xsl:template match="keycombo">
1174 <xsl:element name="text:span">
1175 <xsl:attribute name="text:style-name">KeyCombo</xsl:attribute>
1176 <xsl:apply-templates/>
1177 </xsl:element>
1178 </xsl:template>
1180 <xsl:template match="command">
1181 <xsl:element name="text:span">
1182 <xsl:attribute name="text:style-name">Command</xsl:attribute>
1183 <xsl:apply-templates/>
1184 </xsl:element>
1185 </xsl:template>
1187 <xsl:template match="application">
1188 <xsl:element name="text:span">
1189 <xsl:attribute name="text:style-name">Application</xsl:attribute>
1190 <xsl:apply-templates/>
1191 </xsl:element>
1192 </xsl:template>
1194 <xsl:template match="filename">
1195 <xsl:element name="text:span">
1196 <xsl:attribute name="text:style-name">FileName</xsl:attribute>
1197 <xsl:apply-templates/>
1198 </xsl:element>
1199 </xsl:template>
1201 <xsl:template match="systemitem">
1202 <xsl:element name="text:span">
1203 <xsl:attribute name="text:style-name">SystemItem</xsl:attribute>
1204 <xsl:apply-templates/>
1205 </xsl:element>
1206 </xsl:template>
1208 <xsl:template match="computeroutput">
1209 <xsl:element name="text:span">
1210 <xsl:attribute name="text:style-name">ComputerOutput</xsl:attribute>
1211 <xsl:apply-templates/>
1212 </xsl:element>
1213 </xsl:template>
1215 <xsl:template match="inlinegraphic">
1216 <xsl:element name="draw:image">
1217 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1218 <xsl:attribute name="draw:name"></xsl:attribute>
1219 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1220 <xsl:attribute name="draw:z-index"></xsl:attribute>
1221 <xsl:attribute name="xlink:href">
1222 <xsl:value-of select="@fileref"/>
1223 </xsl:attribute>
1224 <xsl:attribute name="xlink:type"></xsl:attribute>
1225 <xsl:attribute name="svg:width">
1226 <!--<xsl:value-of select="@width"/>-->
1227 <xsl:text>1cm</xsl:text>
1228 </xsl:attribute>
1229 <xsl:attribute name="svg:height">
1230 <xsl:text>1cm</xsl:text>
1231 </xsl:attribute>
1232 <xsl:attribute name="xlink:show">
1233 <xsl:text>embed</xsl:text>
1234 </xsl:attribute>
1235 <xsl:attribute name="xlink:actuate">
1236 <xsl:text>onLoad</xsl:text>
1237 </xsl:attribute>
1238 <xsl:attribute name="draw:filter-name">
1239 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1240 </xsl:attribute>
1241 </xsl:element>
1242 </xsl:template>
1245 <xsl:template match="footnote">
1246 <xsl:element name="text:footnote">
1247 <!--<xsl:element name="text:footnote-citation">Aidan</xsl:element>-->
1248 <xsl:element name="text:footnote-body">
1249 <xsl:apply-templates/>
1250 </xsl:element>
1251 </xsl:element>
1252 </xsl:template>
1254 <xsl:template match="highlight">
1255 <xsl:element name="text:span">
1256 <xsl:attribute name="text:style-name">Highlight</xsl:attribute>
1257 <xsl:apply-templates/>
1258 </xsl:element>
1259 </xsl:template>
1261 <xsl:template match="ulink">
1262 <xsl:element name="text:a">
1263 <xsl:attribute name="xlink:type">
1264 <xsl:text>simple</xsl:text>
1265 </xsl:attribute>
1266 <xsl:attribute name="xlink:href">
1267 <xsl:value-of select="@url"/>
1268 </xsl:attribute>
1269 <xsl:apply-templates/>
1270 </xsl:element>
1272 </xsl:template>
1274 <xsl:template match="link">
1275 <xsl:element name="text:a">
1276 <xsl:attribute name="xlink:type">
1277 <xsl:text>simple</xsl:text>
1278 </xsl:attribute>
1279 <xsl:attribute name="xlink:href">
1280 <xsl:text>#</xsl:text>
1281 <xsl:value-of select="@linkend"/>
1282 <xsl:text>%7Cregion</xsl:text>
1283 </xsl:attribute>
1284 <xsl:apply-templates/>
1285 </xsl:element>
1287 </xsl:template>
1289 <xsl:template match="olink">
1290 <xsl:element name="text:a">
1291 <xsl:attribute name="xlink:type">
1292 <xsl:text>simple</xsl:text>
1293 </xsl:attribute>
1294 <xsl:attribute name="xlink:href">
1295 <xsl:value-of select="@targetdocent"/>
1296 </xsl:attribute>
1297 <xsl:apply-templates/>
1298 </xsl:element>
1299 </xsl:template>
1301 <xsl:template match="note">
1302 <office:annotation>
1303 <text:p>
1304 <xsl:apply-templates/>
1305 </text:p>
1306 </office:annotation>
1307 </xsl:template>
1309 <xsl:template match="imageobject">
1310 <xsl:apply-templates/>
1311 </xsl:template>
1313 <xsl:template match="textobject"></xsl:template>
1315 <xsl:template match="caption">
1316 <xsl:apply-templates/>
1317 </xsl:template>
1320 <xsl:template match="imagedata">
1321 <xsl:element name="draw:image">
1322 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1323 <xsl:attribute name="draw:name"></xsl:attribute>
1324 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1325 <xsl:attribute name="draw:z-index"></xsl:attribute>
1326 <xsl:attribute name="xlink:href">
1327 <xsl:value-of select="@fileref"/>
1328 </xsl:attribute>
1329 <xsl:attribute name="xlink:type"></xsl:attribute>
1330 <xsl:attribute name="svg:width">
1331 <!--<xsl:value-of select="@width"/>-->
1332 <xsl:text>1cm</xsl:text>
1333 </xsl:attribute>
1334 <xsl:attribute name="svg:height">
1335 <xsl:text>1cm</xsl:text>
1336 </xsl:attribute>
1337 <xsl:attribute name="xlink:show">
1338 <xsl:text>embed</xsl:text>
1339 </xsl:attribute>
1340 <xsl:attribute name="xlink:actuate">
1341 <xsl:text>onLoad</xsl:text>
1342 </xsl:attribute>
1343 <xsl:attribute name="draw:filter-name">
1344 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1345 </xsl:attribute>
1346 </xsl:element>
1347 </xsl:template>
1349 <xsl:template match="audioobject">
1350 <xsl:element name="draw:plugin">
1351 <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
1352 <xsl:attribute name="draw:name"></xsl:attribute>
1353 <xsl:attribute name="text:anchor-type"></xsl:attribute>
1354 <xsl:attribute name="draw:z-index"></xsl:attribute>
1355 <xsl:attribute name="xlink:href">
1356 <xsl:value-of select="@fileref"/>
1357 </xsl:attribute>
1358 <xsl:attribute name="xlink:type"></xsl:attribute>
1359 <xsl:attribute name="svg:width">
1360 <!--<xsl:value-of select="@width"/>-->
1361 <xsl:text>1cm</xsl:text>
1362 </xsl:attribute>
1363 <xsl:attribute name="svg:height">
1364 <xsl:text>1cm</xsl:text>
1365 </xsl:attribute>
1366 <xsl:attribute name="xlink:show">
1367 <xsl:text>embed</xsl:text>
1368 </xsl:attribute>
1369 <xsl:attribute name="xlink:actuate">
1370 <xsl:text>onLoad</xsl:text>
1371 </xsl:attribute>
1372 <xsl:attribute name="draw:filter-name">
1373 <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
1374 </xsl:attribute>
1375 </xsl:element>
1376 </xsl:template>
1378 <xsl:template match="remark">
1379 <xsl:apply-templates/>
1380 </xsl:template>
1382 <xsl:template match="mediaobject">
1383 <xsl:element name="text:p">
1384 <xsl:attribute name="text:style-name">Mediaobject</xsl:attribute>
1385 <xsl:apply-templates/>
1386 </xsl:element>
1387 </xsl:template>
1389 <xsl:template match="superscript">
1390 <xsl:element name="text:span">
1391 <xsl:attribute name="text:style-name">SuperScript</xsl:attribute>
1392 <xsl:apply-templates/>
1393 </xsl:element>
1394 </xsl:template>
1396 <xsl:template match="subscript">
1397 <xsl:element name="text:span">
1398 <xsl:attribute name="text:style-name">SubScript</xsl:attribute>
1399 <xsl:apply-templates/>
1400 </xsl:element>
1401 </xsl:template>
1403 <xsl:template match="anchor">
1404 <xsl:element name="text:bookmark">
1405 <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
1406 </xsl:element>
1407 </xsl:template>
1409 <!-- Change Made By Kevin Fowlks (fowlks@msu.edu) July 2nd, 2003 -->
1410 <xsl:template match="example">
1411 <xsl:element name="text:p">
1412 <xsl:attribute name="text:style-name">Example</xsl:attribute>
1413 <xsl:value-of select="programlisting"/>
1414 </xsl:element>
1415 </xsl:template>
1416 </xsl:stylesheet>