docbooktosoffheadings.xsl 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * This file is part of the LibreOffice project.
  4. *
  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/.
  8. *
  9. * This file incorporates work covered by the following license notice:
  10. *
  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>
  351. <xsl:template match="subtitle">
  352. <xsl:choose>
  353. <xsl:when test="parent::table">
  354. <xsl:apply-templates/>
  355. </xsl:when>
  356. <xsl:when test="parent::informaltable">
  357. <xsl:apply-templates/>
  358. </xsl:when>
  359. <xsl:otherwise>
  360. <xsl:element name="text:p">
  361. <xsl:attribute name="text:style-name">Section SubTitle</xsl:attribute>
  362. </xsl:element>
  363. </xsl:otherwise>
  364. </xsl:choose>
  365. </xsl:template>
  366. <xsl:template match="title">
  367. <xsl:choose>
  368. <xsl:when test="parent::figure"></xsl:when>
  369. <xsl:when test="parent::table"></xsl:when>
  370. <xsl:when test="parent::sect1"></xsl:when>
  371. <xsl:when test="parent::sect2"></xsl:when>
  372. <xsl:when test="parent::sect3"></xsl:when>
  373. <xsl:when test="parent::sect4"></xsl:when>
  374. <xsl:when test="parent::sect5"></xsl:when>
  375. <xsl:when test="parent::informaltable">
  376. <xsl:apply-templates/>
  377. </xsl:when>
  378. <xsl:otherwise>
  379. <xsl:element name="text:p">
  380. <xsl:choose>
  381. <xsl:when test="parent::appendix">
  382. <xsl:attribute name="text:style-name">Appendix Title</xsl:attribute>
  383. </xsl:when>
  384. </xsl:choose>
  385. <xsl:apply-templates/>
  386. </xsl:element>
  387. </xsl:otherwise>
  388. </xsl:choose>
  389. </xsl:template>
  390. <xsl:template match="articleinfo">
  391. <xsl:element name="text:section">
  392. <xsl:attribute name="text:style-name">ArticleInfo</xsl:attribute>
  393. <xsl:attribute name="text:name">ArticleInfo</xsl:attribute>
  394. <xsl:if test="/article/articleinfo/title !=''">
  395. <xsl:element name="text:p">
  396. <xsl:attribute name="text:style-name">Document Title</xsl:attribute>
  397. <xsl:value-of select="/article/articleinfo/title"/>
  398. </xsl:element>
  399. <xsl:if test="/article/articleinfo/subtitle !=''">
  400. <xsl:element name="text:p">
  401. <xsl:attribute name="text:style-name">Document SubTitle</xsl:attribute>
  402. <xsl:value-of select="/article/articleinfo/subtitle"/>
  403. </xsl:element>
  404. </xsl:if>
  405. </xsl:if>
  406. <xsl:apply-templates/>
  407. </xsl:element>
  408. </xsl:template>
  409. <xsl:template match="appendix">
  410. <xsl:element name="text:section">
  411. <xsl:attribute name="text:style-name">Appendix</xsl:attribute>
  412. <xsl:attribute name="text:name">Appendix</xsl:attribute>
  413. <xsl:apply-templates/>
  414. </xsl:element>
  415. </xsl:template>
  416. <!--
  417. <xsl:template match="author">
  418. <xsl:apply-templates/>
  419. </xsl:template>
  420. <xsl:template match="firstname">
  421. <xsl:element name="text:variable-set">
  422. <xsl:attribute name="text:name">
  423. <xsl:if test="ancestor::articleinfo/author">
  424. <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)"/>
  425. </xsl:if>
  426. </xsl:attribute>
  427. <xsl:apply-templates/>
  428. </xsl:element>
  429. </xsl:template>-->
  430. <xsl:template match="articleinfo/title">
  431. <!-- <xsl:element name="text:variable-decls">
  432. <xsl:element name="text:variable-decl">
  433. <xsl:attribute name="text:value-type">
  434. <xsl:text>string</xsl:text>
  435. </xsl:attribute>
  436. <xsl:attribute name="text:name">
  437. <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
  438. </xsl:attribute>
  439. </xsl:element>
  440. </xsl:element>
  441. <xsl:element name="text:p">
  442. <xsl:element name="text:variable-set">
  443. <xsl:attribute name="text:value-type">
  444. <xsl:text>string</xsl:text>
  445. </xsl:attribute>
  446. <xsl:attribute name="text:name">
  447. <xsl:text disable-output-escaping="yes">articleinfo.title</xsl:text>
  448. </xsl:attribute>
  449. <xsl:apply-templates/>
  450. </xsl:element>
  451. </xsl:element>--></xsl:template>
  452. <xsl:template match="articleinfo/subtitle">
  453. <xsl:element name="text:variable-decls">
  454. <xsl:element name="text:variable-decl">
  455. <xsl:attribute name="text:value-type">
  456. <xsl:text>string</xsl:text>
  457. </xsl:attribute>
  458. <xsl:attribute name="text:name">
  459. <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
  460. </xsl:attribute>
  461. </xsl:element>
  462. </xsl:element>
  463. <xsl:element name="text:p">
  464. <xsl:element name="text:variable-set">
  465. <xsl:attribute name="text:value-type">
  466. <xsl:text>string</xsl:text>
  467. </xsl:attribute>
  468. <xsl:attribute name="text:name">
  469. <xsl:text disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
  470. </xsl:attribute>
  471. <xsl:apply-templates/>
  472. </xsl:element>
  473. </xsl:element>
  474. </xsl:template>
  475. <xsl:template match="articleinfo/edition">
  476. <xsl:element name="text:variable-decls">
  477. <xsl:element name="text:variable-decl">
  478. <xsl:attribute name="text:value-type">
  479. <xsl:text>string</xsl:text>
  480. </xsl:attribute>
  481. <xsl:attribute name="text:name">
  482. <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
  483. </xsl:attribute>
  484. </xsl:element>
  485. </xsl:element>
  486. <xsl:element name="text:p">
  487. <xsl:element name="text:variable-set">
  488. <xsl:attribute name="text:value-type">
  489. <xsl:text>string</xsl:text>
  490. </xsl:attribute>
  491. <xsl:attribute name="text:name">
  492. <xsl:text disable-output-escaping="yes">articleinfo.edition</xsl:text>
  493. </xsl:attribute>
  494. <xsl:apply-templates/>
  495. </xsl:element>
  496. </xsl:element>
  497. </xsl:template>
  498. <xsl:template match="articleinfo/releaseinfo">
  499. <xsl:element name="text:variable-decls">
  500. <xsl:element name="text:variable-decl">
  501. <xsl:attribute name="text:value-type">
  502. <xsl:text>string</xsl:text>
  503. </xsl:attribute>
  504. <xsl:attribute name="text:name">
  505. <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
  506. <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
  507. </xsl:attribute>
  508. </xsl:element>
  509. </xsl:element>
  510. <xsl:element name="text:p">
  511. <xsl:element name="text:variable-set">
  512. <xsl:attribute name="text:value-type">
  513. <xsl:text>string</xsl:text>
  514. </xsl:attribute>
  515. <xsl:attribute name="text:name">
  516. <xsl:text disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
  517. <xsl:value-of select="count(preceding-sibling::releaseinfo)"/>
  518. </xsl:attribute>
  519. <xsl:apply-templates/>
  520. </xsl:element>
  521. </xsl:element>
  522. </xsl:template>
  523. <xsl:template match="author/firstname">
  524. <xsl:element name="text:variable-decls">
  525. <xsl:element name="text:variable-decl">
  526. <xsl:attribute name="text:value-type">
  527. <xsl:text>string</xsl:text>
  528. </xsl:attribute>
  529. <xsl:attribute name="text:name">
  530. <xsl:if test="ancestor::articleinfo">
  531. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  532. <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
  533. <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
  534. <xsl:value-of select="count(preceding-sibling::firstname)"/>
  535. </xsl:if>
  536. </xsl:attribute>
  537. </xsl:element>
  538. </xsl:element>
  539. <xsl:element name="text:p">
  540. <xsl:element name="text:variable-set">
  541. <xsl:attribute name="text:value-type">
  542. <xsl:text>string</xsl:text>
  543. </xsl:attribute>
  544. <xsl:attribute name="text:name">
  545. <xsl:if test="ancestor::articleinfo">
  546. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  547. <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
  548. <xsl:text disable-output-escaping="yes">.firstname_</xsl:text>
  549. <xsl:value-of select="count(preceding-sibling::firstname)"/>
  550. </xsl:if>
  551. </xsl:attribute>
  552. <xsl:apply-templates/>
  553. </xsl:element>
  554. </xsl:element>
  555. </xsl:template>
  556. <xsl:template match="articleinfo/copyright/year">
  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>
  562. <xsl:attribute name="text:name">
  563. <xsl:if test="ancestor::articleinfo/copyright">
  564. <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
  565. <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
  566. <xsl:text disable-output-escaping="yes">.year_</xsl:text>
  567. <xsl:value-of select="count(preceding-sibling::year)"/>
  568. </xsl:if>
  569. </xsl:attribute>
  570. </xsl:element>
  571. </xsl:element>
  572. <xsl:element name="text:p">
  573. <xsl:element name="text:variable-set">
  574. <xsl:attribute name="text:value-type">
  575. <xsl:text>string</xsl:text>
  576. </xsl:attribute>
  577. <xsl:attribute name="text:name">
  578. <xsl:if test="ancestor::articleinfo/copyright">
  579. <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
  580. <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
  581. <xsl:text disable-output-escaping="yes">.year_</xsl:text>
  582. <xsl:value-of select="count(preceding-sibling::year)"/>
  583. </xsl:if>
  584. </xsl:attribute>
  585. <xsl:apply-templates/>
  586. </xsl:element>
  587. </xsl:element>
  588. </xsl:template>
  589. <xsl:template match="authorgroup">
  590. <xsl:apply-templates/>
  591. </xsl:template>
  592. <xsl:template match="articleinfo/copyright/holder">
  593. <xsl:element name="text:variable-decls">
  594. <xsl:element name="text:variable-decl">
  595. <xsl:attribute name="text:value-type">
  596. <xsl:text>string</xsl:text>
  597. </xsl:attribute>
  598. <xsl:attribute name="text:name">
  599. <xsl:if test="ancestor::articleinfo/copyright">
  600. <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
  601. <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
  602. <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
  603. <xsl:value-of select="count(preceding-sibling::holder)"/>
  604. </xsl:if>
  605. </xsl:attribute>
  606. </xsl:element>
  607. </xsl:element>
  608. <xsl:element name="text:p">
  609. <xsl:element name="text:variable-set">
  610. <xsl:attribute name="text:value-type">
  611. <xsl:text>string</xsl:text>
  612. </xsl:attribute>
  613. <xsl:attribute name="text:name">
  614. <xsl:if test="ancestor::articleinfo/copyright">
  615. <xsl:text disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
  616. <xsl:value-of select="count(parent::copyright[preceding-sibling::copyright])"/>
  617. <xsl:text disable-output-escaping="yes">.holder_</xsl:text>
  618. <xsl:value-of select="count(preceding-sibling::holder)"/>
  619. </xsl:if>
  620. </xsl:attribute>
  621. <xsl:apply-templates/>
  622. </xsl:element>
  623. </xsl:element>
  624. </xsl:template>
  625. <xsl:template name="affiliation">
  626. <xsl:apply-templates/>
  627. </xsl:template>
  628. <xsl:template match="author/affiliation/address">
  629. <xsl:element name="text:variable-decls">
  630. <xsl:element name="text:variable-decl">
  631. <xsl:attribute name="text:value-type">
  632. <xsl:text>string</xsl:text>
  633. </xsl:attribute>
  634. <xsl:attribute name="text:name">
  635. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  636. <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
  637. <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
  638. <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
  639. <xsl:text disable-output-escaping="yes">.address_</xsl:text>
  640. <xsl:value-of select="count(preceding-sibling::address)"/>
  641. </xsl:attribute>
  642. </xsl:element>
  643. </xsl:element>
  644. <xsl:element name="text:p">
  645. <xsl:element name="text:variable-set">
  646. <xsl:attribute name="text:value-type">
  647. <xsl:text>string</xsl:text>
  648. </xsl:attribute>
  649. <xsl:attribute name="text:name">
  650. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  651. <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
  652. <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
  653. <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
  654. <xsl:text disable-output-escaping="yes">.address_</xsl:text>
  655. <xsl:value-of select="count(preceding-sibling::address)"/>
  656. </xsl:attribute>
  657. <xsl:apply-templates/>
  658. </xsl:element>
  659. </xsl:element>
  660. </xsl:template>
  661. <xsl:template match="author/affiliation/orgname">
  662. <xsl:element name="text:variable-decls">
  663. <xsl:element name="text:variable-decl">
  664. <xsl:attribute name="text:value-type">
  665. <xsl:text>string</xsl:text>
  666. </xsl:attribute>
  667. <xsl:if test="ancestor::articleinfo">
  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">.orgname_</xsl:text>
  674. <xsl:value-of select="count(preceding-sibling::orgname)"/>
  675. </xsl:attribute>
  676. </xsl:if>
  677. </xsl:element>
  678. </xsl:element>
  679. <xsl:element name="text:p">
  680. <xsl:element name="text:variable-set">
  681. <xsl:attribute name="text:value-type">
  682. <xsl:text>string</xsl:text>
  683. </xsl:attribute>
  684. <xsl:if test="ancestor::articleinfo">
  685. <xsl:attribute name="text:name">
  686. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  687. <xsl:value-of select="count(ancestor::author[preceding-sibling::author])"/>
  688. <xsl:text disable-output-escaping="yes">.affiliation_</xsl:text>
  689. <xsl:value-of select="count(parent::affiliation[preceding-sibling::affiliation])"/>
  690. <xsl:text disable-output-escaping="yes">.orgname_</xsl:text>
  691. <xsl:value-of select="count(preceding-sibling::orgname)"/>
  692. </xsl:attribute>
  693. </xsl:if>
  694. <xsl:apply-templates/>
  695. </xsl:element>
  696. </xsl:element>
  697. </xsl:template>
  698. <xsl:template match="author/surname">
  699. <xsl:element name="text:variable-decls">
  700. <xsl:element name="text:variable-decl">
  701. <xsl:attribute name="text:value-type">
  702. <xsl:text>string</xsl:text>
  703. </xsl:attribute>
  704. <xsl:attribute name="text:name">
  705. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  706. <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
  707. <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
  708. <xsl:value-of select="count(preceding-sibling::surname)"/>
  709. </xsl:attribute>
  710. </xsl:element>
  711. </xsl:element>
  712. <xsl:element name="text:p">
  713. <xsl:element name="text:variable-set">
  714. <xsl:attribute name="text:value-type">
  715. <xsl:text>string</xsl:text>
  716. </xsl:attribute>
  717. <xsl:attribute name="text:name">
  718. <xsl:text disable-output-escaping="yes">articleinfo.author_</xsl:text>
  719. <xsl:value-of select="count(parent::author[preceding-sibling::author])"/>
  720. <xsl:text disable-output-escaping="yes">.surname_</xsl:text>
  721. <xsl:value-of select="count(preceding-sibling::surname)"/>
  722. </xsl:attribute>
  723. <xsl:apply-templates/>
  724. </xsl:element>
  725. </xsl:element>
  726. </xsl:template>
  727. <xsl:template match="para">
  728. <xsl:element name="text:p">
  729. <xsl:choose>
  730. <xsl:when test="ancestor-or-self::footnote">
  731. <xsl:attribute name="text:style-name">Footnote</xsl:attribute>
  732. </xsl:when>
  733. <xsl:when test="ancestor-or-self::listitem">
  734. <xsl:attribute name="text:style-name">VarList Item</xsl:attribute>
  735. </xsl:when>
  736. <xsl:when test="ancestor-or-self::informaltable">
  737. <xsl:if test="ancestor-or-self::informaltable">
  738. <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
  739. </xsl:if>
  740. <xsl:if test="ancestor-or-self::thead">
  741. <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
  742. </xsl:if>
  743. </xsl:when>
  744. <xsl:when test="ancestor-or-self::table">
  745. <xsl:if test="ancestor-or-self::table">
  746. <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
  747. </xsl:if>
  748. <xsl:if test="ancestor-or-self::thead">
  749. <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
  750. </xsl:if>
  751. </xsl:when>
  752. <xsl:otherwise>
  753. <xsl:attribute name="text:style-name">Text body</xsl:attribute>
  754. </xsl:otherwise>
  755. </xsl:choose>
  756. <xsl:apply-templates/>
  757. </xsl:element>
  758. </xsl:template>
  759. <xsl:template match="section">
  760. <xsl:element name="text:h">
  761. <xsl:attribute name="text:level">
  762. <xsl:value-of select="count(ancestor-or-self::section)"/>
  763. </xsl:attribute>
  764. <xsl:value-of select="child::title"/>
  765. </xsl:element>
  766. <xsl:apply-templates/>
  767. </xsl:template>
  768. <xsl:template match="abstract">
  769. <xsl:element name="text:h">
  770. <xsl:attribute name="text:level">1</xsl:attribute>
  771. <xsl:text>abstract</xsl:text>
  772. </xsl:element>
  773. <xsl:apply-templates/>
  774. </xsl:template>
  775. <xsl:template match="appendix">
  776. <xsl:element name="text:h">
  777. <xsl:attribute name="text:level">1</xsl:attribute>
  778. <xsl:text>appendix</xsl:text>
  779. </xsl:element>
  780. <xsl:apply-templates/>
  781. </xsl:template>
  782. <xsl:template match="sect1">
  783. <xsl:element name="text:h">
  784. <xsl:attribute name="text:level">1</xsl:attribute>
  785. <xsl:attribute name="text:style-name">Heading 1</xsl:attribute>
  786. <xsl:value-of select="child::title"/>
  787. </xsl:element>
  788. <xsl:apply-templates/>
  789. </xsl:template>
  790. <xsl:template match="sect2">
  791. <xsl:element name="text:h">
  792. <xsl:attribute name="text:level">2</xsl:attribute>
  793. <xsl:attribute name="text:style-name">Heading 2</xsl:attribute>
  794. <xsl:value-of select="child::title"/>
  795. </xsl:element>
  796. <xsl:apply-templates/>
  797. </xsl:template>
  798. <xsl:template match="sect3">
  799. <xsl:element name="text:h">
  800. <xsl:attribute name="text:level">3</xsl:attribute>
  801. <xsl:attribute name="text:style-name">Heading 3</xsl:attribute>
  802. <xsl:value-of select="child::title"/>
  803. </xsl:element>
  804. <xsl:apply-templates/>
  805. </xsl:template>
  806. <xsl:template match="sect4">
  807. <xsl:element name="text:h">
  808. <xsl:attribute name="text:level">4</xsl:attribute>
  809. <xsl:attribute name="text:style-name">Heading 4</xsl:attribute>
  810. <xsl:value-of select="child::title"/>
  811. </xsl:element>
  812. <xsl:apply-templates/>
  813. </xsl:template>
  814. <xsl:template match="sect5">
  815. <xsl:element name="text:h">
  816. <xsl:attribute name="text:level">5</xsl:attribute>
  817. <xsl:value-of select="child::title"/>
  818. </xsl:element>
  819. <xsl:apply-templates/>
  820. </xsl:template>
  821. <!--<xsl:template match="sect5">
  822. <xsl:element name="text:section">
  823. <xsl:attribute name="text:style-name">Sect1</xsl:attribute>
  824. <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
  825. <xsl:apply-templates/>
  826. </xsl:element>
  827. </xsl:template>-->
  828. <xsl:template match="informaltable">
  829. <xsl:element name="table:table">
  830. <xsl:attribute name="table:name"></xsl:attribute>
  831. <xsl:attribute name="table:style-name">Table1</xsl:attribute>
  832. <xsl:attribute name="table:name">
  833. <xsl:value-of select="@id"/>
  834. </xsl:attribute>
  835. <xsl:apply-templates/>
  836. </xsl:element>
  837. </xsl:template>
  838. <xsl:template match="table">
  839. <xsl:variable name="tabletitle">
  840. <xsl:value-of select="title"/>
  841. </xsl:variable>
  842. <xsl:element name="table:table">
  843. <xsl:attribute name="table:name"></xsl:attribute>
  844. <xsl:attribute name="table:style-name">Table1</xsl:attribute>
  845. <xsl:attribute name="table:name">
  846. <xsl:value-of select="@id"/>
  847. </xsl:attribute>
  848. <xsl:apply-templates/>
  849. </xsl:element>
  850. <xsl:if test="not($tabletitle='')">
  851. <xsl:element name="text:p">
  852. <xsl:attribute name="text:style-name">Table</xsl:attribute>
  853. <xsl:value-of select="$tabletitle"/>
  854. </xsl:element>
  855. </xsl:if>
  856. </xsl:template>
  857. <xsl:template match="tgroup">
  858. <xsl:element name="table:table-column">
  859. <xsl:attribute name="table:style-name">Table1.A</xsl:attribute>
  860. <xsl:choose>
  861. <xsl:when test="@cols >0">
  862. <xsl:attribute name="table:number-columns-repeated">
  863. <xsl:value-of select="@cols"/>
  864. </xsl:attribute>
  865. </xsl:when>
  866. <xsl:otherwise>
  867. <xsl:attribute name="table:number-columns-repeated">
  868. <xsl:value-of select="count(child::tbody/row/entry) div count(child::tbody/row)"/>
  869. </xsl:attribute>
  870. </xsl:otherwise>
  871. </xsl:choose>
  872. </xsl:element>
  873. <xsl:apply-templates/>
  874. </xsl:template>
  875. <xsl:template match="indexterm"></xsl:template>
  876. <xsl:template match="thead">
  877. <xsl:element name="table:table-header-rows">
  878. <xsl:apply-templates/>
  879. </xsl:element>
  880. </xsl:template>
  881. <xsl:template match="tbody">
  882. <xsl:apply-templates/>
  883. </xsl:template>
  884. <xsl:template match="row">
  885. <xsl:element name="table:table-row">
  886. <xsl:apply-templates/>
  887. </xsl:element>
  888. </xsl:template>
  889. <xsl:template match="entry">
  890. <xsl:element name="table:table-cell">
  891. <xsl:if test="ancestor-or-self::thead">
  892. <xsl:attribute name="table:style-name">Table1.A1</xsl:attribute>
  893. </xsl:if>
  894. <xsl:if test="not(ancestor-or-self::thead)">
  895. <xsl:attribute name="table:style-name">Table1.A2</xsl:attribute>
  896. </xsl:if>
  897. <xsl:choose>
  898. <xsl:when test="@spanname">
  899. <!--<xsl:if test="@spanname">-->
  900. <xsl:variable name="sname">
  901. <xsl:value-of select="@spanname"/>
  902. </xsl:variable>
  903. <xsl:attribute name="table:number-columns-spanned">
  904. <xsl:variable name="colnamestart">
  905. <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@namest"/>
  906. </xsl:variable>
  907. <xsl:variable name="colnameend">
  908. <xsl:value-of select="ancestor::tgroup/spanspec[@spanname=$sname]/@nameend"/>
  909. </xsl:variable>
  910. <xsl:variable name="colnumstart">
  911. <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
  912. </xsl:variable>
  913. <xsl:variable name="colnumend">
  914. <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
  915. </xsl:variable>
  916. <xsl:value-of select="$colnumend - $colnumstart + 1"/>
  917. </xsl:attribute>
  918. </xsl:when>
  919. <xsl:when test="@namest and @nameend">
  920. <!--<xsl:if test="@namest and @nameend">-->
  921. <xsl:variable name="colnamestart">
  922. <xsl:value-of select="@namest"/>
  923. </xsl:variable>
  924. <xsl:variable name="colnameend">
  925. <xsl:value-of select="@nameend"/>
  926. </xsl:variable>
  927. <xsl:attribute name="table:number-columns-spanned">
  928. <xsl:variable name="colnumstart">
  929. <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnamestart]/@colnum"/>
  930. </xsl:variable>
  931. <xsl:variable name="colnumend">
  932. <xsl:value-of select="ancestor::tgroup/colspec[@colname=$colnameend]/@colnum"/>
  933. </xsl:variable>
  934. <xsl:value-of select="$colnumend - $colnumstart + 1"/>
  935. </xsl:attribute>
  936. </xsl:when>
  937. </xsl:choose>
  938. <!--
  939. <xsl:if test="not(@namest = '' ) ">
  940. <xsl:attribute name="table:number-columns-spanned">
  941. <xsl:value-of select="(substring-after(@nameend,'c')-substring-after(@namest,'c'))+1"/>
  942. </xsl:attribute>
  943. </xsl:if>
  944. -->
  945. <xsl:choose>
  946. <xsl:when test="not(child::para)">
  947. <xsl:element name="text:p">
  948. <xsl:if test="ancestor-or-self::thead">
  949. <xsl:attribute name="text:style-name">Table Heading</xsl:attribute>
  950. </xsl:if>
  951. <xsl:if test="ancestor-or-self::tbody">
  952. <xsl:attribute name="text:style-name">Table Contents</xsl:attribute>
  953. </xsl:if>
  954. <xsl:apply-templates/>
  955. </xsl:element>
  956. </xsl:when>
  957. <xsl:otherwise>
  958. <xsl:apply-templates/>
  959. </xsl:otherwise>
  960. </xsl:choose>
  961. </xsl:element>
  962. </xsl:template>
  963. <xsl:template match="figure">
  964. <xsl:apply-templates/>
  965. </xsl:template>
  966. <!-- lists Section -->
  967. <xsl:template match="itemizedlist">
  968. <xsl:element name="text:unordered-list">
  969. <xsl:if test="not(ancestor::itemizedlist)">
  970. <xsl:attribute name="text:style-name">L1</xsl:attribute>
  971. </xsl:if>
  972. <xsl:apply-templates/>
  973. </xsl:element>
  974. </xsl:template>
  975. <xsl:template match="variablelist">
  976. <xsl:element name="text:unordered-list">
  977. <xsl:attribute name="text:style-name">Var List</xsl:attribute>
  978. <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
  979. <xsl:apply-templates/>
  980. </xsl:element>
  981. </xsl:template>
  982. <xsl:template match="orderedlist">
  983. <xsl:element name="text:ordered-list">
  984. <xsl:attribute name="text:style-name">Ordered List</xsl:attribute>
  985. <xsl:attribute name="text:continue-numbering">false</xsl:attribute>
  986. <xsl:apply-templates/>
  987. </xsl:element>
  988. </xsl:template>
  989. <xsl:template match="term">
  990. <xsl:if test="parent::varlistentry">
  991. <text:list-item>
  992. <xsl:element name="text:p">
  993. <xsl:attribute name="text:style-name">VarList Term</xsl:attribute>
  994. <xsl:apply-templates/>
  995. </xsl:element>
  996. </text:list-item>
  997. </xsl:if>
  998. </xsl:template>
  999. <xsl:template match="listitem">
  1000. <text:list-item>
  1001. <xsl:apply-templates/>
  1002. </text:list-item>
  1003. </xsl:template>
  1004. <!-- end of lists-->
  1005. <xsl:template match="menuchoice">
  1006. <xsl:apply-templates/>
  1007. </xsl:template>
  1008. <xsl:template match="guimenuitem">
  1009. <xsl:element name="text:span">
  1010. <xsl:attribute name="text:style-name">GuiMenuItem</xsl:attribute>
  1011. <xsl:apply-templates/>
  1012. </xsl:element>
  1013. </xsl:template>
  1014. <xsl:template match="guibutton">
  1015. <xsl:element name="text:span">
  1016. <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
  1017. <xsl:apply-templates/>
  1018. </xsl:element>
  1019. </xsl:template>
  1020. <xsl:template match="guisubmenu">
  1021. <xsl:element name="text:span">
  1022. <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
  1023. <xsl:apply-templates/>
  1024. </xsl:element>
  1025. </xsl:template>
  1026. <xsl:template match="emphasis">
  1027. <xsl:element name="text:span">
  1028. <xsl:attribute name="text:style-name">Emphasis</xsl:attribute>
  1029. <xsl:apply-templates/>
  1030. </xsl:element>
  1031. </xsl:template>
  1032. <xsl:template match="guimenu">
  1033. <xsl:element name="text:span">
  1034. <xsl:attribute name="text:style-name">GuiMenu</xsl:attribute>
  1035. <xsl:apply-templates/>
  1036. </xsl:element>
  1037. </xsl:template>
  1038. <xsl:template match="guisubmenu">
  1039. <xsl:element name="text:span">
  1040. <xsl:attribute name="text:style-name">GuiSubMenu</xsl:attribute>
  1041. <xsl:apply-templates/>
  1042. </xsl:element>
  1043. </xsl:template>
  1044. <xsl:template match="guilabel">
  1045. <xsl:element name="text:span">
  1046. <xsl:attribute name="text:style-name">GuiLabel</xsl:attribute>
  1047. <xsl:apply-templates/>
  1048. </xsl:element>
  1049. </xsl:template>
  1050. <xsl:template match="guibutton">
  1051. <xsl:element name="text:span">
  1052. <xsl:attribute name="text:style-name">GuiButton</xsl:attribute>
  1053. <xsl:apply-templates/>
  1054. </xsl:element>
  1055. </xsl:template>
  1056. <xsl:template match="keycap">
  1057. <xsl:element name="text:span">
  1058. <xsl:attribute name="text:style-name">KeyCap</xsl:attribute>
  1059. <xsl:apply-templates/>
  1060. </xsl:element>
  1061. </xsl:template>
  1062. <xsl:template match="keysym">
  1063. <xsl:element name="text:span">
  1064. <xsl:attribute name="text:style-name">KeySym</xsl:attribute>
  1065. <xsl:apply-templates/>
  1066. </xsl:element>
  1067. </xsl:template>
  1068. <xsl:template match="keycombo">
  1069. <xsl:element name="text:span">
  1070. <xsl:attribute name="text:style-name">KeyCombo</xsl:attribute>
  1071. <xsl:apply-templates/>
  1072. </xsl:element>
  1073. </xsl:template>
  1074. <xsl:template match="command">
  1075. <xsl:element name="text:span">
  1076. <xsl:attribute name="text:style-name">Command</xsl:attribute>
  1077. <xsl:apply-templates/>
  1078. </xsl:element>
  1079. </xsl:template>
  1080. <xsl:template match="application">
  1081. <xsl:element name="text:span">
  1082. <xsl:attribute name="text:style-name">Application</xsl:attribute>
  1083. <xsl:apply-templates/>
  1084. </xsl:element>
  1085. </xsl:template>
  1086. <xsl:template match="filename">
  1087. <xsl:element name="text:span">
  1088. <xsl:attribute name="text:style-name">FileName</xsl:attribute>
  1089. <xsl:apply-templates/>
  1090. </xsl:element>
  1091. </xsl:template>
  1092. <xsl:template match="systemitem">
  1093. <xsl:element name="text:span">
  1094. <xsl:attribute name="text:style-name">SystemItem</xsl:attribute>
  1095. <xsl:apply-templates/>
  1096. </xsl:element>
  1097. </xsl:template>
  1098. <xsl:template match="computeroutput">
  1099. <xsl:element name="text:span">
  1100. <xsl:attribute name="text:style-name">ComputerOutput</xsl:attribute>
  1101. <xsl:apply-templates/>
  1102. </xsl:element>
  1103. </xsl:template>
  1104. <xsl:template match="inlinegraphic">
  1105. <xsl:element name="draw:image">
  1106. <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
  1107. <xsl:attribute name="draw:name"></xsl:attribute>
  1108. <xsl:attribute name="text:anchor-type"></xsl:attribute>
  1109. <xsl:attribute name="draw:z-index"></xsl:attribute>
  1110. <xsl:attribute name="xlink:href">
  1111. <xsl:value-of select="@fileref"/>
  1112. </xsl:attribute>
  1113. <xsl:attribute name="xlink:type"></xsl:attribute>
  1114. <xsl:attribute name="svg:width">
  1115. <!--<xsl:value-of select="@width"/>-->
  1116. <xsl:text>1cm</xsl:text>
  1117. </xsl:attribute>
  1118. <xsl:attribute name="svg:height">
  1119. <xsl:text>1cm</xsl:text>
  1120. </xsl:attribute>
  1121. <xsl:attribute name="xlink:show">
  1122. <xsl:text>embed</xsl:text>
  1123. </xsl:attribute>
  1124. <xsl:attribute name="xlink:actuate">
  1125. <xsl:text>onLoad</xsl:text>
  1126. </xsl:attribute>
  1127. <xsl:attribute name="draw:filter-name">
  1128. <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
  1129. </xsl:attribute>
  1130. </xsl:element>
  1131. </xsl:template>
  1132. <xsl:template match="footnote">
  1133. <xsl:element name="text:footnote">
  1134. <!--<xsl:element name="text:footnote-citation">Aidan</xsl:element>-->
  1135. <xsl:element name="text:footnote-body">
  1136. <xsl:apply-templates/>
  1137. </xsl:element>
  1138. </xsl:element>
  1139. </xsl:template>
  1140. <xsl:template match="highlight">
  1141. <xsl:element name="text:span">
  1142. <xsl:attribute name="text:style-name">Highlight</xsl:attribute>
  1143. <xsl:apply-templates/>
  1144. </xsl:element>
  1145. </xsl:template>
  1146. <xsl:template match="ulink">
  1147. <xsl:element name="text:a">
  1148. <xsl:attribute name="xlink:type">
  1149. <xsl:text>simple</xsl:text>
  1150. </xsl:attribute>
  1151. <xsl:attribute name="xlink:href">
  1152. <xsl:value-of select="@url"/>
  1153. </xsl:attribute>
  1154. <xsl:apply-templates/>
  1155. </xsl:element>
  1156. </xsl:template>
  1157. <xsl:template match="link">
  1158. <xsl:element name="text:a">
  1159. <xsl:attribute name="xlink:type">
  1160. <xsl:text>simple</xsl:text>
  1161. </xsl:attribute>
  1162. <xsl:attribute name="xlink:href">
  1163. <xsl:text>#</xsl:text>
  1164. <xsl:value-of select="@linkend"/>
  1165. <xsl:text>%7Cregion</xsl:text>
  1166. </xsl:attribute>
  1167. <xsl:apply-templates/>
  1168. </xsl:element>
  1169. </xsl:template>
  1170. <xsl:template match="olink">
  1171. <xsl:element name="text:a">
  1172. <xsl:attribute name="xlink:type">
  1173. <xsl:text>simple</xsl:text>
  1174. </xsl:attribute>
  1175. <xsl:attribute name="xlink:href">
  1176. <xsl:value-of select="@targetdocent"/>
  1177. </xsl:attribute>
  1178. <xsl:apply-templates/>
  1179. </xsl:element>
  1180. </xsl:template>
  1181. <xsl:template match="note">
  1182. <office:annotation>
  1183. <text:p>
  1184. <xsl:apply-templates/>
  1185. </text:p>
  1186. </office:annotation>
  1187. </xsl:template>
  1188. <xsl:template match="imageobject">
  1189. <xsl:apply-templates/>
  1190. </xsl:template>
  1191. <xsl:template match="textobject"></xsl:template>
  1192. <xsl:template match="caption">
  1193. <xsl:apply-templates/>
  1194. </xsl:template>
  1195. <xsl:template match="imagedata">
  1196. <xsl:element name="draw:image">
  1197. <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
  1198. <xsl:attribute name="draw:name"></xsl:attribute>
  1199. <xsl:attribute name="text:anchor-type"></xsl:attribute>
  1200. <xsl:attribute name="draw:z-index"></xsl:attribute>
  1201. <xsl:attribute name="xlink:href">
  1202. <xsl:value-of select="@fileref"/>
  1203. </xsl:attribute>
  1204. <xsl:attribute name="xlink:type"></xsl:attribute>
  1205. <xsl:attribute name="svg:width">
  1206. <!--<xsl:value-of select="@width"/>-->
  1207. <xsl:text>1cm</xsl:text>
  1208. </xsl:attribute>
  1209. <xsl:attribute name="svg:height">
  1210. <xsl:text>1cm</xsl:text>
  1211. </xsl:attribute>
  1212. <xsl:attribute name="xlink:show">
  1213. <xsl:text>embed</xsl:text>
  1214. </xsl:attribute>
  1215. <xsl:attribute name="xlink:actuate">
  1216. <xsl:text>onLoad</xsl:text>
  1217. </xsl:attribute>
  1218. <xsl:attribute name="draw:filter-name">
  1219. <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
  1220. </xsl:attribute>
  1221. </xsl:element>
  1222. </xsl:template>
  1223. <xsl:template match="audioobject">
  1224. <xsl:element name="draw:plugin">
  1225. <xsl:attribute name="draw:style-name">fr1</xsl:attribute>
  1226. <xsl:attribute name="draw:name"></xsl:attribute>
  1227. <xsl:attribute name="text:anchor-type"></xsl:attribute>
  1228. <xsl:attribute name="draw:z-index"></xsl:attribute>
  1229. <xsl:attribute name="xlink:href">
  1230. <xsl:value-of select="@fileref"/>
  1231. </xsl:attribute>
  1232. <xsl:attribute name="xlink:type"></xsl:attribute>
  1233. <xsl:attribute name="svg:width">
  1234. <!--<xsl:value-of select="@width"/>-->
  1235. <xsl:text>1cm</xsl:text>
  1236. </xsl:attribute>
  1237. <xsl:attribute name="svg:height">
  1238. <xsl:text>1cm</xsl:text>
  1239. </xsl:attribute>
  1240. <xsl:attribute name="xlink:show">
  1241. <xsl:text>embed</xsl:text>
  1242. </xsl:attribute>
  1243. <xsl:attribute name="xlink:actuate">
  1244. <xsl:text>onLoad</xsl:text>
  1245. </xsl:attribute>
  1246. <xsl:attribute name="draw:filter-name">
  1247. <xsl:text disable-output-escaping="yes">&lt;All formats&gt;</xsl:text>
  1248. </xsl:attribute>
  1249. </xsl:element>
  1250. </xsl:template>
  1251. <xsl:template match="remark">
  1252. <xsl:apply-templates/>
  1253. </xsl:template>
  1254. <xsl:template match="mediaobject">
  1255. <xsl:element name="text:p">
  1256. <xsl:attribute name="text:style-name">Mediaobject</xsl:attribute>
  1257. <xsl:apply-templates/>
  1258. </xsl:element>
  1259. </xsl:template>
  1260. <xsl:template match="superscript">
  1261. <xsl:element name="text:span">
  1262. <xsl:attribute name="text:style-name">SuperScript</xsl:attribute>
  1263. <xsl:apply-templates/>
  1264. </xsl:element>
  1265. </xsl:template>
  1266. <xsl:template match="subscript">
  1267. <xsl:element name="text:span">
  1268. <xsl:attribute name="text:style-name">SubScript</xsl:attribute>
  1269. <xsl:apply-templates/>
  1270. </xsl:element>
  1271. </xsl:template>
  1272. <xsl:template match="anchor">
  1273. <xsl:element name="text:bookmark">
  1274. <xsl:attribute name="text:name"><xsl:value-of select="@id"/></xsl:attribute>
  1275. </xsl:element>
  1276. </xsl:template>
  1277. <!-- Change Made By Kevin Fowlks (fowlks@msu.edu) July 2nd, 2003 -->
  1278. <xsl:template match="example">
  1279. <xsl:element name="text:p">
  1280. <xsl:attribute name="text:style-name">Example</xsl:attribute>
  1281. <xsl:value-of select="programlisting"/>
  1282. </xsl:element>
  1283. </xsl:template>
  1284. </xsl:stylesheet>