filter/source/config/fragments/langfilter.xsl                           |    2 
 filter/source/docbook/docbooktosoffheadings.xsl                         | 2748 
-
 filter/source/docbook/sofftodocbookheadings.xsl                         | 2100 
-
 filter/source/xslt/common/copy.xsl                                      |    8 
 filter/source/xslt/common/measure_conversion.xsl                        |  880 
 filter/source/xslt/export/spreadsheetml/formular.xsl                    | 1164 
 filter/source/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl           |  370 
 filter/source/xslt/export/spreadsheetml/style_mapping.xsl               |  720 
 filter/source/xslt/export/spreadsheetml/styles.xsl                      | 1324 
 filter/source/xslt/export/spreadsheetml/table.xsl                       | 1812 
-
 filter/source/xslt/export/uof/odf2uof_presentation.xsl                  | 6718 
+--
 filter/source/xslt/export/uof/odf2uof_spreadsheet.xsl                   |12330 
+++---
 filter/source/xslt/export/uof/odf2uof_text.xsl                          | 8828 
++--
 filter/source/xslt/export/wordml/ooo2wordml_border.xsl                  |   36 
 filter/source/xslt/export/wordml/ooo2wordml_draw.xsl                    | 3478 
-
 filter/source/xslt/export/wordml/ooo2wordml_field.xsl                   |    9 
 filter/source/xslt/export/wordml/ooo2wordml_list.xsl                    |   10 
 filter/source/xslt/export/wordml/ooo2wordml_settings.xsl                |    2 
 filter/source/xslt/export/wordml/ooo2wordml_table.xsl                   |    2 
 filter/source/xslt/export/wordml/ooo2wordml_text.xsl                    |    2 
 filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl           |18102 
+++++-----
 filter/source/xslt/import/uof/uof2odf_presentation.xsl                  | 6914 
+--
 filter/source/xslt/import/uof/uof2odf_spreadsheet.xsl                   |18048 
++++-----
 filter/source/xslt/import/uof/uof2odf_text.xsl                          | 9234 
++---
 filter/source/xslt/import/wordml/wordml2ooo.xsl                         |    8 
 filter/source/xslt/import/wordml/wordml2ooo_draw.xsl                    |   68 
 filter/source/xslt/import/wordml/wordml2ooo_field.xsl                   |  154 
 filter/source/xslt/import/wordml/wordml2ooo_path.xsl                    |   28 
 filter/source/xslt/import/wordml/wordml2ooo_props.xsl                   |    8 
 filter/source/xslt/import/wordml/wordml2ooo_table.xsl                   |    6 
 filter/source/xslt/import/wordml/wordml2ooo_text.xsl                    |    4 
 filter/source/xslt/odf2xhtml/export/common/body.xsl                     |  855 
 filter/source/xslt/odf2xhtml/export/common/styles/style_collector.xsl   | 1348 
 filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl |  584 
 filter/source/xslt/odf2xhtml/export/common/table/table.xsl              |  264 
 filter/source/xslt/odf2xhtml/export/common/table/table_cells.xsl        |  452 
 filter/source/xslt/odf2xhtml/export/common/table/table_columns.xsl      |  420 
 filter/source/xslt/odf2xhtml/export/common/table/table_rows.xsl         |  360 
 filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl         | 1064 
 filter/source/xslt/odf2xhtml/export/xhtml/body.xsl                      | 5922 
+--
 filter/source/xslt/odf2xhtml/export/xhtml/header.xsl                    |  788 
 filter/source/xslt/odf2xhtml/export/xhtml/opendoc2xhtml.xsl             |  302 
 filter/source/xslt/odf2xhtml/export/xhtml/table.xsl                     |  380 
 officecfg/util/alllang.xsl                                              |  314 
 officecfg/util/data_val.xsl                                             |  286 
 officecfg/util/resource.xsl                                             |    8 
 officecfg/util/sanity.xsl                                               |    8 
 officecfg/util/schema_trim.xsl                                          |   84 
 officecfg/util/schema_val.xsl                                           |  172 
 readlicense_oo/docs/readme.xsl                                          |  320 
 sd/xsl/effect.xsl                                                       |  212 
 swext/mediawiki/src/filter/odt2mediawiki.xsl                            | 3872 
+-
 xmlhelp/util/compact.xsl                                                |    8 
 xmlhelp/util/embed.xsl                                                  |   48 
 xmlhelp/util/idxcaption.xsl                                             |   38 
 xmlhelp/util/idxcontent.xsl                                             |   30 
 xmlhelp/util/main_transform.xsl                                         | 1026 
 57 files changed, 57139 insertions(+), 57143 deletions(-)

New commits:
commit 28dff3780f9074f585bd626e2f06c94124ef4910
Author: Samuel Mehrbrodt <[email protected]>
Date:   Fri Aug 11 09:57:55 2017 +0200

    Clean up xsl files
    
    * Remove trailing spaces
    * Use 4 spaces for indentation everywhere
    
    See discussion at 
https://lists.freedesktop.org/archives/libreoffice/2017-September/078433.html
    
    Change-Id: I0bb9a0b9b0502cdf0870529cea37ee9c4d1ffdf4
    Reviewed-on: https://gerrit.libreoffice.org/41009
    Reviewed-by: Samuel Mehrbrodt <[email protected]>
    Tested-by: Samuel Mehrbrodt <[email protected]>

diff --git a/filter/source/config/fragments/langfilter.xsl 
b/filter/source/config/fragments/langfilter.xsl
index 7f8f90f44253..b26a522d16b2 100644
--- a/filter/source/config/fragments/langfilter.xsl
+++ b/filter/source/config/fragments/langfilter.xsl
@@ -43,7 +43,7 @@
     </xsl:copy>
     </xsl:if>
 </xsl:template>
- 
+
 <xsl:template match="text()">
     <xsl:if test="../@xml:lang=$lang">
         <xsl:copy>
diff --git a/filter/source/docbook/docbooktosoffheadings.xsl 
b/filter/source/docbook/docbooktosoffheadings.xsl
index 00f18380a315..08d1838632d4 100644
--- a/filter/source/docbook/docbooktosoffheadings.xsl
+++ b/filter/source/docbook/docbooktosoffheadings.xsl
@@ -17,1400 +17,1400 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  -->
 <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">
-       <xsl:decimal-format name="staff" digit="D"/>
-       <xsl:template match="/">
-               <xsl:element name="office:document">
-                       <office:meta>
-                               <dc:title>
-                                       <xsl:value-of 
select="/article/articleinfo/title"/>
-                               </dc:title>
-                               <dc:description></dc:description>
-                               <dc:subject></dc:subject>
-                               <dc:date>
-                                       <xsl:value-of 
select="article/articleinfo/pubdate"/>
-                               </dc:date>
-                               <dc:language>
-                                       <xsl:value-of select="article/@lang"/>
-                               </dc:language>
-                               <meta:user-defined meta:name="Info 1"/>
-                               <meta:user-defined meta:name="Info 2"/>
-                               <meta:user-defined meta:name="Info 3"/>
-                               <meta:user-defined meta:name="Info 4"/>
-                       </office:meta>
-                       <office:font-decls>
-                               <style:font-decl style:name="Tahoma1" 
fo:font-family="Tahoma"/>
-                               <style:font-decl style:name="Thorndale" 
fo:font-family="Thorndale" style:font-family-generic="roman" 
style:font-pitch="variable"/>
-                               <style:font-decl style:name="Albany" 
fo:font-family="Albany" style:font-family-generic="swiss" 
style:font-pitch="variable"/>
-                               <style:font-decl style:name="Andale Sans UI" 
fo:font-family="'Andale Sans UI'" style:font-family-generic="system" 
style:font-pitch="variable"/>
-                               <style:font-decl style:name="MS Mincho" 
fo:font-family="'MS Mincho'" style:font-family-generic="system" 
style:font-pitch="variable"/>
-                               <style:font-decl style:name="Tahoma" 
fo:font-family="Tahoma" style:font-family-generic="system" 
style:font-pitch="variable"/>
-                       </office:font-decls>
-                       <office:styles>
-                               <style:default-style style:family="graphics">
-                                       <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">
-                                               <style:tab-stops/>
-                                       </style:properties>
-                               </style:default-style>
-                               <style:default-style style:family="paragraph">
-                                       <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"/>
-                               </style:default-style>
-                               <style:default-style style:family="table">
-                                       <style:properties 
table:border-model="separating"/>
-                               </style:default-style>
-                               <style:default-style style:family="table-row">
-                                       <style:properties 
fo:keep-together="always"/>
-                               </style:default-style>
-                               <style:style style:name="Standard" 
style:family="paragraph" style:class="text"/>
-                               <style:style style:name="Text body" 
style:family="paragraph" style:parent-style-name="Standard" style:class="text">
-                                       <style:properties fo:margin-top="0cm" 
fo:margin-bottom="0.212cm"/>
-                               </style:style>
-                               <style:style style:name="Heading" 
style:family="paragraph" style:parent-style-name="Standard" 
style:next-style-name="Text body" style:class="text">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Heading 1" 
style:family="paragraph" style:parent-style-name="Heading" 
style:next-style-name="Text body" style:class="text">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Heading 2" 
style:family="paragraph" style:parent-style-name="Heading" 
style:next-style-name="Text body" style:class="text">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Heading 3" 
style:family="paragraph" style:parent-style-name="Heading" 
style:next-style-name="Text body" style:class="text">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Heading 4" 
style:family="paragraph" style:parent-style-name="Heading" 
style:next-style-name="Text body" style:class="text">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="List" 
style:family="paragraph" style:parent-style-name="Text body" style:class="list">
-                                       <style:properties 
style:font-name-complex="Tahoma1"/>
-                               </style:style>
-                               <style:style style:name="Table Contents" 
style:family="paragraph" style:parent-style-name="Text body" 
style:class="extra">
-                                       <style:properties 
text:number-lines="false" text:line-number="0"/>
-                               </style:style>
-                               <style:style style:name="Table Heading" 
style:family="paragraph" style:parent-style-name="Table Contents" 
style:class="extra">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Caption" 
style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Table" 
style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
-                               <style:style style:name="Frame contents" 
style:family="paragraph" style:parent-style-name="Text body" 
style:class="extra"/>
-                               <style:style style:name="Footnote" 
style:family="paragraph" style:parent-style-name="Standard" style:class="extra">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Index" 
style:family="paragraph" style:parent-style-name="Standard" style:class="index">
-                                       <style:properties 
text:number-lines="false" text:line-number="0" 
style:font-name-complex="Tahoma1"/>
-                               </style:style>
-                               <style:style style:name="Subtitle" 
style:family="paragraph" style:parent-style-name="Heading" 
style:next-style-name="Text body" style:class="chapter">
-                                       <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"/>
-                               </style:style>
-                               <style:style style:name="Mediaobject" 
style:family="paragraph" style:class="text"/>
-                               <style:style style:name="Object" 
style:family="paragraph" style:parent-style-name="Caption" style:class="extra"/>
-                               <style:style style:name="Section Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
-                               </style:style>
-                               <style:style style:name="Appendix Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
-                               </style:style>
-                               <style:style style:name="Section1 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
-                               </style:style>
-                               <style:style style:name="Section2 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="13pt"/>
-                               </style:style>
-                               <style:style style:name="Section3 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
-                               </style:style>
-                               <style:style style:name="Section4 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
-                               </style:style>
-                               <style:style style:name="Section5 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
-                                       <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
-                               </style:style>
-                               <style:style style:name="Document Title" 
style:family="paragraph" style:parent-style-name="Standard" 
style:next-style-name="Document SubTitle">
-                                       <style:properties 
fo:text-align="center" style:justify-single-word="false" fo:font-size="20pt"/>
-                               </style:style>
-                               <style:style style:name="Document SubTitle" 
style:family="paragraph" style:parent-style-name="Document Title" 
style:next-style-name="Text body">
-                                       <style:properties fo:font-size="14pt"/>
-                               </style:style>
-                               <style:style style:name="Section SubTitle" 
style:family="paragraph" style:parent-style-name="Section Title"/>
-                               <style:style style:name="CopyRight" 
style:family="paragraph" style:parent-style-name="Text body"/>
-                               <style:style style:name="VarList Item" 
style:family="paragraph" style:parent-style-name="Text body" 
style:list-style-name="Var List" style:class="text">
-                                       <style:properties fo:margin-left="3cm" 
fo:margin-right="0cm" fo:text-indent="0cm" style:auto-text-indent="false">
-                                               <style:tab-stops>
-                                                       <style:tab-stop 
style:position="0cm"/>
-                                               </style:tab-stops>
-                                       </style:properties>
-                               </style:style>
-                               <style:style style:name="VarList Term" 
style:family="paragraph" style:parent-style-name="Text body" 
style:list-style-name="Var List" style:class="text">
-                                       <style:properties fo:margin-left="1cm" 
fo:margin-right="0cm" fo:text-indent="-4.5cm" style:auto-text-indent="false">
-                                               <style:tab-stops>
-                                                       <style:tab-stop 
style:position="0cm"/>
-                                               </style:tab-stops>
-                                       </style:properties>
-                               </style:style>
-                               <style:style style:name="Footnote Symbol" 
style:family="text"/>
-                               <style:style style:name="Numbering Symbols" 
style:family="text"/>
-                               <style:style style:name="Bullet Symbols" 
style:family="text">
-                                       <style:properties fo:font-size="9pt" 
style:font-size-asian="9pt" style:font-size-complex="9pt"/>
-                               </style:style>
-                               <style:style style:name="Internet link" 
style:family="text">
-                                       <style:properties fo:color="#000080" 
style:text-underline-color="font-color" style:text-underline="single"/>
-                               </style:style>
-                               <style:style style:name="Endnote Symbol" 
style:family="text"/>
-                               <style:style style:name="Emphasis" 
style:family="text">
-                                       <style:properties 
fo:font-style="italic" style:font-style-asian="italic" 
style:font-style-complex="italic"/>
-                               </style:style>
-                               <style:style style:name="Source Text" 
style:family="text"/>
-                               <style:style style:name="Highlight" 
style:family="text">
-                                       <style:properties 
style:text-background-color="#fff000"/>
-                               </style:style>
-                               <style:style style:name="KeyCap" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="Command" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="Application" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="FileName" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="SuperScript" 
style:family="text">
-                                       <style:properties 
style:text-position="super 58%"/>
-                               </style:style>
-                               <style:style style:name="SubScript" 
style:family="text">
-                                       <style:properties 
style:text-position="sub 58%"/>
-                               </style:style>
-                               <style:style style:name="SystemItem" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="ComputerOutput" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="KeyCombo" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="KeySym" 
style:family="text">
-                                       <style:properties 
fo:font-weight="bold"/>
-                               </style:style>
-                               <style:style style:name="GuiMenu" 
style:family="text">
-                                       <style:properties fo:color="#000fff" 
fo:font-style="italic"/>
-                               </style:style>
-                               <style:style style:name="GuiSubMenu" 
style:family="text">
-                                       <style:properties fo:color="#ff9966" 
fo:font-style="italic"/>
-                               </style:style>
-                               <style:style style:name="GuiButton" 
style:family="text">
-                                       <style:properties fo:color="#00f0ff" 
fo:font-style="italic"/>
-                               </style:style>
-                               <style:style style:name="GuiMenuItem" 
style:family="text">
-                                       <style:properties fo:color="#00ffff" 
fo:font-style="italic"/>
-                               </style:style>
-                               <style:style style:name="GuiLabel" 
style:family="text">
-                                       <style:properties fo:color="#00777f" 
fo:font-style="italic"/>
-                               </style:style>
-                               <style:style style:name="Frame" 
style:family="graphics">
-                                       <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"/>
-                               </style:style>
-                               <text:outline-style>
-                                       <text:outline-level-style 
text:level="1" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="2" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="3" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="4" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="5" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="6" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="7" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="8" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="9" style:num-format=""/>
-                                       <text:outline-level-style 
text:level="10" style:num-format=""/>
-                               </text:outline-style>
-                               <text:list-style style:name="Ordered List">
-                                       <text:list-level-style-number 
text:level="1" text:style-name="Numbering Symbols" style:num-suffix="." 
style:num-format="1">
-                                               <style:properties 
text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="2" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="0.501cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="3" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="1cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="4" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="1.501cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="5" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="2cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="6" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="2.501cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="7" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="3.001cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="8" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="3.502cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="9" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="4.001cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                                       <text:list-level-style-number 
text:level="10" style:num-suffix="." style:num-format="1">
-                                               <style:properties 
text:space-before="4.502cm" text:min-label-width="0.499cm"/>
-                                       </text:list-level-style-number>
-                               </text:list-style>
-                               <text:list-style style:name="UnOrdered List">
-                                       <text:list-level-style-bullet 
text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
-                                               <style:properties 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="2" text:style-name="Bullet Symbols" text:bullet-char="•">
-                                               <style:properties 
text:space-before="0.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="1cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="1.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="2cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="6" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="2.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="7" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="3.001cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="8" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="3.502cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="9" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="4.001cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="10" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="4.502cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                               </text:list-style>
-                               <text:list-style style:name="Var List">
-                                       <text:list-level-style-bullet 
text:level="1" text:style-name="Bullet Symbols" text:bullet-char="•">
-                                               <style:properties 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="2" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="0.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="3" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="1cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="4" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="1.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="5" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="2cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="6" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="2.501cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="7" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="3.001cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="8" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="3.502cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="9" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="4.001cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                                       <text:list-level-style-bullet 
text:level="10" text:style-name="Bullet Symbols" style:num-suffix="." 
text:bullet-char="•">
-                                               <style:properties 
text:space-before="4.502cm" text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
-                                       </text:list-level-style-bullet>
-                               </text:list-style>
-                               <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"/>
-                               <text:endnotes-configuration 
text:citation-style-name="Endnote Symbol" text:master-page-name="Endnote" 
style:num-format="1" text:start-value="0"/>
-                               <text:linenumbering-configuration 
text:number-lines="false" text:offset="0.499cm" style:num-format="1" 
text:number-position="left" text:increment="5"/>
-                       </office:styles>
-                       <office:automatic-styles>
-                               <style:page-master style:name="pm1">
-                                       <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">
-                                               <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"/>
-                                       </style:properties>
-                                       <style:header-style/>
-                                       <style:footer-style/>
-                               </style:page-master>
-                               <style:page-master style:name="pm2">
-                                       <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">
-                                               <style:footnote-sep 
style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
-                                       </style:properties>
-                                       <style:header-style/>
-                                       <style:footer-style/>
-                               </style:page-master>
-                       </office:automatic-styles>
-                       <office:master-styles>
-                               <style:master-page style:name="Standard" 
style:page-master-name="pm1"/>
-                               <style:master-page style:name="Endnote" 
style:page-master-name="pm2"/>
-                       </office:master-styles>
-                       <office:body>
-                               <xsl:apply-templates/>
-                       </office:body>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="subtitle">
-               <xsl:choose>
-                       <xsl:when test="parent::table">
-                               <xsl:apply-templates/>
-                       </xsl:when>
-                       <xsl:when test="parent::informaltable">
-                               <xsl:apply-templates/>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:element name="text:p">
-                                       <xsl:attribute 
name="text:style-name">Section SubTitle</xsl:attribute>
-                               </xsl:element>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-
-
-
-
-       <xsl:template match="title">
-               <xsl:choose>
-                       <xsl:when test="parent::figure"></xsl:when>
-                       <xsl:when test="parent::table"></xsl:when>
-                       <xsl:when test="parent::sect1"></xsl:when>
-                       <xsl:when test="parent::sect2"></xsl:when>
-                       <xsl:when test="parent::sect3"></xsl:when>
-                       <xsl:when test="parent::sect4"></xsl:when>
-                       <xsl:when test="parent::sect5"></xsl:when>
-                       <xsl:when test="parent::informaltable">
-                               <xsl:apply-templates/>
-                       </xsl:when>
-
-                       <xsl:otherwise>
-                               <xsl:element name="text:p">
-                                       <xsl:choose>
-
-                                               <xsl:when 
test="parent::appendix">
-                                                       <xsl:attribute 
name="text:style-name">Appendix Title</xsl:attribute>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <xsl:apply-templates/>
-                               </xsl:element>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-
-       <xsl:template match="articleinfo">
-               <xsl:element name="text:section">
-                       <xsl:attribute 
name="text:style-name">ArticleInfo</xsl:attribute>
-                       <xsl:attribute 
name="text:name">ArticleInfo</xsl:attribute>
-                       <xsl:if test="/article/articleinfo/title !=''">
-                               <xsl:element name="text:p">
-                                       <xsl:attribute 
name="text:style-name">Document Title</xsl:attribute>
-                                       <xsl:value-of 
select="/article/articleinfo/title"/>
-                               </xsl:element>
-                               <xsl:if test="/article/articleinfo/subtitle 
!=''">
-                                       <xsl:element name="text:p">
-                                               <xsl:attribute 
name="text:style-name">Document SubTitle</xsl:attribute>
-                                               <xsl:value-of 
select="/article/articleinfo/subtitle"/>
-                                       </xsl:element>
-                               </xsl:if>
-                       </xsl:if>
-                       <xsl:apply-templates/>
-               </xsl:element>
-
-       </xsl:template>
-
-       <xsl:template match="appendix">
-               <xsl:element name="text:section">
-                       <xsl:attribute 
name="text:style-name">Appendix</xsl:attribute>
-                       <xsl:attribute name="text:name">Appendix</xsl:attribute>
-                       <xsl:apply-templates/>
-               </xsl:element>
-
-       </xsl:template>
+    <xsl:decimal-format name="staff" digit="D"/>
+    <xsl:template match="/">
+        <xsl:element name="office:document">
+            <office:meta>
+                <dc:title>
+                    <xsl:value-of select="/article/articleinfo/title"/>
+                </dc:title>
+                <dc:description></dc:description>
+                <dc:subject></dc:subject>
+                <dc:date>
+                    <xsl:value-of select="article/articleinfo/pubdate"/>
+                </dc:date>
+                <dc:language>
+                    <xsl:value-of select="article/@lang"/>
+                </dc:language>
+                <meta:user-defined meta:name="Info 1"/>
+                <meta:user-defined meta:name="Info 2"/>
+                <meta:user-defined meta:name="Info 3"/>
+                <meta:user-defined meta:name="Info 4"/>
+            </office:meta>
+            <office:font-decls>
+                <style:font-decl style:name="Tahoma1" fo:font-family="Tahoma"/>
+                <style:font-decl style:name="Thorndale" 
fo:font-family="Thorndale" style:font-family-generic="roman" 
style:font-pitch="variable"/>
+                <style:font-decl style:name="Albany" fo:font-family="Albany" 
style:font-family-generic="swiss" style:font-pitch="variable"/>
+                <style:font-decl style:name="Andale Sans UI" 
fo:font-family="'Andale Sans UI'" style:font-family-generic="system" 
style:font-pitch="variable"/>
+                <style:font-decl style:name="MS Mincho" fo:font-family="'MS 
Mincho'" style:font-family-generic="system" style:font-pitch="variable"/>
+                <style:font-decl style:name="Tahoma" fo:font-family="Tahoma" 
style:font-family-generic="system" style:font-pitch="variable"/>
+            </office:font-decls>
+            <office:styles>
+                <style:default-style style:family="graphics">
+                    <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">
+                        <style:tab-stops/>
+                    </style:properties>
+                </style:default-style>
+                <style:default-style style:family="paragraph">
+                    <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"/>
+                </style:default-style>
+                <style:default-style style:family="table">
+                    <style:properties table:border-model="separating"/>
+                </style:default-style>
+                <style:default-style style:family="table-row">
+                    <style:properties fo:keep-together="always"/>
+                </style:default-style>
+                <style:style style:name="Standard" style:family="paragraph" 
style:class="text"/>
+                <style:style style:name="Text body" style:family="paragraph" 
style:parent-style-name="Standard" style:class="text">
+                    <style:properties fo:margin-top="0cm" 
fo:margin-bottom="0.212cm"/>
+                </style:style>
+                <style:style style:name="Heading" style:family="paragraph" 
style:parent-style-name="Standard" style:next-style-name="Text body" 
style:class="text">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Heading 1" style:family="paragraph" 
style:parent-style-name="Heading" style:next-style-name="Text body" 
style:class="text">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Heading 2" style:family="paragraph" 
style:parent-style-name="Heading" style:next-style-name="Text body" 
style:class="text">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Heading 3" style:family="paragraph" 
style:parent-style-name="Heading" style:next-style-name="Text body" 
style:class="text">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Heading 4" style:family="paragraph" 
style:parent-style-name="Heading" style:next-style-name="Text body" 
style:class="text">
+                    <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"/>
+                </style:style>
+                <style:style style:name="List" style:family="paragraph" 
style:parent-style-name="Text body" style:class="list">
+                    <style:properties style:font-name-complex="Tahoma1"/>
+                </style:style>
+                <style:style style:name="Table Contents" 
style:family="paragraph" style:parent-style-name="Text body" 
style:class="extra">
+                    <style:properties text:number-lines="false" 
text:line-number="0"/>
+                </style:style>
+                <style:style style:name="Table Heading" 
style:family="paragraph" style:parent-style-name="Table Contents" 
style:class="extra">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Caption" style:family="paragraph" 
style:parent-style-name="Standard" style:class="extra">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Table" style:family="paragraph" 
style:parent-style-name="Caption" style:class="extra"/>
+                <style:style style:name="Frame contents" 
style:family="paragraph" style:parent-style-name="Text body" 
style:class="extra"/>
+                <style:style style:name="Footnote" style:family="paragraph" 
style:parent-style-name="Standard" style:class="extra">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Index" style:family="paragraph" 
style:parent-style-name="Standard" style:class="index">
+                    <style:properties text:number-lines="false" 
text:line-number="0" style:font-name-complex="Tahoma1"/>
+                </style:style>
+                <style:style style:name="Subtitle" style:family="paragraph" 
style:parent-style-name="Heading" style:next-style-name="Text body" 
style:class="chapter">
+                    <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"/>
+                </style:style>
+                <style:style style:name="Mediaobject" style:family="paragraph" 
style:class="text"/>
+                <style:style style:name="Object" style:family="paragraph" 
style:parent-style-name="Caption" style:class="extra"/>
+                <style:style style:name="Section Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
+                </style:style>
+                <style:style style:name="Appendix Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
+                </style:style>
+                <style:style style:name="Section1 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="14pt"/>
+                </style:style>
+                <style:style style:name="Section2 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="13pt"/>
+                </style:style>
+                <style:style style:name="Section3 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
+                </style:style>
+                <style:style style:name="Section4 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
+                </style:style>
+                <style:style style:name="Section5 Title" 
style:family="paragraph" style:next-style-name="Text body" 
style:master-page-name="">
+                    <style:properties fo:line-height="200%" 
fo:text-transform="capitalize" fo:font-size="12pt"/>
+                </style:style>
+                <style:style style:name="Document Title" 
style:family="paragraph" style:parent-style-name="Standard" 
style:next-style-name="Document SubTitle">
+                    <style:properties fo:text-align="center" 
style:justify-single-word="false" fo:font-size="20pt"/>
+                </style:style>
+                <style:style style:name="Document SubTitle" 
style:family="paragraph" style:parent-style-name="Document Title" 
style:next-style-name="Text body">
+                    <style:properties fo:font-size="14pt"/>
+                </style:style>
+                <style:style style:name="Section SubTitle" 
style:family="paragraph" style:parent-style-name="Section Title"/>
+                <style:style style:name="CopyRight" style:family="paragraph" 
style:parent-style-name="Text body"/>
+                <style:style style:name="VarList Item" 
style:family="paragraph" style:parent-style-name="Text body" 
style:list-style-name="Var List" style:class="text">
+                    <style:properties fo:margin-left="3cm" 
fo:margin-right="0cm" fo:text-indent="0cm" style:auto-text-indent="false">
+                        <style:tab-stops>
+                            <style:tab-stop style:position="0cm"/>
+                        </style:tab-stops>
+                    </style:properties>
+                </style:style>
+                <style:style style:name="VarList Term" 
style:family="paragraph" style:parent-style-name="Text body" 
style:list-style-name="Var List" style:class="text">
+                    <style:properties fo:margin-left="1cm" 
fo:margin-right="0cm" fo:text-indent="-4.5cm" style:auto-text-indent="false">
+                        <style:tab-stops>
+                            <style:tab-stop style:position="0cm"/>
+                        </style:tab-stops>
+                    </style:properties>
+                </style:style>
+                <style:style style:name="Footnote Symbol" style:family="text"/>
+                <style:style style:name="Numbering Symbols" 
style:family="text"/>
+                <style:style style:name="Bullet Symbols" style:family="text">
+                    <style:properties fo:font-size="9pt" 
style:font-size-asian="9pt" style:font-size-complex="9pt"/>
+                </style:style>
+                <style:style style:name="Internet link" style:family="text">
+                    <style:properties fo:color="#000080" 
style:text-underline-color="font-color" style:text-underline="single"/>
+                </style:style>
+                <style:style style:name="Endnote Symbol" style:family="text"/>
+                <style:style style:name="Emphasis" style:family="text">
+                    <style:properties fo:font-style="italic" 
style:font-style-asian="italic" style:font-style-complex="italic"/>
+                </style:style>
+                <style:style style:name="Source Text" style:family="text"/>
+                <style:style style:name="Highlight" style:family="text">
+                    <style:properties style:text-background-color="#fff000"/>
+                </style:style>
+                <style:style style:name="KeyCap" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="Command" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="Application" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="FileName" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="SuperScript" style:family="text">
+                    <style:properties style:text-position="super 58%"/>
+                </style:style>
+                <style:style style:name="SubScript" style:family="text">
+                    <style:properties style:text-position="sub 58%"/>
+                </style:style>
+                <style:style style:name="SystemItem" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="ComputerOutput" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="KeyCombo" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="KeySym" style:family="text">
+                    <style:properties fo:font-weight="bold"/>
+                </style:style>
+                <style:style style:name="GuiMenu" style:family="text">
+                    <style:properties fo:color="#000fff" 
fo:font-style="italic"/>
+                </style:style>
+                <style:style style:name="GuiSubMenu" style:family="text">
+                    <style:properties fo:color="#ff9966" 
fo:font-style="italic"/>
+                </style:style>
+                <style:style style:name="GuiButton" style:family="text">
+                    <style:properties fo:color="#00f0ff" 
fo:font-style="italic"/>
+                </style:style>
+                <style:style style:name="GuiMenuItem" style:family="text">
+                    <style:properties fo:color="#00ffff" 
fo:font-style="italic"/>
+                </style:style>
+                <style:style style:name="GuiLabel" style:family="text">
+                    <style:properties fo:color="#00777f" 
fo:font-style="italic"/>
+                </style:style>
+                <style:style style:name="Frame" style:family="graphics">
+                    <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"/>
+                </style:style>
+                <text:outline-style>
+                    <text:outline-level-style text:level="1" 
style:num-format=""/>
+                    <text:outline-level-style text:level="2" 
style:num-format=""/>
+                    <text:outline-level-style text:level="3" 
style:num-format=""/>
+                    <text:outline-level-style text:level="4" 
style:num-format=""/>
+                    <text:outline-level-style text:level="5" 
style:num-format=""/>
+                    <text:outline-level-style text:level="6" 
style:num-format=""/>
+                    <text:outline-level-style text:level="7" 
style:num-format=""/>
+                    <text:outline-level-style text:level="8" 
style:num-format=""/>
+                    <text:outline-level-style text:level="9" 
style:num-format=""/>
+                    <text:outline-level-style text:level="10" 
style:num-format=""/>
+                </text:outline-style>
+                <text:list-style style:name="Ordered List">
+                    <text:list-level-style-number text:level="1" 
text:style-name="Numbering Symbols" style:num-suffix="." style:num-format="1">
+                        <style:properties text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="2" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="0.501cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="3" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="1cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="4" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="1.501cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="5" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="2cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="6" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="2.501cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="7" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="3.001cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="8" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="3.502cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="9" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="4.001cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                    <text:list-level-style-number text:level="10" 
style:num-suffix="." style:num-format="1">
+                        <style:properties text:space-before="4.502cm" 
text:min-label-width="0.499cm"/>
+                    </text:list-level-style-number>
+                </text:list-style>
+                <text:list-style style:name="UnOrdered List">
+                    <text:list-level-style-bullet text:level="1" 
text:style-name="Bullet Symbols" text:bullet-char="•">
+                        <style:properties text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="2" 
text:style-name="Bullet Symbols" text:bullet-char="•">
+                        <style:properties text:space-before="0.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="3" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="1cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="4" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="1.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="5" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="2cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="6" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="2.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="7" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="3.001cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="8" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="3.502cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="9" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="4.001cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="10" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="4.502cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                </text:list-style>
+                <text:list-style style:name="Var List">
+                    <text:list-level-style-bullet text:level="1" 
text:style-name="Bullet Symbols" text:bullet-char="•">
+                        <style:properties text:min-label-width="0.499cm" 
fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="2" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="0.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="3" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="1cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="4" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="1.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="5" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="2cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="6" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="2.501cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="7" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="3.001cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="8" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="3.502cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="9" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="4.001cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                    <text:list-level-style-bullet text:level="10" 
text:style-name="Bullet Symbols" style:num-suffix="." text:bullet-char="•">
+                        <style:properties text:space-before="4.502cm" 
text:min-label-width="0.499cm" fo:font-family="StarSymbol" 
style:font-charset="x-symbol"/>
+                    </text:list-level-style-bullet>
+                </text:list-style>
+                <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"/>
+                <text:endnotes-configuration text:citation-style-name="Endnote 
Symbol" text:master-page-name="Endnote" style:num-format="1" 
text:start-value="0"/>
+                <text:linenumbering-configuration text:number-lines="false" 
text:offset="0.499cm" style:num-format="1" text:number-position="left" 
text:increment="5"/>
+            </office:styles>
+            <office:automatic-styles>
+                <style:page-master style:name="pm1">
+                    <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">
+                        <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"/>
+                    </style:properties>
+                    <style:header-style/>
+                    <style:footer-style/>
+                </style:page-master>
+                <style:page-master style:name="pm2">
+                    <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">
+                        <style:footnote-sep style:adjustment="left" 
style:rel-width="25%" style:color="#000000"/>
+                    </style:properties>
+                    <style:header-style/>
+                    <style:footer-style/>
+                </style:page-master>
+            </office:automatic-styles>
+            <office:master-styles>
+                <style:master-page style:name="Standard" 
style:page-master-name="pm1"/>
+                <style:master-page style:name="Endnote" 
style:page-master-name="pm2"/>
+            </office:master-styles>
+            <office:body>
+                <xsl:apply-templates/>
+            </office:body>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="subtitle">
+        <xsl:choose>
+            <xsl:when test="parent::table">
+                <xsl:apply-templates/>
+            </xsl:when>
+            <xsl:when test="parent::informaltable">
+                <xsl:apply-templates/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:element name="text:p">
+                    <xsl:attribute name="text:style-name">Section 
SubTitle</xsl:attribute>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+
+    <xsl:template match="title">
+        <xsl:choose>
+            <xsl:when test="parent::figure"></xsl:when>
+            <xsl:when test="parent::table"></xsl:when>
+            <xsl:when test="parent::sect1"></xsl:when>
+            <xsl:when test="parent::sect2"></xsl:when>
+            <xsl:when test="parent::sect3"></xsl:when>
+            <xsl:when test="parent::sect4"></xsl:when>
+            <xsl:when test="parent::sect5"></xsl:when>
+            <xsl:when test="parent::informaltable">
+                <xsl:apply-templates/>
+            </xsl:when>
+
+            <xsl:otherwise>
+                <xsl:element name="text:p">
+                    <xsl:choose>
+
+                        <xsl:when test="parent::appendix">
+                            <xsl:attribute name="text:style-name">Appendix 
Title</xsl:attribute>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="articleinfo">
+        <xsl:element name="text:section">
+            <xsl:attribute name="text:style-name">ArticleInfo</xsl:attribute>
+            <xsl:attribute name="text:name">ArticleInfo</xsl:attribute>
+            <xsl:if test="/article/articleinfo/title !=''">
+                <xsl:element name="text:p">
+                    <xsl:attribute name="text:style-name">Document 
Title</xsl:attribute>
+                    <xsl:value-of select="/article/articleinfo/title"/>
+                </xsl:element>
+                <xsl:if test="/article/articleinfo/subtitle !=''">
+                    <xsl:element name="text:p">
+                        <xsl:attribute name="text:style-name">Document 
SubTitle</xsl:attribute>
+                        <xsl:value-of select="/article/articleinfo/subtitle"/>
+                    </xsl:element>
+                </xsl:if>
+            </xsl:if>
+            <xsl:apply-templates/>
+        </xsl:element>
+
+    </xsl:template>
+
+    <xsl:template match="appendix">
+        <xsl:element name="text:section">
+            <xsl:attribute name="text:style-name">Appendix</xsl:attribute>
+            <xsl:attribute name="text:name">Appendix</xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+
+    </xsl:template>
 
 <!--
 <xsl:template match="author">
-       <xsl:apply-templates/>
+    <xsl:apply-templates/>
 </xsl:template>
 
 <xsl:template match="firstname">
-        <xsl:element name="text:variable-set">
-                <xsl:attribute name="text:name">
-                       <xsl:if test="ancestor::articleinfo/author">
-                               <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)"/>
-                       </xsl:if>
-               </xsl:attribute>
-               <xsl:apply-templates/>
-       </xsl:element>
+     <xsl:element name="text:variable-set">
+         <xsl:attribute name="text:name">
+            <xsl:if test="ancestor::articleinfo/author">
+                <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)"/>
+            </xsl:if>
+        </xsl:attribute>
+        <xsl:apply-templates/>
+    </xsl:element>
 
 </xsl:template>-->
 
-       <xsl:template match="articleinfo/title">
-       <!-- <xsl:element name="text:variable-decls">
-                               <xsl:element name="text:variable-decl">
-                                       <xsl:attribute name="text:value-type">
-                                               <xsl:text>string</xsl:text>
-                                        </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.title</xsl:text>
-                                       </xsl:attribute>
-                                </xsl:element>
-
-               </xsl:element>
-               <xsl:element name="text:p">
-        <xsl:element name="text:variable-set">
-               <xsl:attribute name="text:value-type">
-                                               <xsl:text>string</xsl:text>
-                                        </xsl:attribute>
-                <xsl:attribute name="text:name">
-                       <xsl:text 
disable-output-escaping="yes">articleinfo.title</xsl:text>
-               </xsl:attribute>
-               <xsl:apply-templates/>
-       </xsl:element>
-       </xsl:element>--></xsl:template>
-
-       <xsl:template match="articleinfo/subtitle">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="articleinfo/edition">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.edition</xsl:text>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.edition</xsl:text>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="articleinfo/releaseinfo">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::releaseinfo)"/>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::releaseinfo)"/>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-
-       <xsl:template match="author/firstname">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-
-                               <xsl:attribute name="text:name">
-                                       <xsl:if test="ancestor::articleinfo">
-                                               <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)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:if test="ancestor::articleinfo">
-                                               <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)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-
-
-       <xsl:template match="articleinfo/copyright/year">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-
-                               <xsl:attribute name="text:name">
-                                       <xsl:if 
test="ancestor::articleinfo/copyright">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.year_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::year)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:if 
test="ancestor::articleinfo/copyright">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.year_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::year)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="authorgroup">
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="articleinfo/copyright/holder">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-
-                               <xsl:attribute name="text:name">
-                                       <xsl:if 
test="ancestor::articleinfo/copyright">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.holder_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::holder)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:if 
test="ancestor::articleinfo/copyright">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.holder_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::holder)"/>
-                                       </xsl:if>
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-
-
-
-       <xsl:template name="affiliation">
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="author/affiliation/address">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
-                                       <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
-                                       <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
-                                       <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
-                                       <xsl:text 
disable-output-escaping="yes">.address_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::address)"/>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
-                                       <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
-                                       <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
-                                       <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
-                                       <xsl:text 
disable-output-escaping="yes">.address_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::address)"/>
-
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-       <xsl:template match="author/affiliation/orgname">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:if test="ancestor::articleinfo">
-                                       <xsl:attribute name="text:name">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
-                                               <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.orgname_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::orgname)"/>
-                                       </xsl:attribute>
-                               </xsl:if>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:if test="ancestor::articleinfo">
-                                       <xsl:attribute name="text:name">
-                                               <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
-                                               <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
-                                               <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
-                                               <xsl:text 
disable-output-escaping="yes">.orgname_</xsl:text>
-                                               <xsl:value-of 
select="count(preceding-sibling::orgname)"/>
-                                       </xsl:attribute>
-                               </xsl:if>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-
-
-       <xsl:template match="author/surname">
-               <xsl:element name="text:variable-decls">
-                       <xsl:element name="text:variable-decl">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-
-                               <xsl:attribute name="text:name">
-                                       <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">.surname_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::surname)"/>
-                               </xsl:attribute>
-                       </xsl:element>
-               </xsl:element>
-               <xsl:element name="text:p">
-                       <xsl:element name="text:variable-set">
-                               <xsl:attribute name="text:value-type">
-                                       <xsl:text>string</xsl:text>
-                               </xsl:attribute>
-                               <xsl:attribute name="text:name">
-                                       <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">.surname_</xsl:text>
-                                       <xsl:value-of 
select="count(preceding-sibling::surname)"/>
-
-
-                               </xsl:attribute>
-                               <xsl:apply-templates/>
-                       </xsl:element>
-               </xsl:element>
-       </xsl:template>
-
-
-
-
-
-       <xsl:template match="para">
-
-               <xsl:element name="text:p">
-
-                       <xsl:choose>
-                               <xsl:when test="ancestor-or-self::footnote">
-                                       <xsl:attribute 
name="text:style-name">Footnote</xsl:attribute>
-                               </xsl:when>
-                               <xsl:when test="ancestor-or-self::listitem">
-                                       <xsl:attribute 
name="text:style-name">VarList Item</xsl:attribute>
-                               </xsl:when>
-                               <xsl:when 
test="ancestor-or-self::informaltable">
-                                       <xsl:if 
test="ancestor-or-self::informaltable">
-                                               <xsl:attribute 
name="text:style-name">Table Contents</xsl:attribute>
-                                       </xsl:if>
-                                       <xsl:if test="ancestor-or-self::thead">
-                                               <xsl:attribute 
name="text:style-name">Table Heading</xsl:attribute>
-                                       </xsl:if>
-                               </xsl:when>
-                               <xsl:when test="ancestor-or-self::table">
-                                       <xsl:if test="ancestor-or-self::table">
-                                               <xsl:attribute 
name="text:style-name">Table Contents</xsl:attribute>
-                                       </xsl:if>
-                                       <xsl:if test="ancestor-or-self::thead">
-                                               <xsl:attribute 
name="text:style-name">Table Heading</xsl:attribute>
-                                       </xsl:if>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <xsl:attribute 
name="text:style-name">Text body</xsl:attribute>
-                               </xsl:otherwise>
-                       </xsl:choose>
-
-                       <xsl:apply-templates/>
-               </xsl:element>
-
-       </xsl:template>
-
-       <xsl:template match="section">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">
-                               <xsl:value-of 
select="count(ancestor-or-self::section)"/>
-                       </xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="abstract">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">1</xsl:attribute>
-                       <xsl:text>abstract</xsl:text>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-
-       <xsl:template match="appendix">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">1</xsl:attribute>
-                       <xsl:text>appendix</xsl:text>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="sect1">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">1</xsl:attribute>
-                       <xsl:attribute name="text:style-name">Heading 
1</xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="sect2">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">2</xsl:attribute>
-                       <xsl:attribute name="text:style-name">Heading 
2</xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="sect3">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">3</xsl:attribute>
-                       <xsl:attribute name="text:style-name">Heading 
3</xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="sect4">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">4</xsl:attribute>
-                       <xsl:attribute name="text:style-name">Heading 
4</xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="sect5">
-               <xsl:element name="text:h">
-                       <xsl:attribute name="text:level">5</xsl:attribute>
-                       <xsl:value-of select="child::title"/>
-               </xsl:element>
-               <xsl:apply-templates/>
-       </xsl:template>
+    <xsl:template match="articleinfo/title">
+    <!-- <xsl:element name="text:variable-decls">
+                <xsl:element name="text:variable-decl">
+                    <xsl:attribute name="text:value-type">
+                        <xsl:text>string</xsl:text>
+                     </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.title</xsl:text>
+                    </xsl:attribute>
+                 </xsl:element>
+
+        </xsl:element>
+        <xsl:element name="text:p">
+     <xsl:element name="text:variable-set">
+        <xsl:attribute name="text:value-type">
+                        <xsl:text>string</xsl:text>
+                     </xsl:attribute>
+         <xsl:attribute name="text:name">
+            <xsl:text 
disable-output-escaping="yes">articleinfo.title</xsl:text>
+        </xsl:attribute>
+        <xsl:apply-templates/>
+    </xsl:element>
+    </xsl:element>--></xsl:template>
+
+    <xsl:template match="articleinfo/subtitle">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.subtitle</xsl:text>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="articleinfo/edition">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.edition</xsl:text>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.edition</xsl:text>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="articleinfo/releaseinfo">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
+                    <xsl:value-of 
select="count(preceding-sibling::releaseinfo)"/>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.releaseinfo_</xsl:text>
+                    <xsl:value-of 
select="count(preceding-sibling::releaseinfo)"/>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+
+    <xsl:template match="author/firstname">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo">
+                        <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)"/>
+                    </xsl:if>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo">
+                        <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)"/>
+                    </xsl:if>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+
+
+    <xsl:template match="articleinfo/copyright/year">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo/copyright">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
+                        <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
+                        <xsl:text 
disable-output-escaping="yes">.year_</xsl:text>
+                        <xsl:value-of select="count(preceding-sibling::year)"/>
+                    </xsl:if>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo/copyright">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
+                        <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
+                        <xsl:text 
disable-output-escaping="yes">.year_</xsl:text>
+                        <xsl:value-of select="count(preceding-sibling::year)"/>
+                    </xsl:if>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="authorgroup">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="articleinfo/copyright/holder">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo/copyright">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
+                        <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
+                        <xsl:text 
disable-output-escaping="yes">.holder_</xsl:text>
+                        <xsl:value-of 
select="count(preceding-sibling::holder)"/>
+                    </xsl:if>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:if test="ancestor::articleinfo/copyright">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.copyright_</xsl:text>
+                        <xsl:value-of 
select="count(parent::copyright[preceding-sibling::copyright])"/>
+                        <xsl:text 
disable-output-escaping="yes">.holder_</xsl:text>
+                        <xsl:value-of 
select="count(preceding-sibling::holder)"/>
+                    </xsl:if>
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+
+
+
+    <xsl:template name="affiliation">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="author/affiliation/address">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
+                    <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
+                    <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
+                    <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
+                    <xsl:text 
disable-output-escaping="yes">.address_</xsl:text>
+                    <xsl:value-of select="count(preceding-sibling::address)"/>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
+                    <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
+                    <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
+                    <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
+                    <xsl:text 
disable-output-escaping="yes">.address_</xsl:text>
+                    <xsl:value-of select="count(preceding-sibling::address)"/>
+
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="author/affiliation/orgname">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:if test="ancestor::articleinfo">
+                    <xsl:attribute name="text:name">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
+                        <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
+                        <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
+                        <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
+                        <xsl:text 
disable-output-escaping="yes">.orgname_</xsl:text>
+                        <xsl:value-of 
select="count(preceding-sibling::orgname)"/>
+                    </xsl:attribute>
+                </xsl:if>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:if test="ancestor::articleinfo">
+                    <xsl:attribute name="text:name">
+                        <xsl:text 
disable-output-escaping="yes">articleinfo.author_</xsl:text>
+                        <xsl:value-of 
select="count(ancestor::author[preceding-sibling::author])"/>
+                        <xsl:text 
disable-output-escaping="yes">.affiliation_</xsl:text>
+                        <xsl:value-of 
select="count(parent::affiliation[preceding-sibling::affiliation])"/>
+                        <xsl:text 
disable-output-escaping="yes">.orgname_</xsl:text>
+                        <xsl:value-of 
select="count(preceding-sibling::orgname)"/>
+                    </xsl:attribute>
+                </xsl:if>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+
+
+    <xsl:template match="author/surname">
+        <xsl:element name="text:variable-decls">
+            <xsl:element name="text:variable-decl">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+
+                <xsl:attribute name="text:name">
+                    <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">.surname_</xsl:text>
+                    <xsl:value-of select="count(preceding-sibling::surname)"/>
+                </xsl:attribute>
+            </xsl:element>
+        </xsl:element>
+        <xsl:element name="text:p">
+            <xsl:element name="text:variable-set">
+                <xsl:attribute name="text:value-type">
+                    <xsl:text>string</xsl:text>
+                </xsl:attribute>
+                <xsl:attribute name="text:name">
+                    <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">.surname_</xsl:text>
+                    <xsl:value-of select="count(preceding-sibling::surname)"/>
+
+
+                </xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:element>
+    </xsl:template>
+
+
+
+
+
+    <xsl:template match="para">
+
+        <xsl:element name="text:p">
+
+            <xsl:choose>
+                <xsl:when test="ancestor-or-self::footnote">
+                    <xsl:attribute 
name="text:style-name">Footnote</xsl:attribute>
+                </xsl:when>
+                <xsl:when test="ancestor-or-self::listitem">
+                    <xsl:attribute name="text:style-name">VarList 
Item</xsl:attribute>
+                </xsl:when>
+                <xsl:when test="ancestor-or-self::informaltable">
+                    <xsl:if test="ancestor-or-self::informaltable">
+                        <xsl:attribute name="text:style-name">Table 
Contents</xsl:attribute>
+                    </xsl:if>
+                    <xsl:if test="ancestor-or-self::thead">
+                        <xsl:attribute name="text:style-name">Table 
Heading</xsl:attribute>
+                    </xsl:if>
+                </xsl:when>
+                <xsl:when test="ancestor-or-self::table">
+                    <xsl:if test="ancestor-or-self::table">
+                        <xsl:attribute name="text:style-name">Table 
Contents</xsl:attribute>
+                    </xsl:if>
+                    <xsl:if test="ancestor-or-self::thead">
+                        <xsl:attribute name="text:style-name">Table 
Heading</xsl:attribute>
+                    </xsl:if>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:attribute name="text:style-name">Text 
body</xsl:attribute>
+                </xsl:otherwise>
+            </xsl:choose>
+
+            <xsl:apply-templates/>
+        </xsl:element>
+
+    </xsl:template>
+
+    <xsl:template match="section">
+        <xsl:element name="text:h">
+            <xsl:attribute name="text:level">
+                <xsl:value-of select="count(ancestor-or-self::section)"/>
+            </xsl:attribute>
+            <xsl:value-of select="child::title"/>
+        </xsl:element>
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="abstract">
+        <xsl:element name="text:h">
+            <xsl:attribute name="text:level">1</xsl:attribute>
+            <xsl:text>abstract</xsl:text>
+        </xsl:element>
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="appendix">

... etc. - the rest is truncated
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to