From c8f4a4e69190d1f36a9a0bdb4e8410f43b5aef9c Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 3 Feb 2026 06:25:05 +1000 Subject: [PATCH] pre-commit trailing whitespace auto clean for XSL files The trailing-whitespace hook now targets XSL files. --- .pre-commit-config.yaml | 2 +- .../ratscan/scan/rat-output-to-html.xsl | 14 +- .../web/layouts/diagonal/index.html.xsl | 60 +- .../web/layouts/frame_bottom/index.html.xsl | 28 +- .../layouts/frame_bottom/tocframe.html.xsl | 66 +-- .../web/layouts/frame_left/index.html.xsl | 28 +- .../web/layouts/frame_left/tocframe.html.xsl | 64 +-- .../web/layouts/frame_right/index.html.xsl | 28 +- .../web/layouts/frame_right/tocframe.html.xsl | 68 +-- .../web/layouts/frame_top/index.html.xsl | 28 +- .../web/layouts/frame_top/tocframe.html.xsl | 60 +- .../misc_config/wizard/web/layouts/layout.xsl | 68 +-- .../wizard/web/layouts/layoutF.xsl | 42 +- .../wizard/web/layouts/layoutX.xsl | 126 ++--- .../wizard/web/layouts/simple/index.html.xsl | 76 +-- .../wizard/web/layouts/source.xml.xsl | 24 +- .../wizard/web/layouts/table_2/index.html.xsl | 130 ++--- .../wizard/web/layouts/table_3/index.html.xsl | 134 ++--- .../wizard/web/layouts/zigzag/index.html.xsl | 74 +-- .../source/config/fragments/langfilter.xsl | 10 +- .../source/docbook/docbooktosoffheadings.xsl | 8 +- .../source/docbook/sofftodocbookheadings.xsl | 28 +- main/filter/source/xslt/common/copy.xsl | 8 +- main/filter/source/xslt/common/math.xsl | 8 +- .../xslt/export/common/ooo2ms_docpr.xsl | 8 +- .../xslt/export/spreadsheetml/formular.xsl | 8 +- .../spreadsheetml/ooo2spreadsheetml.xsl | 8 +- .../export/spreadsheetml/style_mapping.xsl | 8 +- .../xslt/export/spreadsheetml/styles.xsl | 8 +- .../xslt/export/spreadsheetml/table.xsl | 8 +- .../xslt/export/uof/odf2uof_presentation.xsl | 30 +- .../source/xslt/export/uof2/odf2uof.xsl | 50 +- .../source/xslt/export/wordml/ooo2wordml.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_border.xsl | 8 +- .../export/wordml/ooo2wordml_custom_draw.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_draw.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_field.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_list.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_page.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_path.xsl | 8 +- .../export/wordml/ooo2wordml_settings.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_table.xsl | 8 +- .../xslt/export/wordml/ooo2wordml_text.xsl | 8 +- .../xslt/import/common/ms2ooo_docpr.xsl | 8 +- .../spreadsheetml/spreadsheetml2ooo.xsl | 8 +- .../source/xslt/import/uof2/uof2odf.xsl | 124 ++--- .../source/xslt/import/wordml/wordml2ooo.xsl | 8 +- .../import/wordml/wordml2ooo_custom_draw.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_draw.xsl | 44 +- .../xslt/import/wordml/wordml2ooo_field.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_list.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_page.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_path.xsl | 14 +- .../xslt/import/wordml/wordml2ooo_props.xsl | 16 +- .../import/wordml/wordml2ooo_settings.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_table.xsl | 8 +- .../xslt/import/wordml/wordml2ooo_text.xsl | 8 +- .../xslt/odf2xhtml/export/common/body.xsl | 2 +- .../export/common/styles/style_collector.xsl | 32 +- .../common/styles/style_mapping_css.xsl | 12 +- .../odf2xhtml/export/common/table/table.xsl | 8 +- .../export/common/table/table_cells.xsl | 8 +- .../export/common/table/table_columns.xsl | 8 +- .../export/common/table/table_rows.xsl | 8 +- .../export/common/table_of_content.xsl | 8 +- main/helpauthoring/filter/xmlhelp2soffice.xsl | 402 +++++++------- .../helpcontent2/source/auxiliary/default.xsl | 8 +- main/helpcontent2/source/auxiliary/index.xsl | 12 +- main/officecfg/util/alllang.xsl | 30 +- main/officecfg/util/data_val.xsl | 92 ++-- main/officecfg/util/resource.xsl | 12 +- main/officecfg/util/sanity.xsl | 12 +- main/officecfg/util/schema_trim.xsl | 16 +- main/officecfg/util/schema_val.xsl | 24 +- .../macosx/macosx_menubar_modification.xsl | 14 +- main/readlicense_oo/docs/readme/eval.xsl | 20 +- main/sd/xsl/effect.xsl | 176 +++--- main/solenv/bin/createcomponent.xslt | 8 +- main/solenv/bin/packcomponents.xslt | 8 +- main/solenv/bin/packregistry.xslt | 8 +- .../mediawiki/src/filter/odt2mediawiki.xsl | 518 +++++++++--------- main/writerfilter/source/dmapper/genclass.xsl | 38 +- main/writerfilter/source/doctok/WW8inc.xsl | 10 +- main/writerfilter/source/doctok/WW8sprms.xsl | 10 +- main/writerfilter/source/doctok/WW8xmi.xsl | 10 +- main/writerfilter/source/doctok/analyzer.xsl | 10 +- .../writerfilter/source/doctok/compactxmi.xsl | 20 +- main/writerfilter/source/doctok/escherdoc.xsl | 14 +- .../writerfilter/source/doctok/qnametostr.xsl | 10 +- .../source/doctok/resourceidmapper.xsl | 14 +- .../source/doctok/resourceidmapperback.xsl | 14 +- .../source/doctok/resourceids.xsl | 20 +- main/writerfilter/source/doctok/resources.xsl | 62 +-- .../source/doctok/resourcesimpl.xsl | 64 +-- .../source/doctok/resourcetools.xsl | 24 +- .../source/doctok/sprmcodetostr.xsl | 10 +- main/writerfilter/source/doctok/sprmids.xsl | 20 +- main/writerfilter/source/doctok/tidyxmi.xsl | 12 +- main/writerfilter/source/doctok/xmigen.xsl | 24 +- main/writerfilter/source/doctok/xmistat.xsl | 8 +- .../source/ooxml/analyzemodel.xsl | 16 +- .../source/ooxml/analyzestage2.xsl | 12 +- .../source/ooxml/analyzestage3.xsl | 16 +- main/writerfilter/source/ooxml/attrsprm.xsl | 22 +- main/writerfilter/source/ooxml/checkmodel.xsl | 16 +- .../source/ooxml/dummyannotate.xsl | 18 +- main/writerfilter/source/ooxml/effort.xsl | 14 +- main/writerfilter/source/ooxml/factory.xsl | 70 +-- main/writerfilter/source/ooxml/factory_ns.xsl | 76 +-- .../source/ooxml/factory_values.xsl | 72 +-- .../writerfilter/source/ooxml/factoryimpl.xsl | 116 ++-- .../source/ooxml/factoryimpl_ns.xsl | 124 ++--- .../source/ooxml/factoryimpl_values.xsl | 70 +-- main/writerfilter/source/ooxml/factoryinc.xsl | 68 +-- .../source/ooxml/factorytools.xsl | 98 ++-- main/writerfilter/source/ooxml/fasttokens.xsl | 68 +-- .../source/ooxml/gperffasttokenhandler.xsl | 68 +-- .../source/ooxml/modelcleanup.xsl | 54 +- .../source/ooxml/modelpreprocess.xsl | 72 +-- .../source/ooxml/namespaceids.xsl | 68 +-- main/writerfilter/source/ooxml/nostatus.xsl | 10 +- main/writerfilter/source/ooxml/qnametostr.xsl | 72 +-- .../writerfilter/source/ooxml/resourceids.xsl | 68 +-- main/writerfilter/source/ooxml/todo.xsl | 14 +- .../src/main/resources/htmltosoff.xsl | 60 +- .../src/main/resources/sofftohtml.xsl | 8 +- main/xmlhelp/util/embed.xsl | 24 +- main/xmlhelp/util/idxcaption.xsl | 10 +- main/xmlhelp/util/idxcontent.xsl | 10 +- .../openoffice/test/common/XMLReporter.xsl | 43 +- 130 files changed, 2486 insertions(+), 2487 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 48e8cbb585c..bc994521848 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,7 +64,7 @@ repos: files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$ - id: trailing-whitespace description: trims trailing whitespace - files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|ya?ml)$ + files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$ args: [--markdown-linebreak-ext=md] - repo: https://github.com/codespell-project/codespell rev: v2.4.1 diff --git a/ext_libraries/ratscan/scan/rat-output-to-html.xsl b/ext_libraries/ratscan/scan/rat-output-to-html.xsl index 9bd8e0afd5b..c51e5375eb8 100644 --- a/ext_libraries/ratscan/scan/rat-output-to-html.xsl +++ b/ext_libraries/ratscan/scan/rat-output-to-html.xsl @@ -1,7 +1,7 @@ @@ -73,7 +73,7 @@ caption {color:blue;text-align:left;}

Rat Report

This HTML version (yes, it is!) is generated from the RAT xml reports using Saxon9B. All the outputs required are displayed below, similar to the .txt version. This is obviously a work in progress; and a prettier, easier to read and manage version will be available soon

-
+
Table 1: A snapshot summary of this rat report. @@ -150,7 +150,7 @@ Table 1: A snapshot summary of this rat report.

Printing headers for files without AL header...

- +

@@ -166,7 +166,7 @@ Table 1: A snapshot summary of this rat report. --> - +
diff --git a/main/extras/source/misc_config/wizard/web/layouts/diagonal/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/diagonal/index.html.xsl index 915aa32882d..e4de8820272 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/diagonal/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/diagonal/index.html.xsl @@ -1,6 +1,6 @@ - - + - + - - + + - + - - + + - + - + - + - - @@ -81,31 +81,31 @@
- - + + - + - + - + - + - + - + - + - + - + - @@ -30,7 +30,7 @@ doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + - - + + @@ -59,14 +59,14 @@ - + - + @@ -87,5 +87,5 @@ </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_bottom/tocframe.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_bottom/tocframe.html.xsl index b0e3a430628..b211c1c78e1 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_bottom/tocframe.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_bottom/tocframe.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,30 +8,30 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -41,68 +41,68 @@ places... doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - - + + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <xsl:call-template name="toc"/> </xsl:template> - - + + <xsl:template name="toc"> <xsl:variable name="doc-count" select="count(/session/content/document)"/> - + <table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - - <tr> + + <tr> <td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle"> <xsl:value-of select="/session/general-info/@title"/> </td> </tr> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> - + <tr> <xsl:apply-templates select="/session/content/document"/> <td colspan="2"></td> </tr> </table> - + <!-- @ post toc HTML here --> - + <p class="colback"> </p> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> - + <!-- image cell --> - - <td width="50" height="200" align="center"> + + <td width="50" height="200" align="center"> <p> <xsl:apply-templates select="@icon"/> </p> </td> - + <td width="200"><p> - + <xsl:apply-templates select="@title"> <xsl:with-param name="target" select="'mainframe'"/> </xsl:apply-templates> - + <xsl:apply-templates select="@description"/> <xsl:apply-templates select="@author"/> <xsl:apply-templates select="@create-date"/> @@ -111,10 +111,10 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - - + + </p> </td> - + </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_left/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_left/index.html.xsl index 516eff7e81c..2e9f753479a 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_left/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_left/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,19 +8,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -30,7 +30,7 @@ doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <!-- ============================= ROOT @@ -43,13 +43,13 @@ <xsl:call-template name="frameset"/> </html> </xsl:template> - - + + <!-- ============================= HTML FRAMES ================================== --> - - + + <xsl:template name="frameset"> <frameset rows="*" cols="284,*" framespacing="0" frameborder="NO" border="0"> <frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/> @@ -59,14 +59,14 @@ <body> </body> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -87,5 +87,5 @@ </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_left/tocframe.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_left/tocframe.html.xsl index 6811119e1e4..ff8c23d56e0 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_left/tocframe.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_left/tocframe.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,30 +8,30 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -41,61 +41,61 @@ places... doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <xsl:call-template name="toc"/> </xsl:template> - - + + <xsl:template name="toc"> <table width="100%" height="654" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - - <tr> + + <tr> <td height="80" colspan="2" class="toctitle"> <xsl:value-of select="/session/general-info/@title"/> </td> </tr> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> - + <xsl:apply-templates select="/session/content/document"/> - + </table> - + <!-- @ post toc HTML here --> - + <p class="colback"> </p> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> - - <tr> - + + <tr> + <!-- image cell --> - - <td width="40" height="200" align="center" class="ccolor"> + + <td width="40" height="200" align="center" class="ccolor"> <p> <xsl:apply-templates select="@icon"/> </p> </td> - + <td><p> - + <xsl:apply-templates select="@title"> <xsl:with-param name="target" select="'mainframe'"/> </xsl:apply-templates> @@ -107,10 +107,10 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - + </p> </td> </tr> - + </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_right/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_right/index.html.xsl index b436e69855a..41ed7c23591 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_right/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_right/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,19 +8,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -30,7 +30,7 @@ doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <!-- ============================= ROOT @@ -43,13 +43,13 @@ <xsl:call-template name="frameset"/> </html> </xsl:template> - - + + <!-- ============================= HTML FRAMES ================================== --> - - + + <xsl:template name="frameset"> <frameset rows="*" cols="*,273" framespacing="0" frameborder="NO" border="0"> <frame src="mainframe.html" name="mainframe"/> @@ -59,14 +59,14 @@ <body> </body> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -87,5 +87,5 @@ </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_right/tocframe.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_right/tocframe.html.xsl index 3ea4bcd538b..4d256d18c77 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_right/tocframe.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_right/tocframe.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,30 +8,30 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -41,61 +41,61 @@ places... doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <xsl:call-template name="toc"/> </xsl:template> - - + + <xsl:template name="toc"> <table width="100%" height="654" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - - <tr> + + <tr> <td height="80" colspan="2" class="toctitle"> <xsl:value-of select="/session/general-info/@title"/> </td> </tr> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> - + <xsl:apply-templates select="/session/content/document"/> - + </table> - + <!-- @ post toc HTML here --> - + <p class="colback"> </p> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> - - <tr> - + + <tr> + <!-- image cell --> - - <td height="200" align="center" class="ccolor"> + + <td height="200" align="center" class="ccolor"> <p> <xsl:apply-templates select="@icon"/> </p> </td> - + <td width="200"><p> - + <xsl:apply-templates select="@title"> <xsl:with-param name="target" select="'mainframe'"/> </xsl:apply-templates> @@ -107,13 +107,13 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - + </p> </td> </tr> - + </xsl:template> - - - + + + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_top/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_top/index.html.xsl index 93306604801..266ba17d3f8 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_top/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_top/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,19 +8,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -30,7 +30,7 @@ doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <!-- ============================= ROOT @@ -43,13 +43,13 @@ <xsl:call-template name="frameset"/> </html> </xsl:template> - - + + <!-- ============================= HTML FRAMES ================================== --> - - + + <xsl:template name="frameset"> <frameset rows="281,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="tocframe.html" name="tocframe" scrolling="Auto" noresize=""/> @@ -59,14 +59,14 @@ <body> </body> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -87,5 +87,5 @@ </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/frame_top/tocframe.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/frame_top/tocframe.html.xsl index fec54773d33..4fa0795df2c 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/frame_top/tocframe.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/frame_top/tocframe.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,30 +8,30 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -44,60 +44,60 @@ places... <xsl:include href="../layout.xsl"/> - + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <xsl:call-template name="toc"/> </xsl:template> - - + + <xsl:template name="toc"> <xsl:variable name="doc-count" select="count(/session/content/document)"/> - + <table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - - <tr> + + <tr> <td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle"> <xsl:value-of select="/session/general-info/@title"/> </td> </tr> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> - + <tr> <xsl:apply-templates select="/session/content/document"/> <td colspan="2"></td> </tr> </table> - + <!-- @ post toc HTML here --> - + <p class="colback"> </p> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> - + <!-- image cell --> - - <td width="50" height="200" align="center"> + + <td width="50" height="200" align="center"> <p> <xsl:apply-templates select="@icon"/> </p> </td> - + <td width="200"><p> - + <xsl:apply-templates select="@title"> <xsl:with-param name="target" select="'mainframe'"/> </xsl:apply-templates> @@ -109,11 +109,11 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - + </p> </td> - + </xsl:template> - - + + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/layout.xsl b/main/extras/source/misc_config/wizard/web/layouts/layout.xsl index f12acb327ea..8f939803a51 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/layout.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/layout.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,42 +8,42 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> - + <xsl:output method = "html" media-type = "text/html" indent = "yes" doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" - standalone = "yes" /> - + standalone = "yes" /> + <!-- ============================= ROOT ================================== --> @@ -55,21 +55,21 @@ places... <xsl:call-template name="body"/> </html> </xsl:template> - - + + <!-- ============================= Document properties - + This section contains templates which give the document properties... - + ================================== --> - + <!-- this templates gives the relative href of the document. To use with the <a href="..."> attribute--> - - + + <xsl:template match="document" mode="href"> <xsl:value-of select="concat(../@directory,'/')"/> <xsl:if test="@dir"> @@ -77,29 +77,29 @@ places... </xsl:if> <xsl:value-of select="@fn"/> </xsl:template> - - + + <xsl:template match="document/@title"> <xsl:param name="target" select="''"/> - + <span class="doctitle"> <a> - <xsl:attribute name="href"> + <xsl:attribute name="href"> <xsl:apply-templates select=".." mode="href"/> </xsl:attribute> - + <xsl:if test=" $target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> - + <xsl:value-of select="."/> </a> </span> <br/> </xsl:template> - + <xsl:template match="document/@description"> <span class="docdescription"> @@ -107,7 +107,7 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@author"> <span class="docauthor"> @@ -115,7 +115,7 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@create-date"> <span class="doccreationdate"> @@ -123,7 +123,7 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@update-date"> <span class="doclastchangeddate"> @@ -131,7 +131,7 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@filename"> <span class="docfilename"> @@ -155,7 +155,7 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@size"> <span class="docsizeinkb"> @@ -163,19 +163,19 @@ places... </span> <br/> </xsl:template> - + <xsl:template match="document/@icon"> <img src="images/{.}"/> <br/> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -196,5 +196,5 @@ places... </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/layoutF.xsl b/main/extras/source/misc_config/wizard/web/layouts/layoutF.xsl index 7ee961eed62..2c838eff9f8 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/layoutF.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/layoutF.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,35 +8,35 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages with Frames : it generates the main index.html which contains the frameset. Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -46,9 +46,9 @@ places... doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - + <!-- ============================= ROOT @@ -61,39 +61,39 @@ places... <xsl:call-template name="frameset"/> </html> </xsl:template> - - + + <!-- ============================= HTML FRAMES ================================== --> - - + + <xsl:template name="frameset"> <!-- @ Add frameset here... - + the following noframes tag is naturally optional. --> - + <noframes/> - + <!-- the body tag has no influance here, we add it for good style. --> - + <body> </body> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -114,5 +114,5 @@ places... </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/layoutX.xsl b/main/extras/source/misc_config/wizard/web/layouts/layoutX.xsl index 27e7da1180b..7fb4d1b7031 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/layoutX.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/layoutX.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,34 +8,34 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> - + <xsl:output method = "html" media-type = "text/html" indent = "yes" doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - - + + <!-- ============================= ROOT ================================== --> @@ -47,52 +47,52 @@ <xsl:call-template name="body"/> </html> </xsl:template> - - + + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <body> <xsl:call-template name="title"/> <xsl:call-template name="toc"/> </body> </xsl:template> - - + + <xsl:template name="toc"> <!-- @ pre toc HTML here --> - + <!-- use this to group documents, it is for example useful when generating tables --> - + <xsl:variable name="group" select="3"/> - + <xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]"> - - <!-- + + <!-- @ pre group HTML here --> - + <xsl:call-template name="document-group"> <xsl:with-param name="group" select="$group"/> - </xsl:call-template> - + </xsl:call-template> + <!-- @ post group HTML here --> - + </xsl:for-each> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> - <!-- + <!-- <xsl:apply-templates select="/session/content/document"/> --> @@ -101,8 +101,8 @@ --> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> <xsl:apply-templates select="@title"/> @@ -115,56 +115,56 @@ <xsl:apply-templates select="@format-icon"/> <xsl:apply-templates select="@format-icon"/> </xsl:template> - - + + <xsl:template name="document-group"> <xsl:param name="group"/> - + <!-- @ pre group code here --> - + <!-- - - --> <xsl:variable name="count" select="(position() - 1) * $group + 1"/> - + <xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]"> - + <xsl:apply-templates select="."/> - + </xsl:for-each> - + <!-- @ post group code here --> - + <!-- - - --> - + </xsl:template> - + <xsl:template name="title"> <!-- @ Pre title HTML code here --> - + <xsl:value-of select="/session/general-info/@title"/> - + <!-- @ Post title html code here --> </xsl:template> - + <!-- ============================= Document properties - + This section contains templates which give the document properties... - + ================================== --> - + <!-- this templates gives the relative href of the document. To use with the <a href="..."> attribute--> - - + + <xsl:template match="document" mode="href"> <xsl:value-of select="concat(../@directory,'/')"/> <xsl:if test="@dir"> @@ -172,21 +172,21 @@ </xsl:if> <xsl:value-of select="@fn"/> </xsl:template> - - + + <xsl:template match="document/@title"> <span class="doctitle"> <a> - <xsl:attribute name="href"> + <xsl:attribute name="href"> <xsl:apply-templates select=".." mode="href"/> - </xsl:attribute> - + </xsl:attribute> + <xsl:value-of select="."/> </a> </span> <br/> </xsl:template> - + <xsl:template match="document/@description"> <span class="docdescription"> @@ -194,7 +194,7 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@author"> <span class="docauthor"> @@ -202,7 +202,7 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@create-date"> <span class="doccreationdate"> @@ -210,7 +210,7 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@update-date"> <span class="doclastchangeddate"> @@ -218,7 +218,7 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@filename"> <span class="docfilename"> @@ -242,7 +242,7 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@size"> <span class="docsizeinkb"> @@ -250,19 +250,19 @@ </span> <br/> </xsl:template> - + <xsl:template match="document/@icon"> <img src="images/{.}"/> <br/> </xsl:template> - + <!-- ============================= HTML HEAD - + this section should not be changed ================================== --> - + <xsl:template name="head"> <head> <title> @@ -283,5 +283,5 @@ </head> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl index 2e97fc04689..e1f537d7447 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/simple/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,73 +8,73 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> - + <xsl:output method = "html" media-type = "text/html" indent = "yes" doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - - + + <xsl:include href="../layout.xsl"/> - + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <body> - + <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor"> <xsl:call-template name="title"/> <xsl:call-template name="toc"/> - + </table> - + </body> </xsl:template> - - + + <xsl:template name="toc"> <!-- @ pre toc HTML here --> - <tr> + <tr> <td width="30" class="ccolor">  </td> <td> - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> <xsl:apply-templates select="/session/content/document"/> @@ -86,13 +86,13 @@ places... </tr> </xsl:template> - - <!-- also when using groups, in the end it comes + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> <p> <xsl:apply-templates select="@icon"/> - + <xsl:apply-templates select="@title"/> <xsl:apply-templates select="@description"/> <xsl:apply-templates select="@author"/> @@ -103,49 +103,49 @@ places... <xsl:apply-templates select="@format-icon"/> <xsl:apply-templates select="@format-icon"/> </p> - + <xsl:if test="position() < last()"> <hr/> </xsl:if> - + </xsl:template> - + <xsl:template name="document-group"> <xsl:param name="group"/> - + <!-- @ pre group code here --> - + <!-- - - --> <xsl:variable name="count" select="(position() - 1) * $group + 1"/> - + <xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]"> - + <xsl:apply-templates select="."/> - + </xsl:for-each> - + <!-- @ post group code here --> - + <!-- - - --> - + </xsl:template> - + <xsl:template name="title"> <!-- @ Pre title HTML code here --> - <tr> + <tr> <td height="80" colspan="2" class="toctitle"> <xsl:value-of select="/session/general-info/@title"/> - + <!-- @ Post title HTML code here --> </td> </tr> </xsl:template> - + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/source.xml.xsl b/main/extras/source/misc_config/wizard/web/layouts/source.xml.xsl index e67d275682a..42175fa4849 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/source.xml.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/source.xml.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,44 +8,44 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================= - + This templates creates a source.xml file which is identicall to the source xml tree used for the transformation. This is may be useful for deveopement/debugging of layouts. - + ==================================== --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:redirect="http://xml.apache.org/xalan/redirect" + xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect"> <xsl:output method="xml"/> - - + + <xsl:template match="/"> <xsl:apply-templates mode="copy"/> </xsl:template> - + <xsl:template match="@*|node()" mode="copy"> <xsl:copy> <xsl:apply-templates select="@*|node()" mode="copy"/> </xsl:copy> - </xsl:template> - + </xsl:template> + </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/table_2/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/table_2/index.html.xsl index 295bb21d02a..26e29a94475 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/table_2/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/table_2/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,28 +8,28 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -41,153 +41,153 @@ places... standalone = "yes" /> <xsl:include href="../layout.xsl"/> - - + + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> - + <body> - + <!-- @ pre code here --> - + <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - + <xsl:call-template name="title"/> - + <!-- @ inter code here --> <xsl:call-template name="toc"/> - + <!-- @ post code here --> - + </table> </body> - + </xsl:template> - - - - + + + + <xsl:template name="title"> <!-- @ Pre title HTML code here --> - <tr> + <tr> <td height="200%" colspan="7" class="toctitle"> - + <xsl:value-of select="/session/general-info/@title"/> - + <!-- @ Post title HTML code here --> - + </td> </tr> </xsl:template> - - + + <xsl:template name="toc"> <!-- @ pre toc HTML here --> <!-- - - --> - + <!-- use this to group documents, it is for example useful when generating tables --> - - - + + + <xsl:call-template name="toc-with-group"> <xsl:with-param name="group" select="2"/> </xsl:call-template> - - - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + + + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> <!-- <xsl:apply-templates select="/session/content/document"/> --> - + <!-- @ post toc HTML here --> - + <!-- - - --> </xsl:template> - + <xsl:template name="toc-with-group"> <xsl:param name="group"/> <xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]"> - + <xsl:call-template name="document-group"> <xsl:with-param name="group" select="$group"/> - </xsl:call-template> - + </xsl:call-template> + </xsl:for-each> </xsl:template> - + <xsl:template name="document-group"> <xsl:param name="group"/> - + <!-- @ pre group code here --> - - <tr> + + <tr> <td width="30" height="200" class="ccolor"></td> - + <!-- - - --> <xsl:variable name="count" select="(position() - 1) * $group + 1"/> - + <xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]"> - + <xsl:apply-templates select="."/> - + <xsl:if test="last()=1 and position()=last()"> <xsl:call-template name="empty-doc"/> </xsl:if> - + </xsl:for-each> - + <!-- @ post group code here --> - + <td colspan="2" class="ccolor"></td> </tr> - + <!-- - - --> - + </xsl:template> <xsl:template name="empty-doc"> <td width="50"> <p> </p></td> <td width="200"> <p> </p></td> </xsl:template> - - - <!-- also when using groups, in the end it comes + + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> - + <xsl:template match="document"> <!-- file format icon --> - + <td width="50"> <p> <xsl:apply-templates select="@icon"/> </p></td> - - <td width="200"> <p> - + + <td width="200"> <p> + <xsl:apply-templates select="@title"/> <xsl:apply-templates select="@description"/> <xsl:apply-templates select="@author"/> @@ -197,9 +197,9 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - + </p> </td> - + </xsl:template> </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/table_3/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/table_3/index.html.xsl index 66aaaa0bfc2..997c4e50447 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/table_3/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/table_3/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,28 +8,28 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... ====================================================== --> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> @@ -39,122 +39,122 @@ places... doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - - + + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> - + <body> - + <!-- @ pre code here --> - + <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor"> - + <xsl:call-template name="title"/> - + <!-- @ inter code here --> <xsl:call-template name="toc"/> - + <!-- @ post code here --> - + </table> </body> - + </xsl:template> - - - - + + + + <xsl:template name="title"> <!-- @ Pre title HTML code here --> - <tr> + <tr> <td height="200%" colspan="9" class="toctitle"> - + <xsl:value-of select="/session/general-info/@title"/> - + <!-- @ Post title HTML code here --> - + </td> </tr> </xsl:template> - - + + <xsl:template name="toc"> <!-- @ pre toc HTML here --> <!-- - - --> - + <!-- use this to group documents, it is for example useful when generating tables --> - - - + + + <xsl:call-template name="toc-with-group"> <xsl:with-param name="group" select="3"/> </xsl:call-template> - - - <!-- use this alternative if you do not need to use groups - (uncomment to use - and do not forget to comment the group + + + <!-- use this alternative if you do not need to use groups + (uncomment to use - and do not forget to comment the group option above...)--> <!-- <xsl:apply-templates select="/session/content/document"/> --> - + <!-- @ post toc HTML here --> - + <!-- - - --> </xsl:template> - + <xsl:template name="toc-with-group"> <xsl:param name="group"/> <xsl:for-each select="/session/content/document[ ( ( position() - 1 ) mod $group ) = 0 ]"> - + <xsl:call-template name="document-group"> <xsl:with-param name="group" select="$group"/> - </xsl:call-template> - + </xsl:call-template> + </xsl:for-each> </xsl:template> - + <xsl:template name="document-group"> <xsl:param name="group"/> - + <!-- @ pre group code here --> - - <tr> + + <tr> <td width="30" height="200" class="ccolor"></td> - + <!-- - - --> <xsl:variable name="count" select="(position() - 1) * $group + 1"/> - + <xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]"> - + <xsl:apply-templates select="."/> - + <xsl:choose> <xsl:when test="last()=1 and position()=last()"> <xsl:call-template name="empty-doc"/> @@ -163,37 +163,37 @@ places... <xsl:when test="last()=2 and position()=last()"> <xsl:call-template name="empty-doc"/> </xsl:when> - </xsl:choose> - + </xsl:choose> + </xsl:for-each> - + <!-- @ post group code here --> - + <td colspan="2" class="ccolor"></td> </tr> - + <!-- - - --> - + </xsl:template> <xsl:template name="empty-doc"> <td width="50"> <p> </p></td> <td width="200"> <p> </p></td> </xsl:template> - - - <!-- also when using groups, in the end it comes + + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> - + <xsl:template match="document"> <!-- file format icon --> - + <td width="50"> <p> <xsl:apply-templates select="@icon"/> </p></td> - - <td width="200"> <p> - + + <td width="200"> <p> + <xsl:apply-templates select="@title"/> <xsl:apply-templates select="@description"/> <xsl:apply-templates select="@author"/> @@ -203,9 +203,9 @@ places... <xsl:apply-templates select="@format"/> <xsl:apply-templates select="@pages"/> <xsl:apply-templates select="@size"/> - + </p> </td> - + </xsl:template> </xsl:stylesheet> diff --git a/main/extras/source/misc_config/wizard/web/layouts/zigzag/index.html.xsl b/main/extras/source/misc_config/wizard/web/layouts/zigzag/index.html.xsl index e92defaaca8..d69ef835fe6 100644 --- a/main/extras/source/misc_config/wizard/web/layouts/zigzag/index.html.xsl +++ b/main/extras/source/misc_config/wizard/web/layouts/zigzag/index.html.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,24 +8,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <!-- ================================================= -This template is a skeleton for single level TOC pages +This template is a skeleton for single level TOC pages Do not overwrite this ! copy it and complete the missing code. -I use the @ character wherever there is a missing code, so +I use the @ character wherever there is a missing code, so you can use a simple find to navigate and find the places... @@ -42,56 +42,56 @@ places... ]> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> - + <xsl:output method = "html" media-type = "text/html" indent = "yes" doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN" omit-xml-declaration = "yes" standalone = "yes" /> - + <xsl:include href="../layout.xsl"/> - + <!-- ============================= HTML BODY ================================== --> - + <xsl:template name="body"> <body> <xsl:call-template name="title"/> <xsl:call-template name="toc"/> </body> </xsl:template> - - + + <xsl:template name="toc"> <!-- @ pre toc HTML here --> - + <xsl:apply-templates select="/session/content/document"/> - + <!-- @ post toc HTML here --> - + </xsl:template> - - - - <!-- also when using groups, in the end it comes + + + + <!-- also when using groups, in the end it comes to this template, which is called for each document --> <xsl:template match="document"> - + <xsl:variable name="i" select="position() - 1"/> - + <xsl:variable name="x1"> <xsl:call-template name="x"/> </xsl:variable> - + <xsl:variable name="x" select="number($x1) + 50 "/> <xsl:variable name="y1"> @@ -99,7 +99,7 @@ places... </xsl:variable> <xsl:variable name="y" select="(floor($i div 3)) * 300 + number($y1) + 80 "/> - + <div style="position:absolute; padding:15px; left:{$x}px; top:{$y}px; width:170px; height:220px; z-index:1" class="tcolor"> <div align="center"> @@ -118,7 +118,7 @@ places... </div> </div> </xsl:template> - + <xsl:template name="x"> <xsl:variable name="i" select="position()"/> <xsl:choose> @@ -168,30 +168,30 @@ places... </xsl:otherwise> </xsl:choose> </xsl:template> - - + + <xsl:template name="document-group"> <xsl:param name="group"/> - + <!-- @ pre group code here --> - + <!-- - - --> <xsl:variable name="count" select="(position() - 1) * $group + 1"/> - + <xsl:for-each select="/session/content/document[$count <= position() and position() < ($count + $group)]"> - + <xsl:apply-templates select="."/> - + </xsl:for-each> - + <!-- @ post group code here --> - + <!-- - - --> - + </xsl:template> - + <xsl:template name="title"> <!-- @ Pre title HTML code here @@ -206,5 +206,5 @@ places... </div> </div> </xsl:template> - + </xsl:stylesheet> diff --git a/main/filter/source/config/fragments/langfilter.xsl b/main/filter/source/config/fragments/langfilter.xsl index 4f4bf0d8b66..fd4831a58ae 100644 --- a/main/filter/source/config/fragments/langfilter.xsl +++ b/main/filter/source/config/fragments/langfilter.xsl @@ -1,6 +1,6 @@ <?xml version='1.0' encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oor="http://openoffice.org/2001/registry"> <xsl:output method="xml" indent="yes" omit-xml-declaration="no" version="1.0" encoding="UTF-8"/> @@ -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/main/filter/source/docbook/docbooktosoffheadings.xsl b/main/filter/source/docbook/docbooktosoffheadings.xsl index 3e897b7cd16..798204fec50 100644 --- a/main/filter/source/docbook/docbooktosoffheadings.xsl +++ b/main/filter/source/docbook/docbooktosoffheadings.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/docbook/sofftodocbookheadings.xsl b/main/filter/source/docbook/sofftodocbookheadings.xsl index 2f0fc2378d8..4c29c2640a3 100644 --- a/main/filter/source/docbook/sofftodocbookheadings.xsl +++ b/main/filter/source/docbook/sofftodocbookheadings.xsl @@ -1,6 +1,6 @@ <?xml version='1.0' encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -120,24 +120,24 @@ <xsl:element name="article"> <xsl:attribute name="lang"> <xsl:value-of select="/*/office:meta/dc:language"/> - </xsl:attribute> + </xsl:attribute> <!-- page style header --> <xsl:call-template name="page-style"> <xsl:with-param name="area" select="'header'"/> - </xsl:call-template> - <xsl:apply-templates select="office:body"/> + </xsl:call-template> + <xsl:apply-templates select="office:body"/> <!-- page style footer --> <xsl:call-template name="page-style"/> </xsl:element> </xsl:template> - - + + <xsl:key match="style:master-page" name="styleMasterPage" use="@style:name" /> <!-- using a simple heuristic for "standard" page-style heading/footer from page styles --> <xsl:template name="page-style"> <xsl:param name="area"/> - - <xsl:variable name="defaultPageStyle" select="key('styleMasterPage', 'Standard')"/> + + <xsl:variable name="defaultPageStyle" select="key('styleMasterPage', 'Standard')"/> <xsl:choose> <xsl:when test="$area = 'header'"> <xsl:apply-templates select="$defaultPageStyle/style:header/*"/> @@ -146,7 +146,7 @@ <xsl:apply-templates select="$defaultPageStyle/style:footer/*"/> </xsl:otherwise> </xsl:choose> - + </xsl:template> <xsl:template match="office:body"> @@ -235,8 +235,8 @@ <!-- ID have to be an NCName which have to start with a letter or '_' in case of the frequent starting number a '_' will be added as prefix --> <xsl:choose> - <xsl:when test="(starts-with(@text:name, '0') or - starts-with(@text:name, '1') or + <xsl:when test="(starts-with(@text:name, '0') or + starts-with(@text:name, '1') or starts-with(@text:name, '2') or starts-with(@text:name, '3') or starts-with(@text:name, '4') or diff --git a/main/filter/source/xslt/common/copy.xsl b/main/filter/source/xslt/common/copy.xsl index f09b7d6ab09..743380045b3 100644 --- a/main/filter/source/xslt/common/copy.xsl +++ b/main/filter/source/xslt/common/copy.xsl @@ -1,6 +1,6 @@ <?xml version='1.0' encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8"/> diff --git a/main/filter/source/xslt/common/math.xsl b/main/filter/source/xslt/common/math.xsl index d87feaf3c58..4f14ae9d400 100644 --- a/main/filter/source/xslt/common/math.xsl +++ b/main/filter/source/xslt/common/math.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/common/ooo2ms_docpr.xsl b/main/filter/source/xslt/export/common/ooo2ms_docpr.xsl index 0991e30febd..35ddcf60ac8 100644 --- a/main/filter/source/xslt/export/common/ooo2ms_docpr.xsl +++ b/main/filter/source/xslt/export/common/ooo2ms_docpr.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/spreadsheetml/formular.xsl b/main/filter/source/xslt/export/spreadsheetml/formular.xsl index de271a16a3e..8342a5b75c0 100644 --- a/main/filter/source/xslt/export/spreadsheetml/formular.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/formular.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl b/main/filter/source/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl index ad4be4d2ea8..800b6050bbb 100644 --- a/main/filter/source/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/ooo2spreadsheetml.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/spreadsheetml/style_mapping.xsl b/main/filter/source/xslt/export/spreadsheetml/style_mapping.xsl index b549a370d47..0d23967ea4b 100644 --- a/main/filter/source/xslt/export/spreadsheetml/style_mapping.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/style_mapping.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/spreadsheetml/styles.xsl b/main/filter/source/xslt/export/spreadsheetml/styles.xsl index 53d07c04ab9..4d6cb435d98 100644 --- a/main/filter/source/xslt/export/spreadsheetml/styles.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/styles.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/spreadsheetml/table.xsl b/main/filter/source/xslt/export/spreadsheetml/table.xsl index 6bb9740cc08..b74adba8b87 100644 --- a/main/filter/source/xslt/export/spreadsheetml/table.xsl +++ b/main/filter/source/xslt/export/spreadsheetml/table.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/uof/odf2uof_presentation.xsl b/main/filter/source/xslt/export/uof/odf2uof_presentation.xsl index a1217a9a6d6..c96d1ad5c48 100644 --- a/main/filter/source/xslt/export/uof/odf2uof_presentation.xsl +++ b/main/filter/source/xslt/export/uof/odf2uof_presentation.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:图="http://schemas.uof.org/cn/2003/graph" exclude-result-prefixes="office style text table draw fo xlink dc meta number presentation svg chart dr3d math form script config ooo ooow oooc dom xforms smil anim"> <xsl:output method="xml" indent="no" encoding="UTF-8" version="1.0" standalone="no" omit-xml-declaration="no"/> @@ -48,7 +48,7 @@ <xsl:apply-templates select="office:document"/> </xsl:template> <xsl:template match="office:document"> - <uof:UOF xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:图="http://schemas.uof.org/cn/2003/graph" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uof:language="cn" uof:version="1.0" uof:locID="u0000" uof:mimetype="vnd.uof.presentation"> + <uof:UOF xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:图="http://schemas.uof.org/cn/2003/graph" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uof:language="cn" uof:version="1.0" uof:locID="u0000" uof:mimetype="vnd.uof.presentation"> <xsl:apply-templates select="office:meta"/> <xsl:if test="//text:bookmark|//text:bookmark-start"> <uof:书签集 uof:locID="u0027"> @@ -246,7 +246,7 @@ <xsl:element name="uof:句式样"> <xsl:attribute name="uof:locID">u0043</xsl:attribute> <xsl:attribute name="uof:attrList">标识符 名称 类型 别名 基式样引用</xsl:attribute> - <xsl:variable name="count"><xsl:value-of select="count(preceding::node())"/></xsl:variable> + <xsl:variable name="count"><xsl:value-of select="count(preceding::node())"/></xsl:variable> <xsl:attribute name="字:标识符"><xsl:value-of select="concat('ID',$count)"/></xsl:attribute> <xsl:attribute name="字:名称"><xsl:value-of select="concat(ancestor::style:style/@style:name,@text:level)"/></xsl:attribute> <xsl:attribute name="字:类型">auto</xsl:attribute> @@ -316,7 +316,7 @@ </xsl:element> </演:文本式样> </xsl:if> - </xsl:for-each> + </xsl:for-each> </演:文本式样集> </xsl:if> <演:显示比例 uof:locID="p0020"> @@ -431,7 +431,7 @@ <xsl:when test="@draw:name"><xsl:value-of select="@draw:name"/></xsl:when> <xsl:otherwise><xsl:value-of select="@draw:style-name"/></xsl:otherwise> </xsl:choose> - + </xsl:attribute> <xsl:for-each select="/office:document/office:automatic-styles/style:style[@style:name = $page-name]"> <xsl:attribute name="演:名称"><xsl:value-of select="@style:name"/></xsl:attribute> @@ -778,7 +778,7 @@ </xsl:variable> <xsl:for-each select="/office:document/*/style:style[@style:name=$stylename]/style:drawing-page-properties"> <xsl:if test="@draw:fill and not(@draw:fill='none')"> - <演:背景 uof:locID="p0057"> + <演:背景 uof:locID="p0057"> <xsl:call-template name="填充"> <xsl:with-param name="picname" select="$stylename"/> <xsl:with-param name="nodename" select="$name"/> @@ -2113,10 +2113,10 @@ <xsl:variable name="transparency"> <xsl:value-of select="substring-before(style:graphic-properties/@svg:stroke-opacity,'%')"/> </xsl:variable> - <xsl:value-of select="(100 - $transparency) div 100"/> + <xsl:value-of select="(100 - $transparency) div 100"/> </xsl:when> <xsl:when test="style:properties/@svg:stroke-opacity"> - <xsl:value-of select="substring-before(style:properties/@svg:stroke-opacity,'%')"/> + <xsl:value-of select="substring-before(style:properties/@svg:stroke-opacity,'%')"/> </xsl:when> </xsl:choose> </图:透明度> @@ -2171,7 +2171,7 @@ </图:属性> </图:预定义图形> </xsl:when> - </xsl:choose> + </xsl:choose> <xsl:if test="./text:p or ./draw:text-box"> <图:文本内容 uof:locID="g0002" uof:attrList="文本框 左边距 右边距 上边距 下边距 水平对齐 垂直对齐 文字排列方向 自动换行 大小适应文字 前一链接 后一链接"> <xsl:if test="$nodename='draw:text-box'"> @@ -2587,7 +2587,7 @@ <xsl:attribute name="uof:locID">t0123</xsl:attribute> </xsl:element> </xsl:when> - <xsl:when test="name(.)='text:bookmark-start' or name(.)='text:bookmark-end' or name(.)='draw:image' or name(.)='office:binary-data'"> + <xsl:when test="name(.)='text:bookmark-start' or name(.)='text:bookmark-end' or name(.)='draw:image' or name(.)='office:binary-data'"> </xsl:when> <xsl:otherwise> <字:文本串 uof:locID="t0109" uof:attrList="udsPath"> @@ -2708,7 +2708,7 @@ </xsl:for-each> <xsl:if test="@style:name='Heading'"> <xsl:element name="字:大纲级别"> - <xsl:attribute name="uof:locID">t0054</xsl:attribute> + <xsl:attribute name="uof:locID">t0054</xsl:attribute> <xsl:value-of select="substring-after(@style:name,'Heading')"/> </xsl:element> </xsl:if> @@ -2898,7 +2898,7 @@ </xsl:if> <xsl:if test=".//style:tab-stops"> <xsl:element name="字:制表位设置"> - <xsl:attribute name="uof:locID">t0067</xsl:attribute> + <xsl:attribute name="uof:locID">t0067</xsl:attribute> <xsl:for-each select=".//style:tab-stops/style:tab-stop"> <xsl:element name="字:制表位"> <xsl:attribute name="uof:locID">t0068</xsl:attribute> diff --git a/main/filter/source/xslt/export/uof2/odf2uof.xsl b/main/filter/source/xslt/export/uof2/odf2uof.xsl index 04001502b56..f56d7e87d17 100644 --- a/main/filter/source/xslt/export/uof2/odf2uof.xsl +++ b/main/filter/source/xslt/export/uof2/odf2uof.xsl @@ -1,21 +1,21 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!--/************************************************************** * -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. * +<!--/************************************************************** * +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. * *************************************************************/--> <!--MARKER(update_precomp.py): autogen include statement, do not remove--> <!--This file is about the conversion of the UOF v2.0 and ODF document format--> @@ -100,7 +100,7 @@ <pzip:target pzip:path="uof.xml"> <uof:UOF_0000 language_0002="cn" version_0003="2.0"> <xsl:attribute name="mimetype_0001"><xsl:choose><xsl:when test="$documentType='presentation'">vnd.uof.presentation</xsl:when><xsl:when test="$documentType='spreadsheet'">vnd.uof.spreadsheet</xsl:when><xsl:otherwise>vnd.uof.text</xsl:otherwise></xsl:choose></xsl:attribute> - + <!--BEGIN "文档标识"、"基式样引用"属性暂时未使用--> <!-- <xsl:attribute name="文档标识"/> @@ -2288,7 +2288,7 @@ </xsl:call-template> </xsl:otherwise> </xsl:choose> - + </xsl:template> <xsl:template name="字:编号格式表示-list"> <xsl:variable name="jibie"> @@ -5368,7 +5368,7 @@ <!-- default-style 转为默认式样 故此处可不添加 <xsl:for-each select="/office:document/office:styles/style:default-style[@style:family='graphic']/style:text-properties"> <xsl:copy-of select="."/> - + </xsl:for-each> --> </xsl:element> @@ -5866,7 +5866,7 @@ <xsl:variable name="rowStyleName" select="./@table:style-name"/> <xsl:element name="字:表行属性_41BD"> <xsl:for-each select="key('RowStyle',$rowStyleName)/style:table-row-properties[@style:row-height or @style:min-row-height]"> - + <xsl:variable name="style_name"> <xsl:variable name="bb"> <xsl:for-each select="../preceding-sibling::*[@style:family = 'table-row']"> @@ -6813,12 +6813,12 @@ </xsl:template> <xsl:template match="text:tab"> <xsl:element name="字:制表符_415E"> - + </xsl:element> </xsl:template> <xsl:template match="text:line-break"> <xsl:element name="字:换行符_415F"> - + </xsl:element> </xsl:template> <xsl:template match="text:use-soft-page-breaks"> @@ -11237,7 +11237,7 @@ </xsl:variable> <xsl:variable name="TableName" select="$tablelist[position() = $tableNumber]/@table:name"/> <xsl:value-of select="concat($TableName,'.',$ColumnNum,' ',$RowNum)"/> - + </xsl:when> <xsl:otherwise> <xsl:call-template name="search-right-bottom-condition-format"> @@ -13528,7 +13528,7 @@ <xsl:attribute name="表:式样引用"><xsl:value-of select="$defaultCellStyle/uof:tempTree[((number(uof:columnNumber) + number(uof:repeated)) = $columnPos) or ((number(uof:columnNumber) + number(uof:repeated)) > $columnPos)]/uof:defaultCellStyleName"/></xsl:attribute> </xsl:when> </xsl:choose> - + <表:合并_E7AF> <xsl:if test="@table:number-columns-spanned > 1"> <表:列数_E7B0> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml.xsl index 9532e331e54..245f9a67292 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_border.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_border.xsl index c7783ba6d16..5b2238e930a 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_border.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_border.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_custom_draw.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_custom_draw.xsl index d95b40f6f40..c9f6b067462 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_custom_draw.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_custom_draw.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_draw.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_draw.xsl index 6602fed46e6..9150fd68542 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_draw.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_draw.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_field.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_field.xsl index 6909b71aa07..0f4880e95e4 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_field.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_field.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_list.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_list.xsl index fca95619652..0398ca7afb7 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_list.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_list.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_page.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_page.xsl index 442a3e9b53f..7613f2e5314 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_page.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_page.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_path.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_path.xsl index c52f73e14e9..cceb3eeaef0 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_path.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_path.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl index 8b0c46fff5d..c93f8114fe3 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_settings.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_table.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_table.xsl index 0299936d97b..fdf2e998e37 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_table.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_table.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/export/wordml/ooo2wordml_text.xsl b/main/filter/source/xslt/export/wordml/ooo2wordml_text.xsl index 2ca16a02bbe..838d1458a48 100644 --- a/main/filter/source/xslt/export/wordml/ooo2wordml_text.xsl +++ b/main/filter/source/xslt/export/wordml/ooo2wordml_text.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/common/ms2ooo_docpr.xsl b/main/filter/source/xslt/import/common/ms2ooo_docpr.xsl index 695b54e4dfd..2e068f201b4 100644 --- a/main/filter/source/xslt/import/common/ms2ooo_docpr.xsl +++ b/main/filter/source/xslt/import/common/ms2ooo_docpr.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl b/main/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl index fea1af2aea5..d73ff59c187 100644 --- a/main/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl +++ b/main/filter/source/xslt/import/spreadsheetml/spreadsheetml2ooo.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/uof2/uof2odf.xsl b/main/filter/source/xslt/import/uof2/uof2odf.xsl index 17c4e3e36db..7ffdd5c3ebf 100644 --- a/main/filter/source/xslt/import/uof2/uof2odf.xsl +++ b/main/filter/source/xslt/import/uof2/uof2odf.xsl @@ -1,21 +1,21 @@ <?xml version="1.0" encoding="UTF-8"?> -<!--/************************************************************** * -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. * +<!--/************************************************************** * +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. * *************************************************************/--> <!--MARKER(update_precomp.py): autogen include statement, do not remove--> <!--//This file is about the conversion of the UOF v2.0 and ODF document format--> @@ -701,7 +701,7 @@ <xsl:param name="aType"/> <xsl:param name="aSize"/> <xsl:choose> - <!-- alert starting + <!-- alert starting <xsl:when test="$aType = 'double' or $aType = 'thick-between-thin'"> <xsl:variable name="widths" select="number($aSize) div 3"/> <xsl:value-of select="concat(format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'), $uofUnit)"/> @@ -733,7 +733,7 @@ <xsl:param name="pDiagon1"/> <xsl:param name="pDiagon2"/> <xsl:if test="$pUp"> - <!-- + <!-- <xsl:variable name="type" select="$pUp/@uof:线型"/>--> <xsl:variable name="type"> <xsl:choose> @@ -747,7 +747,7 @@ </xsl:variable> <xsl:variable name="size" select="concat($pUp/@宽度_C60F,$uofUnit,' ')"/> <xsl:variable name="clr" select="$pUp/@颜色_C611"/> - <!-- alert staring + <!-- alert staring <xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(string($pUp/@边距_C610),$uofUnit)"/></xsl:attribute>--> <xsl:if test="$pUp/@边距_C610"> <xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(string($pUp/@边距_C610),$uofUnit)"/></xsl:attribute> @@ -2748,7 +2748,7 @@ </xsl:element> </xsl:template> <xsl:template match="字:是否取消断字_4192" mode="paragraph"> - <!-- alert staring + <!-- alert staring <xsl:attribute name="fo:hyphenation-ladder-count">no-limit</xsl:attribute> <xsl:attribute name="fo:hyphenation-remain-char-count">2</xsl:attribute> <xsl:attribute name="fo:hyphenation-push-char-count">2</xsl:attribute> @@ -2769,7 +2769,7 @@ <xsl:attribute name="text:number-lines"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute> </xsl:template> <xsl:template match="字:是否允许单词断字_4194" mode="paragraph"> - <!-- alert staring + <!-- alert staring <xsl:attribute name="style:word-wrap"> <xsl:choose> <xsl:when test="string(.) = 'true'">true</xsl:when> @@ -3529,7 +3529,7 @@ <xsl:choose> <xsl:when test="字:左/字:绝对"> <xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(字:左/字:绝对/@字:值,$uofUnit)"/></xsl:attribute> - </xsl:when> + </xsl:when> <xsl:when test="字:左/字:相对"> <xsl:variable name="a1"> <xsl:value-of select="字:左/字:相对/@字:值"/> @@ -3853,7 +3853,7 @@ <xsl:variable name="reltblw"> <xsl:value-of select="@相对宽度_41C0"/> </xsl:variable> - <!-- alert staring + <!-- alert staring <xsl:variable name="pagew"> <xsl:for-each select="key('textTable',../@标识符_4100)"> <xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:纸张_41EC/@宽_C605"/> @@ -4210,7 +4210,7 @@ <xsl:for-each select="*"> <xsl:choose> <xsl:when test="name(.)='字:宽度_41A1'"> - <!-- alert staring + <!-- alert staring <xsl:apply-templates select="." mode="texttable"/>--> <xsl:apply-templates select="." mode="texttable"> <xsl:with-param name="tableAlign" select="../字:对齐_41C3"/> @@ -4740,19 +4740,19 @@ </xsl:when> <xsl:when test="self::node()[name(.)='字:单元格边距']"> - + </xsl:when> <xsl:when test="self::node()[name(.)='字:边框']"> - + </xsl:when> <xsl:when test="self::node()[name(.)='字:填充']"> - + </xsl:when> <xsl:when test="self::node()[name(.)='字:垂直对齐方式']"> <xsl:attribute name="style:vertical-align"><xsl:choose><xsl:when test="self::node()='center' ">middle</xsl:when><xsl:when test="self::node()='bottom' ">bottom</xsl:when><xsl:otherwise>top</xsl:otherwise></xsl:choose></xsl:attribute> </xsl:when> <xsl:when test="self::node()[name(.)='字:跨行']"> - + </xsl:when> <xsl:when test="self::node()[name(.)='字:跨列']"> @@ -4761,7 +4761,7 @@ <xsl:apply-templates select="."/> </xsl:when> <xsl:when test="self::node()[name(.)='字:适应文字']"> - + </xsl:when> <xsl:when test="self::node()[name(.)='字:斜线表头']"> @@ -5069,16 +5069,16 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:if test="$textanchor/../演:背景/图:颜色"> <xsl:attribute name="draw:fill">solid</xsl:attribute> - <xsl:attribute name="draw:fill-color"><xsl:value-of select="$textanchor/../演:背景/图:颜色"/></xsl:attribute> + <xsl:attribute name="draw:fill-color"><xsl:value-of select="$textanchor/../演:背景/图:颜色"/></xsl:attribute> </xsl:if> </xsl:when> <xsl:otherwise> - <xsl:attribute name="draw:fill">none</xsl:attribute> + <xsl:attribute name="draw:fill">none</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> - <xsl:attribute name="draw:fill">none</xsl:attribute> + <xsl:attribute name="draw:fill">none</xsl:attribute> </xsl:otherwise> </xsl:choose>--> </xsl:if> @@ -5511,7 +5511,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg </xsl:choose> </xsl:when> <xsl:otherwise> - <!-- alert starting + <!-- alert starting <xsl:attribute name="style:family">graphic</xsl:attribute> alert ending. --> <!--<xsl:for-each select="$textanchor">--> @@ -6199,7 +6199,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:variable name="graphid" select="ancestor::图:图形_8062/@标识符_804B"/> <xsl:variable name="sd-placeholder" select="key('rel_graphic_name',$graphid)/uof:占位符_C626/@类型_C627"/> <xsl:choose> - <!-- alert staring + <!-- alert staring <xsl:when test="$sd-placeholder = 'date' and contains(.,'<日期/时间>')"> <xsl:value-of select="replace(.,'<日期/时间>','')" disable-output-escaping="yes"/> </xsl:when> @@ -6354,7 +6354,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg </xsl:choose> </xsl:template> <xsl:template match="字:引文符号_4164"> - + </xsl:template> <xsl:template name="TextHyperlinkStart"> <xsl:variable name="textastart"> @@ -6798,7 +6798,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:when test="count(字:句_419D) = 0"> <xsl:value-of select="'true'"/> </xsl:when> - <!-- alert staring + <!-- alert staring <xsl:otherwise> <xsl:apply-templates select="字:句_419D[1]" mode="IsEmpty"/> </xsl:otherwise> @@ -7033,7 +7033,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:apply-templates select="."/> </xsl:when> <xsl:otherwise> - + </xsl:otherwise> </xsl:choose> </xsl:for-each> @@ -7230,7 +7230,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <!-- don't process this node here--> </xsl:when> <xsl:when test="name(.)='字:逻辑章节_421C'"> - + </xsl:when> <xsl:when test="name(.)='字:段落_416B'"> <xsl:apply-templates select="."/> @@ -7542,7 +7542,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <!--<xsl:template name="TimeTransform"> <xsl:param name="str1"/> <xsl:choose> - + <xsl:when test="substring($str1,1,5)='am/pm'"> <xsl:variable name="str1-before" select="substring($str1,1,5)"/> <xsl:variable name="str1-after" select="substring($str1,6)"/> @@ -7617,7 +7617,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:template name="DateTimeTransform"> <xsl:param name="str1"/> <xsl:choose> - + <xsl:when test="substring($str1,1,5)='am/pm'"> <xsl:variable name="str1-before" select="substring($str1,1,5)"/> <xsl:variable name="str1-after" select="substring($str1,6)"/> @@ -7875,7 +7875,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <!-- <xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1][@类型_416E = 'numpages']/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/> <xsl:variable name="datestr" select="substring-before(following-sibling::字:域代码_419F[1][@类型_416E = 'numpages']/字:段落_416B/字:句_419D/字:文本串_415B,'\* ')"/> - + <xsl:variable name="fmt"> <xsl:call-template name="NumFormat"> <xsl:with-param name="oo_format" select="substring-before($date0,' \*')"/> @@ -8340,9 +8340,9 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:call-template name="AuthorField"/> </text:span> </xsl:when> - <xsl:when test="@类型_416E='username'"> + <xsl:when test="@类型_416E='username'"> </xsl:when> - <xsl:when test="@类型_416E='userinitials'"> + <xsl:when test="@类型_416E='userinitials'"> </xsl:when> <xsl:when test="@类型_416E='title'"> <text:span> @@ -8392,7 +8392,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:call-template name="PlaceholderField"/> </text:span> </xsl:when> - <xsl:when test="@类型_416E='dropdown'"> + <xsl:when test="@类型_416E='dropdown'"> </xsl:when> <xsl:when test="@类型_416E='REF'"> <text:span> @@ -8889,7 +8889,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:value-of select="@图形引用_C62E"/> </xsl:variable> <xsl:if test="../演:动画_6B1A/演:序列_6B1B[@对象引用_6C28 = $tuxing]"> - + <xsl:attribute name="draw:id"><xsl:value-of select="$tuxing"/></xsl:attribute> </xsl:if> </xsl:template> @@ -9541,7 +9541,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:param name="refobject"/> <xsl:attribute name="xlink:href"><xsl:variable name="path"><xsl:value-of select="$refobject/对象:路径_D703"/></xsl:variable><xsl:choose><xsl:when test="starts-with( $path,'/data')"><xsl:value-of select="replace($refobject/对象:路径_D703,'/data','Pictures')"/></xsl:when><xsl:otherwise><xsl:choose><!--'/' is for maybe absolute path--><xsl:when test="starts-with($path,'.') or starts-with($path,'/')"><xsl:value-of select="$path"/></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="substring($path,2,1)=':'"><xsl:value-of select="concat( '/',$path)"/></xsl:when><xsl:otherwise><xsl:value-of select="$path"/></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute> </xsl:template> - + <xsl:template name="DrawFrame"> <xsl:param name="picstyle"/> <xsl:element name="draw:frame"> @@ -9628,9 +9628,9 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:attribute name="xlink:show"> <xsl:value-of select="$embed"/> </xsl:attribute> - </xsl:otherwise> + </xsl:otherwise> </xsl:choose> - </xsl:element> + </xsl:element> </xsl:if> <xsl:if test="($document_type = 'presentation') and (name() = 'uof:锚点_C644')"> <xsl:if test="not($picstyle/图:其他对象引用_8038)"> @@ -11797,9 +11797,9 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:attribute name="config:type">boolean</xsl:attribute> <xsl:choose> <xsl:when test="表:当前视图/@表:类型='normal'">false</xsl:when> - + <xsl:when test="表:当前视图/@表:类型='page'">true</xsl:when> - + <xsl:otherwise>true</xsl:otherwise> </xsl:choose> </xsl:element> @@ -12271,7 +12271,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:element name="style:region-right"> <!--<xsl:element name="text:p"> <xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/> - + </xsl:element>--> <xsl:apply-templates select="./字:段落_416B"/> </xsl:element> @@ -12280,7 +12280,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:element name="style:region-left"> <!--<xsl:element name="text:p"> <xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/> - + </xsl:element>--> <xsl:apply-templates select="./字:段落_416B"/> </xsl:element> @@ -13689,7 +13689,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg </xsl:for-each> </xsl:when> <xsl:otherwise> - <xsl:for-each select="../../表:坐标轴_E791[@子类型_E793!=(current()/../@子类型_E793)]/表:刻度_E71D"> + <xsl:for-each select="../../表:坐标轴_E791[@子类型_E793!=(current()/../@子类型_E793)]/表:刻度_E71D"> <xsl:if test="表:交叉点_E723 !=''"> <xsl:attribute name="chart:axis-position" select="表:交叉点_E723"/> </xsl:if> @@ -14052,7 +14052,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg </xsl:for-each> <xsl:for-each select="*"> <xsl:apply-templates select="." mode="chartstyle"/> - <!--表:图表区_E743|表:绘图区_E747|表:图例_E794|表:数据表_E79B|表:标题_E70A|表:背景墙_E7A1|表:基底_E7A4 + <!--表:图表区_E743|表:绘图区_E747|表:图例_E794|表:数据表_E79B|表:标题_E70A|表:背景墙_E7A1|表:基底_E7A4 待转 空白单元格绘制方式 是否显示隐藏单元格--> </xsl:for-each> </office:automatic-styles> @@ -14473,7 +14473,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:value-of select="concat((number($ChartSize/@长_C604) - number(../../表:图例_E794/表:大小_E748/@宽_C605)) * 0.8,$uofUnit)"/> </xsl:when> <xsl:otherwise> - + <xsl:value-of select="concat(number($ChartSize/@长_C604)*0.8,$uofUnit)"/> </xsl:otherwise> </xsl:choose> @@ -14484,7 +14484,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:value-of select="concat(表:大小_E748/@长_C604,$uofUnit)"/> </xsl:when> <xsl:otherwise> - + <xsl:value-of select="concat(number($ChartSize/@宽_C605)*0.7,$uofUnit)"/> </xsl:otherwise> </xsl:choose> @@ -17424,11 +17424,11 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg <xsl:choose> <xsl:when test="@uof:目标 = @uof:书签"> <xsl:if test="key('bookmark', @uof:书签)/uof:命名表达式/@uof:区域引用"> - <xsl:value-of select="key('bookmark', @uof:书签)/uof:命名表达式/@uof:区域引用"/> - </xsl:if> + <xsl:value-of select="key('bookmark', @uof:书签)/uof:命名表达式/@uof:区域引用"/> + </xsl:if> </xsl:when> <xsl:otherwise> - <xsl:value-of select="@uof:目标"/> + <xsl:value-of select="@uof:目标"/> </xsl:otherwise> </xsl:choose> </xsl:variable> @@ -17452,8 +17452,8 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kg </xsl:matching-substring> </xsl:analyze-string> </xsl:if> - </xsl:for-each> - </table:named-expressions> + </xsl:for-each> + </table:named-expressions> </xsl:template> --> <xsl:template match="书签:书签集_9104" mode="table"> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo.xsl index 1f4b1fb4632..57c25c981ca 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_custom_draw.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_custom_draw.xsl index 750e43e7f72..0d7811b9ead 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_custom_draw.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_custom_draw.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_draw.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_draw.xsl index 4d46a8214e0..964f57779d9 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_draw.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_draw.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -27,7 +27,7 @@ <xsl:param name="oleExtractor" as="java:com.sun.star.comp.xsltfilter.XSLTFilterOLEExtracter" select="ole:new()"/> <xsl:param name="XMultiServiceFactory" as="java:com.sun.star.lang.XMultiServiceFactory" select="ole:init($oleExtractor, 'uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager')"/> - + <xsl:key name="imagedata" match="w:binData" use="@w:name"/> <xsl:key name="shapetype" match="v:shapetype" use="concat('#', @id)"/> <xsl:template match="v:fill" mode="get-xsl-number"> @@ -213,9 +213,9 @@ <xsl:with-param name="namenumber" select="concat('markerend',$stroke-num)"/> </xsl:call-template> </xsl:if> - <!--<v:stroke dashstyle="1 1" startarrow="diamond" startarrowwidth="wide" startarrowlength="long" endarrow="block" + <!--<v:stroke dashstyle="1 1" startarrow="diamond" startarrowwidth="wide" startarrowlength="long" endarrow="block" endarrowwidth="wide" endarrowlength="long" endcap="round"/> - <draw:stroke-dash draw:name="2 2dots 1 dash" draw:style="rect" draw:dots1="2" draw:dots2="1" draw:dots2-length="0.0795in" + <draw:stroke-dash draw:name="2 2dots 1 dash" draw:style="rect" draw:dots1="2" draw:dots2="1" draw:dots2-length="0.0795in" draw:distance="0.102in"/> Hehe,It need to be revised--> </xsl:if> @@ -593,9 +593,9 @@ </xsl:call-template> </xsl:attribute> <xsl:attribute name="draw:ole-draw-aspect"> - <!-- DVASPECT_CONTENT = 1, - DVASPECT_THUMBNAIL = 2, - DVASPECT_ICON = 4, + <!-- DVASPECT_CONTENT = 1, + DVASPECT_THUMBNAIL = 2, + DVASPECT_ICON = 4, DVASPECT_DOCPRINT = 8 --> <xsl:variable name="ms-aspect" select="parent::w:pict/o:OLEObject/@DrawAspect"/> <xsl:choose> @@ -1522,7 +1522,7 @@ </xsl:if> </xsl:variable> <!--the following choose statement code will process the revised modifier - It happens that if a drawing elements has more than 2 modifier, the modifier (or say adj + It happens that if a drawing elements has more than 2 modifier, the modifier (or say adj in wordml) can be adjusted and only the modified adj is recorded. what makes it more complicated is that adj support both comma and blanks. so you have to use kickblanks template to kick the blanks and change it to comma version. @@ -1643,8 +1643,8 @@ <oleextracter:init UNOURL="uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="ole:init($oleExtractor, 'uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager')"/> - </xsl:otherwise> + <xsl:value-of select="ole:init($oleExtractor, 'uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager')"/> + </xsl:otherwise> </xsl:choose> <xsl:apply-templates select="w:binData[@w:name='oledata.mso']" mode="oledata.mso"/> </xsl:template> @@ -1657,24 +1657,24 @@ <xsl:variable name="tmp" select="oleextracter:insertByName('oledata.mso', translate(text(),' ','' ) )"/> </xsl:when> <xsl:otherwise>--> - <xsl:variable name="tmp" select="ole:insertByName($oleExtractor,'oledata.mso', translate(text(),' ','' ) )"/> - <!-- </xsl:otherwise> - </xsl:choose> --> + <xsl:variable name="tmp" select="ole:insertByName($oleExtractor,'oledata.mso', translate(text(),' ','' ) )"/> + <!-- </xsl:otherwise> + </xsl:choose> --> </xsl:template> <xsl:template match="o:OLEObject " mode="output"> <!-- depends on i43230,we can uncomment this code or find another way after i43230 got fixed --> <draw:object-ole> <xsl:element name="office:binary-data"> - <!-- + <!-- <xsl:choose> <xsl:when test="element-available('oleextracter:getByName')"> <xsl:value-of select="translate(oleextracter:getByName(@ObjectID),' ','')"/> </xsl:when> <xsl:otherwise> --> - <xsl:value-of select="translate(ole:getByName($oleExtractor,@ObjectID),' ','')"/> - <!-- - </xsl:otherwise> - </xsl:choose> --> + <xsl:value-of select="translate(ole:getByName($oleExtractor,@ObjectID),' ','')"/> + <!-- + </xsl:otherwise> + </xsl:choose> --> </xsl:element> </draw:object-ole> </xsl:template> @@ -1774,7 +1774,7 @@ </xsl:template> <xsl:template match="v:shapetype" mode="output"> <xsl:param name="instance" select="''"/> - <!--#Dummy after version 1.63 The following test is for the adj attribute of the file. It is Dummy now. + <!--#Dummy after version 1.63 The following test is for the adj attribute of the file. It is Dummy now. <xsl:if test="not($instance/@adj)"> <xsl:if test="contains(@adj,',')">--> <!--Please Note that the modifier can be more than 2 , so use a translate can be more efficient. diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_field.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_field.xsl index bd52941f100..da3d591d761 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_field.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_field.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_list.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_list.xsl index 34dbcea3c70..b3bf104744a 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_list.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_list.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_page.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_page.xsl index 3f7826f7579..09d964dd0df 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_page.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_page.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_path.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_path.xsl index 0cc1c869b9c..03ab76013a6 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_path.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_path.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -585,7 +585,7 @@ </xsl:otherwise> </xsl:choose> </xsl:template> - <!-- + <!-- **Template vmlpath2enhancedpath** The template is responsible for converting the vml-path to enhanced-path, because the svg:path can't support command a now.(But heard that will be supported in OOo3.0) @@ -983,7 +983,7 @@ <!--The following is 6 command which deal with arcs: ae ->T al -> U at -> A ar -> B - wa -> W wr ->V + wa -> W wr ->V These pairs of commands have shown the perfect mapping from vml-path to enhanced-path--> <xsl:when test="$command = 'ae' "> <!-- arc on the screen with the start and end angles --> @@ -1497,7 +1497,7 @@ we here implictly think the command is the last-command All of the command of vml is listed as following: __Basic commands:__ - m l c x e t r v nf ns ae al at ar wa wr qx qy qb + m l c x e t r v nf ns ae al at ar wa wr qx qy qb __Edit behavior extensions commands__ ha hb hc hd he hf hg hh hi diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_props.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_props.xsl index 428f6ce9456..c9b1fbcb125 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_props.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_props.xsl @@ -1,6 +1,6 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="w wx aml o dt v" xmlns:an="urn:flr:annotate"> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <an:page-layout-properties @@ -124,7 +124,7 @@ </xsl:choose> </xsl:attribute> -<xsl:if test="not(w:cols/w:col)"> +<xsl:if test="not(w:cols/w:col)"> <!-- bug in the OASIS spec resp. bug in xmloff --> <xsl:attribute name="fo:column-gap"> <xsl:value-of select="concat(w:cols/@w:space div 567.0, 'cm')"/> @@ -132,7 +132,7 @@ </xsl:if> <xsl:for-each select="w:cols/w:col"> - <style:column> + <style:column> <xsl:attribute name="style:rel-width"> <xsl:value-of select="concat(@w:w, '*')"/> </xsl:attribute> @@ -147,12 +147,12 @@ <xsl:otherwise>0cm</xsl:otherwise> </xsl:choose> </xsl:attribute> - </style:column> + </style:column> </xsl:for-each> </style:columns> </xsl:template> -<an:text-properties +<an:text-properties context-node-input="w:rPr" context-node-output="style:text-properties"> </an:text-properties > diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_settings.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_settings.xsl index 9baddf91310..e2f8d48d7f4 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_settings.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_settings.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_table.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_table.xsl index 24ccdbc2779..23a17c36593 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_table.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_table.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/import/wordml/wordml2ooo_text.xsl b/main/filter/source/xslt/import/wordml/wordml2ooo_text.xsl index e72fe067594..1690729a09e 100644 --- a/main/filter/source/xslt/import/wordml/wordml2ooo_text.xsl +++ b/main/filter/source/xslt/import/wordml/wordml2ooo_text.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/body.xsl b/main/filter/source/xslt/odf2xhtml/export/common/body.xsl index 74f1c675e1f..4113bc1939f 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -172,7 +172,7 @@ </xsl:choose> </xsl:attribute> </xsl:template> - + <xsl:template match="text:sequence"> <xsl:param name="globalData"/> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/styles/style_collector.xsl b/main/filter/source/xslt/odf2xhtml/export/common/styles/style_collector.xsl index bca39a06775..879372a1b61 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/styles/style_collector.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/styles/style_collector.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -663,7 +663,7 @@ <xsl:template name="writeUsedStyles"> <xsl:param name="globalData" /> <xsl:param name="style"/> - + <!-- for-each changes the key environment from the previously globalData back to the document root --> <xsl:for-each select="$documentRoot"> <!-- only styles, which are used in the content are written as CSS styles --> @@ -684,7 +684,7 @@ <xsl:with-param name="globalData" select="$globalData" /> <xsl:with-param name="style" select="$style" /> </xsl:call-template> - </xsl:if> + </xsl:if> </xsl:when> <xsl:otherwise> <xsl:for-each select="document($stylesFileURL)"> @@ -702,8 +702,8 @@ </xsl:otherwise> </xsl:choose> </xsl:for-each> - </xsl:template> - + </xsl:template> + <xsl:template name="writeUsedStyles2"> <xsl:param name="globalData" /> <xsl:param name="style"/> @@ -711,7 +711,7 @@ <xsl:when test=" $style/@style:family='paragraph' and(( - ( + ( $style/*/@fo:border-top or $style/*/@fo:border-bottom or $style/*/@fo:border @@ -724,14 +724,14 @@ ) or ( - ( + ( $style/*/@fo:margin-top or $style/*/@fo:margin-bottom or $style/*/@fo:margin ) and ( $style/*/@fo:background-color - and + and not($style/*/fo:background-color='transparent') ) ) @@ -745,7 +745,7 @@ </xsl:apply-templates> <xsl:apply-templates mode="paragraphMerge" select="$style/*/@*[name() = 'fo:margin-bottom' or name() = 'fo:margin']"> <xsl:with-param name="globalData" select="$globalData" /> - </xsl:apply-templates> + </xsl:apply-templates> <xsl:text> border-bottom-style:none; </xsl:text> </xsl:element> </xsl:element> @@ -759,7 +759,7 @@ </xsl:apply-templates> <xsl:apply-templates mode="paragraphMerge" select="$style/*/@*[name() = 'fo:margin-top' or name() = 'fo:margin-bottom' or name() = 'fo:margin']"> <xsl:with-param name="globalData" select="$globalData" /> - </xsl:apply-templates> + </xsl:apply-templates> <xsl:text> border-top-style:none; border-bottom-style:none; </xsl:text> </xsl:element> </xsl:element> @@ -772,7 +772,7 @@ </xsl:apply-templates> <xsl:apply-templates mode="paragraphMerge" select="$style/*/@*[name() = 'fo:margin-top' or name() = 'fo:margin']"> <xsl:with-param name="globalData" select="$globalData" /> - </xsl:apply-templates> + </xsl:apply-templates> <xsl:text> border-top-style:none;</xsl:text> </xsl:element> </xsl:element> @@ -805,7 +805,7 @@ </xsl:otherwise> </xsl:choose> </xsl:template> - + <xsl:template mode="paragraphMerge" match="@fo:margin | @fo:margin-top | @fo:margin-bottom | @fo:margin-left | @fo:margin-right"> <xsl:text>padding</xsl:text> <xsl:value-of select="substring-after(name(), 'fo:margin')"/> @@ -820,5 +820,5 @@ </xsl:otherwise> </xsl:choose> <xsl:text>; </xsl:text> - </xsl:template> + </xsl:template> </xsl:stylesheet> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl b/main/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl index 78fb1ed32f2..b66fe2b2c63 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -122,7 +122,7 @@ <xsl:when test="contains(., 'end')"> <xsl:choose> <xsl:when test="parent::*/@style:writing-mode and contains(parent::*/@style:writing-mode, 'rl')"> - <xsl:text>text-align:left ! important;</xsl:text> + <xsl:text>text-align:left ! important;</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>text-align:right ! important; </xsl:text> @@ -291,7 +291,7 @@ <xsl:text>writing-mode:</xsl:text> <xsl:value-of select="."/> <xsl:text>; </xsl:text> - </xsl:template> + </xsl:template> <!-- *** Properties with a no 'fo:' or 'style:' prefix *** --> <xsl:template match="@table:align"> <xsl:choose> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/table/table.xsl b/main/filter/source/xslt/odf2xhtml/export/common/table/table.xsl index 3edeee86885..909ac162268 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/table/table.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/table/table.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/table/table_cells.xsl b/main/filter/source/xslt/odf2xhtml/export/common/table/table_cells.xsl index b4a042f7796..2db389403c7 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/table/table_cells.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/table/table_cells.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/table/table_columns.xsl b/main/filter/source/xslt/odf2xhtml/export/common/table/table_columns.xsl index fd8a9ed523a..e54877f64ec 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/table/table_columns.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/table/table_columns.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/table/table_rows.xsl b/main/filter/source/xslt/odf2xhtml/export/common/table/table_rows.xsl index 6fb56108b29..5c883f17483 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/table/table_rows.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/table/table_rows.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl b/main/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl index 1c339033507..ad74acce492 100644 --- a/main/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl +++ b/main/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/helpauthoring/filter/xmlhelp2soffice.xsl b/main/helpauthoring/filter/xmlhelp2soffice.xsl index 564d247a213..882e5b34510 100644 --- a/main/helpauthoring/filter/xmlhelp2soffice.xsl +++ b/main/helpauthoring/filter/xmlhelp2soffice.xsl @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- +<!-- ************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -10,16 +10,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ************************************************************* @@ -54,19 +54,19 @@ FILTER FOR OPENOFFICE.ORG 2+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0"> <xsl:param name="filename" select="/helpdocument/meta/topic/filename"/> - + <xsl:param name="imgmodule"> <xsl:if test="starts-with($filename,'/text/')"> <xsl:value-of select="'default_images/'"/> </xsl:if> </xsl:param> - + <xsl:param name="dirlevel"> <xsl:call-template name="getdepth"> <xsl:with-param name="filename" select="$filename"/> </xsl:call-template> </xsl:param> - + <xsl:variable name="imgreldir"> <xsl:if test="starts-with($filename,'/text/')"> <xsl:call-template name="getreldir"> @@ -74,12 +74,12 @@ FILTER FOR OPENOFFICE.ORG 2+ </xsl:call-template> </xsl:if> </xsl:variable> - + <xsl:variable name="imgroot" select="concat($imgreldir,$imgmodule)"/> <!-- ############################################################################# - + OOo 2 Help Format Input Filter Stylesheet ================================================================== @@ -105,20 +105,20 @@ FILTER FOR OPENOFFICE.ORG 2+ </xsl:variable> <xsl:template match="/"> - + <office:document> <office:meta> <meta:generator>OpenOffice.org Import Filter</meta:generator> - + <dc:title> <xsl:value-of select="/helpdocument/meta/topic/title"/> </dc:title> - + <dc:subject> <xsl:value-of select="/helpdocument/meta/topic/filename"/> </dc:subject> - - <meta:creation-date> + + <meta:creation-date> <!-- REMOVED DUE TO PROBLEMS WITH CVS MERGE CONFLICTS <xsl:value-of select="/helpdocument/meta/history/created/@date"/> //--> @@ -129,33 +129,33 @@ FILTER FOR OPENOFFICE.ORG 2+ <xsl:value-of select="/helpdocument/meta/history/lastedited/@date"/> //--> </dc:date> - + <dc:language> <xsl:value-of select="article/@lang"/> </dc:language> - + <meta:keywords> <meta:keyword> <xsl:value-of select="/helpdocument/meta/topic/@status"/> </meta:keyword> </meta:keywords> - + <meta:editing-cycles>1</meta:editing-cycles> <meta:editing-duration>P0DT0H0M1S</meta:editing-duration> - + <meta:user-defined meta:name="Indexer"> <xsl:value-of select="/helpdocument/meta/topic/@indexer"/> </meta:user-defined> - + <meta:user-defined meta:name="ID"> <xsl:value-of select="/helpdocument/meta/topic/@id"/> </meta:user-defined> - - - + + + <meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="0" meta:word-count="0" meta:character-count="0"/> </office:meta> - + <office:scripts> <office:event-listeners> <xsl:element name="script:event-listener"> @@ -175,7 +175,7 @@ FILTER FOR OPENOFFICE.ORG 2+ </xsl:element> </office:event-listeners> </office:scripts> - + <office:font-face-decls> <style:font-face style:name="Monospace" svg:font-family="Monospace" style:font-adornments="Regular"/> <style:font-face style:name="Sans-Serif" svg:font-family="Sans-Serif" style:font-adornments="Regular"/> @@ -187,7 +187,7 @@ FILTER FOR OPENOFFICE.ORG 2+ <style:font-face style:name="Thorndale" svg:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/> </office:font-face-decls> - + <office:styles> <xsl:call-template name="createstyles"/> </office:styles> @@ -195,27 +195,27 @@ FILTER FOR OPENOFFICE.ORG 2+ <office:automatic-styles> <xsl:call-template name="createautostyles"/> </office:automatic-styles> - + <office:master-styles> </office:master-styles> - + <office:body> - + <xsl:call-template name="createvariablesets"/> <xsl:apply-templates select="helpdocument/body" /> - - + + </office:body> - + </office:document> </xsl:template> -<!-- -###################################################### -AHELP +<!-- +###################################################### +AHELP + hid CDATA #REQUIRED + visibility (hidden | visible) #IMPLIED -###################################################### +###################################################### --> <xsl:template match="ahelp"> @@ -249,13 +249,13 @@ AHELP </xsl:choose> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### ALT o xml-lang CDATA #REQUIRED (is always en-US for the source) + id CDATA #REQUIRED (is the same as for theimage except for "alt_" - + localize CDATA #IMPLIED -###################################################### + + localize CDATA #IMPLIED +###################################################### --> <xsl:template match="alt"> @@ -271,11 +271,11 @@ ALT </svg:title> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### BODY, SEE HEADER # localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="body"> <office:text> @@ -283,14 +283,14 @@ BODY, SEE HEADER </office:text> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### BOOKMARK + branch CDATA #REQUIRED o xml-lang CDATA #REQUIRED (is always en-US for the source) + id CDATA #REQUIRED - + localize CDATA #IMPLIED -###################################################### + + localize CDATA #IMPLIED +###################################################### --> <xsl:template match="bookmark[starts-with(@branch,'hid')]"> <xsl:choose> @@ -349,10 +349,10 @@ BOOKMARK </xsl:choose> </xsl:template> -<!-- -###################################################### -BOOKMARK_VALUE -###################################################### +<!-- +###################################################### +BOOKMARK_VALUE +###################################################### --> <xsl:template match="bookmark_value"> <text:line-break /> @@ -371,32 +371,32 @@ BOOKMARK_VALUE </text:span> </xsl:template> -<!-- -###################################################### -BR -###################################################### +<!-- +###################################################### +BR +###################################################### --> <xsl:template match="br"> <text:line-break/> </xsl:template> -<!-- -###################################################### -CAPTION +<!-- +###################################################### +CAPTION o xml-lang CDATA #REQUIRED (is always en-US for the source) + id CDATA #REQUIRED (in parent elements) + localize CDATA #IMPLIED (in parent elements) -###################################################### +###################################################### --> <xsl:template match="caption"> <xsl:apply-templates /> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### CASE + select CDATA #REQUIRED -###################################################### +###################################################### --> <xsl:template match="case"> <text:p text:style-name="hlp_aux_switch"> @@ -418,11 +418,11 @@ CASE </text:p> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### CASEINLINE - + select CDATA #REQUIRED -###################################################### + + select CDATA #REQUIRED +###################################################### --> <xsl:template match="caseinline"> <text:span text:style-name="hlp_aux_tag"> @@ -438,10 +438,10 @@ CASEINLINE </text:span> </xsl:template> -<!-- -###################################################### -COMMENT -###################################################### +<!-- +###################################################### +COMMENT +###################################################### --> <xsl:template match="comment"> <xsl:choose> @@ -485,18 +485,18 @@ COMMENT </xsl:choose> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### CREATED, SEE HEADER + date CDATA #REQUIRED -###################################################### +###################################################### --> <xsl:template match="created" /> -<!-- -###################################################### -DEFAULT -###################################################### +<!-- +###################################################### +DEFAULT +###################################################### --> <xsl:template match="default"> <text:p text:style-name="hlp_aux_switch"> @@ -518,10 +518,10 @@ DEFAULT </text:p> </xsl:template> -<!-- -###################################################### -DEFAULTINLINE -###################################################### +<!-- +###################################################### +DEFAULTINLINE +###################################################### --> <xsl:template match="defaultinline"> <text:span text:style-name="hlp_aux_tag"> @@ -537,20 +537,20 @@ DEFAULTINLINE </text:span> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### EMBED + href CDATA #REQUIRED + role CDATA #IMPLIED + level CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="embed"> <xsl:variable name="embed" select="concat('embed file="',@href,'" role="',@role,'" level="',@level,'"')" /> <text:p text:style-name="hlp_aux_embed"> <xsl:variable name="href" select="substring-before(@href,'#')"/> <text:span text:style-name="hlp_aux_tag"> - + <text:variable-set text:name="EMBED" text:value-type="string"> <xsl:value-of select="concat('<EMBED href="',@href,'"')"/> <xsl:if test="@role"> @@ -561,24 +561,24 @@ EMBED </xsl:if> <xsl:value-of select="'>'"/> </text:variable-set> - - + + </text:span> </text:p> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### EMBEDVAR + href CDATA #REQUIRED + markup (keep | ignore) #IMPLIED -###################################################### +###################################################### --> <xsl:template match="embedvar"> <xsl:variable name="embed" select="concat('embedvar var="',@href,'" markup="',@markup,'"')" /> <xsl:variable name="href" select="@href"/> <text:span text:style-name="hlp_aux_tag"> - + <text:variable-set text:name="EMBEDVAR" text:value-type="string"> <xsl:value-of select="concat('<EMBEDVAR var="',@href,'"')"/> <xsl:if test="@markup"> @@ -589,10 +589,10 @@ EMBEDVAR </text:span> </xsl:template> -<!-- -###################################################### -EMPH -###################################################### +<!-- +###################################################### +EMPH +###################################################### --> <xsl:template match="emph"> <text:span text:style-name="hlp_emph"> @@ -600,40 +600,40 @@ EMPH </text:span> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### FILENAME, SEE HEADER -###################################################### +###################################################### --> <xsl:template match="filename" /> -<!-- -###################################################### +<!-- +###################################################### HELPDOCUMENT, SEE HEADER + version CDATA #REQUIRED -###################################################### +###################################################### --> <!-- <xsl:template match="helpdocument" /> --> -<!-- -###################################################### +<!-- +###################################################### HISTORY, SEE HEADER -###################################################### +###################################################### --> <!-- REMOVED DUE TO PROBLEMS WITH CVS MERGE CONFLICTS <xsl:template match="history" /> //--> -<!-- -###################################################### -IMAGE +<!-- +###################################################### +IMAGE + s rc CDATA #REQUIRED + width CDATA #IMPLIED + height CDATA #IMPLIED + id CDATA #REQUIRED -###################################################### +###################################################### --> <xsl:template match="image"> <xsl:variable name="src" select="concat($imgroot,@src)" /> @@ -664,25 +664,25 @@ IMAGE <draw:image xlink:href="{$src}" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /> <xsl:apply-templates select="alt"/> </draw:frame> - + <xsl:if test="caption"> <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="IMGCAPTION_" text:value-type="string"> <xsl:value-of select="concat('<IMGCAPTION ID="',caption/@id,'" LOCALIZE="',caption/@localize,'">')"/> </text:variable-set> </text:span> - + <text:span text:style-name="hlp_aux_imgcaption"> <xsl:apply-templates select="caption"/> </text:span> - + <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="_IMGCAPTION" text:value-type="string"> <xsl:value-of select="'</IMGCAPTION>'"/> </text:variable-set> </text:span> </xsl:if> - + <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="_IMG" text:value-type="string"> <xsl:value-of select="'</IMG>'"/> @@ -696,7 +696,7 @@ IMAGE <xsl:value-of select="concat('<IMG ID="',@id,'">')"/> </text:variable-set> </text:span> - + <xsl:variable name="localize_img"> <xsl:choose> <xsl:when test="@localize"> @@ -707,7 +707,7 @@ IMAGE </xsl:otherwise> </xsl:choose> </xsl:variable> - + <draw:frame draw:name="{@id}{$localize_img}" text:anchor-type="as-char" draw:filter-name="<All formats>"> <xsl:if test="@height"> <xsl:attribute name="svg:height"> @@ -727,25 +727,25 @@ IMAGE <draw:image xlink:href="{$src}" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/> <xsl:apply-templates select="alt"/> </draw:frame> - + <xsl:if test="caption"> <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="IMGCAPTION_" text:value-type="string"> <xsl:value-of select="concat('<IMGCAPTION ID="',caption/@id,'" LOCALIZE="',caption/@localize,'">')"/> </text:variable-set> </text:span> - + <text:span text:style-name="hlp_aux_imgcaption"> <xsl:apply-templates select="caption"/> </text:span> - + <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="_IMGCAPTION" text:value-type="string"> <xsl:value-of select="'</IMGCAPTION>'"/> </text:variable-set> </text:span> </xsl:if> - + <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="_IMG" text:value-type="string"> <xsl:value-of select="'</IMG>'"/> @@ -756,11 +756,11 @@ IMAGE </xsl:template> -<!-- -###################################################### -ITEM +<!-- +###################################################### +ITEM + type CDATA #REQUIRED -###################################################### +###################################################### --> <xsl:template match="item"> <xsl:variable name="style"> @@ -771,22 +771,22 @@ ITEM </text:span> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### LASTEDITED, SEE HEADER + date CDATA #REQUIRED -###################################################### +###################################################### --> <xsl:template match="lastedited" /> -<!-- -###################################################### +<!-- +###################################################### LINK + href CDATA #REQUIRED + name CDATA #REQUIRED + type CDATA #IMPLIED + target CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="link"> <xsl:variable name="href"> @@ -823,8 +823,8 @@ LINK </xsl:template> -<!-- -###################################################### +<!-- +###################################################### LIST + type CDATA #REQUIRED + startwith CDATA #IMPLIED @@ -832,7 +832,7 @@ LIST # bullet (disc | circle | square) #IMPLIED # localize CDATA #IMPLIED # sorted (asc | desc) #IMPLIED -###################################################### +###################################################### --> <xsl:template match="list"> <xsl:choose> @@ -854,14 +854,14 @@ LIST </xsl:choose> </xsl:template> -<!-- -###################################################### -LISTITEM +<!-- +###################################################### +LISTITEM # format (1 | i | I | a | A) #IMPLIED # bullet (disc | circle | square) #IMPLIED # localize CDATA #IMPLIED # class CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="listitem"> <text:list-item> @@ -874,22 +874,22 @@ LISTITEM </text:list-item> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### META, SEE HEADER -###################################################### +###################################################### --> <xsl:template match="meta" /> -<!-- -###################################################### +<!-- +###################################################### OBJECT + type CDATA #REQUIRED + id CDATA #REQUIRED + data CDATA #REQUIRED + height CDATA #IMPLIED + width CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="object"> <xsl:choose> @@ -915,9 +915,9 @@ OBJECT </xsl:choose> </xsl:template> -<!-- -###################################################### -PARAGRAPH +<!-- +###################################################### +PARAGRAPH + role CDATA #REQUIRED + level CDATA #IMPLIED + id CDATA #REQUIRED @@ -925,17 +925,17 @@ PARAGRAPH o xml-lang CDATA #REQUIRED (is always en-US for the source) + oldref CDATA #IMPLIED + localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="paragraph"> <xsl:choose> <xsl:when test="@role='heading'"> <xsl:variable name="style" select="concat('hlp_head',@level)" /> <text:h text:style-name="{$style}" text:outline-level="{@level}"> <!-- fixed text:level bug, must be text:outline-level --> - + <xsl:variable name="tagstyle"> <xsl:choose> - + <xsl:when test="@l10n='NEW' or @l10n='CHG'"> <xsl:value-of select="'hlp_aux_parachanged'"/> </xsl:when> @@ -944,8 +944,8 @@ PARAGRAPH </xsl:otherwise> </xsl:choose> </xsl:variable> - - + + <text:span text:style-name="{$tagstyle}"> <text:variable-set text:name="ID" text:value-type="string" text:display="none"> <xsl:choose> @@ -969,11 +969,11 @@ PARAGRAPH //--> </text:variable-set> </text:span> - + <xsl:apply-templates /> </text:h> </xsl:when> - + <xsl:otherwise> <xsl:variable name="style" select="concat('hlp_',@role)" /> <text:p text:style-name="{$style}"> @@ -987,7 +987,7 @@ PARAGRAPH </xsl:otherwise> </xsl:choose> </xsl:variable> - + <text:span text:style-name="{$tagstyle}"> <text:variable-set text:name="ID" text:value-type="string" text:display="none"> <xsl:choose> @@ -1011,19 +1011,19 @@ PARAGRAPH //--> </text:variable-set> </text:span> - + <xsl:apply-templates /> </text:p> </xsl:otherwise> </xsl:choose> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### SECTION + id CDATA #REQUIRED - + localize CDATA #IMPLIED -###################################################### + + localize CDATA #IMPLIED +###################################################### --> <xsl:template match="section"> <!-- some files contain 2 equal sections cascaded (bug) --> <xsl:variable name="id1" select="@id" /> @@ -1063,11 +1063,11 @@ SECTION </xsl:choose> </xsl:template> -<!-- -###################################################### -SORT +<!-- +###################################################### +SORT + order (asc | desc) #IMPLIED -###################################################### +###################################################### --> <xsl:template match="sort"> <text:p text:style-name="hlp_aux_sort"> @@ -1089,12 +1089,12 @@ SORT </text:p> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### SWITCH + select (sys | appl | distrib ) #REQUIRED + localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="switch"> <text:p text:style-name="hlp_aux_switch"> @@ -1116,11 +1116,11 @@ SWITCH </text:p> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### SWITCHINLINE + select (sys | appl | distrib | target | ver | lang) #REQUIRED -###################################################### +###################################################### --> <xsl:template match="switchinline"> <text:span text:style-name="hlp_aux_tag"> @@ -1136,8 +1136,8 @@ SWITCHINLINE </text:span> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### TABLE + name CDATA #IMPLIED + width CDATA #IMPLIED @@ -1146,30 +1146,30 @@ TABLE + class CDATA #IMPLIED + id CDATA #REQUIRED + localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="table"> <xsl:variable name="maxcols"> <xsl:value-of select="count(tablerow[1]/tablecell)" /> <!-- colspan for first row unsupported! --> </xsl:variable> - + <xsl:variable name="id"> <xsl:value-of select="@id"/> </xsl:variable> - + <table:table table:name="{$id}" table:style-name="hlp_table"> <table:table-column table:number-columns-repeated="{$maxcols}"/> <xsl:apply-templates /> </table:table> <xsl:if test="caption"> <text:p text:style-name="hlp_aux_tablecaption"> - + <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="CAPTION_" text:value-type="string"> <xsl:value-of select="concat('<CAPTION ID="',caption/@id,'" LOCALIZE="',caption/@localize,'">')"/> </text:variable-set> </text:span> - + <xsl:apply-templates select="caption"/> <text:span text:style-name="hlp_aux_tag"> <text:variable-set text:name="_CAPTION" text:value-type="string"> @@ -1181,8 +1181,8 @@ TABLE </xsl:if> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### TABLECELL + colspan CDATA #IMPLIED + rowspan CDATA #IMPLIED @@ -1190,7 +1190,7 @@ TABLECELL # class CDATA #IMPLIED # unit CDATA #IMPLIED # localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="tablecell"> <table:table-cell> @@ -1208,14 +1208,14 @@ TABLECELL </table:table-cell> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### TABLEROW # height CDATA #IMPLIED # class CDATA #IMPLIED # unit CDATA #IMPLIED # localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="tablerow"> <table:table-row> @@ -1223,31 +1223,31 @@ TABLEROW </table:table-row> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### TITLE, SEE HEADER o xml-lang CDATA #REQUIRED (is always en-US for the source) o id CDATA #REQUIRED (is always tit for the title) # localize CDATA #IMPLIED -###################################################### +###################################################### --> <xsl:template match="title"/> -<!-- -###################################################### +<!-- +###################################################### TOPIC, SEE HEADER + id CDATA #REQUIRED - + indexer (exclude | include) #IMPLIED -###################################################### + + indexer (exclude | include) #IMPLIED +###################################################### --> <xsl:template match="topic"/> -<!-- -###################################################### -VARIABLE +<!-- +###################################################### +VARIABLE + id CDATA #REQUIRED + visibility (hidden | visible) #IMPLIED -###################################################### +###################################################### --> <xsl:template match="variable"> <text:span text:style-name="hlp_aux_tag"> @@ -1314,11 +1314,11 @@ VARIABLE </text:variable-decls> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### --> -<!-- +<!-- CREATESTYLES --> <xsl:template name="createstyles"> @@ -1326,7 +1326,7 @@ CREATESTYLES <style:default-style style:family="paragraph"> <style:properties fo:language="en" fo:country="US"/> </style:default-style> - + <xsl:for-each select="//list[@startwith > '1']"> <xsl:variable name="style"> <xsl:value-of select="concat('hlp_List',@startwith)"/> @@ -1335,7 +1335,7 @@ CREATESTYLES <text:list-level-style-number text:level="1" text:style-name="Numbering Symbols" style:num-suffix="." style:num-format="1" text:start-value="{@startwith}" /> </text:list-style> </xsl:for-each> - + <xsl:for-each select="//item"> <xsl:if test="not(contains($defaultcharstyles,@type))"> <xsl:variable name="style"> @@ -1351,7 +1351,7 @@ CREATESTYLES </xsl:element> </xsl:if> </xsl:for-each> - + <xsl:for-each select="//paragraph"> <!-- <xsl:if test="not(contains($defaultpararoles,@role))"> @@ -1374,7 +1374,7 @@ CREATESTYLES </xsl:if> //--> </xsl:for-each> - + <xsl:for-each select="//paragraph[@role='heading']"> <xsl:variable name="style"> <xsl:value-of select="concat('hlp_head',@level)"/> @@ -1391,7 +1391,7 @@ CREATESTYLES </xsl:attribute> </xsl:element> </xsl:for-each> - + <!-- include all style definitions (template is not working) --> @@ -1931,12 +1931,12 @@ CREATESTYLES </xsl:otherwise> </xsl:choose> </xsl:template> - + <xsl:template name="getdepth"> <xsl:param name="filename" select="''"/> <xsl:value-of select="string-length($filename)-string-length(translate($filename,'/',''))"/> </xsl:template> - + </xsl:stylesheet> diff --git a/main/helpcontent2/source/auxiliary/default.xsl b/main/helpcontent2/source/auxiliary/default.xsl index b8ad3c28ceb..2c9321b114a 100644 --- a/main/helpcontent2/source/auxiliary/default.xsl +++ b/main/helpcontent2/source/auxiliary/default.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="*|/"/> diff --git a/main/helpcontent2/source/auxiliary/index.xsl b/main/helpcontent2/source/auxiliary/index.xsl index 9c817d0d7b0..95338100903 100644 --- a/main/helpcontent2/source/auxiliary/index.xsl +++ b/main/helpcontent2/source/auxiliary/index.xsl @@ -12,10 +12,10 @@ xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:help="http://openoffice.org/2000/help" - xmlns:index="http://sun.com/2000/XMLSearch" + xmlns:index="http://sun.com/2000/XMLSearch" xmlns:text="http://openoffice.org/2000/text"> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -23,16 +23,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:param name="Language" select="'en-US'"/> @@ -137,5 +137,5 @@ </xsl:template> <xsl:template match="*"/> - + </xsl:stylesheet> diff --git a/main/officecfg/util/alllang.xsl b/main/officecfg/util/alllang.xsl index cf0eff6d30b..f0433ed451c 100644 --- a/main/officecfg/util/alllang.xsl +++ b/main/officecfg/util/alllang.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -118,33 +118,33 @@ <xsl:param name = "node-type"/> <xsl:param name = "schema-type"/> <xsl:param name = "component-schema"/> - + <xsl:choose> <xsl:when test="$schema-type='node-ref'"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="$schema-type='set'"> <xsl:copy> <xsl:apply-templates select = "@*" /> - <xsl:for-each select="node|prop"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:for-each select="node|prop"> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:for-each> </xsl:copy> </xsl:when> <xsl:otherwise> - <xsl:message terminate="yes">ERROR: The schema element for a <xsl:value-of select="$schema-type"/> + <xsl:message terminate="yes">ERROR: The schema element for a <xsl:value-of select="$schema-type"/> should not have a node-type. </xsl:message> </xsl:otherwise> </xsl:choose> </xsl:template> - + <xsl:template name="copy-node"> <xsl:param name = "context"/> <xsl:param name = "component-schema"/> @@ -185,7 +185,7 @@ </xsl:otherwise> </xsl:choose> </xsl:template> - + <xsl:template match="node"> <xsl:param name = "context"/> <xsl:param name = "component-schema"/> diff --git a/main/officecfg/util/data_val.xsl b/main/officecfg/util/data_val.xsl index 1b521d1b269..503c1df79db 100644 --- a/main/officecfg/util/data_val.xsl +++ b/main/officecfg/util/data_val.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -47,14 +47,14 @@ <!-- ************************************** --> <!-- * oor:component-data *** --> <!-- ************************************** --> - <xsl:template match="/oor:component-data"> + <xsl:template match="/oor:component-data"> <xsl:variable name="component-schema" select="document($schemaURL)/oor:component-schema"/> <xsl:for-each select="node|prop"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$component-schema/component/*[@oor:name = current()/@oor:name]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$component-schema/component/*[@oor:name = current()/@oor:name]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> - </xsl:for-each> + </xsl:for-each> </xsl:template> <!-- ****************************************** --> @@ -67,26 +67,26 @@ <xsl:variable name = "path"> <xsl:call-template name="collectPath"/> </xsl:variable> - + <xsl:if test="not ($component-schema)"> - <xsl:message terminate="yes">ERROR: Template '<xsl:value-of select="$node-type"/>', - referenced from node '<xsl:value-of select="$path"/>' + <xsl:message terminate="yes">ERROR: Template '<xsl:value-of select="$node-type"/>', + referenced from node '<xsl:value-of select="$path"/>' does not exist in schema! </xsl:message> </xsl:if> <xsl:choose> <xsl:when test="$schema-type='node-ref'"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:when> <xsl:when test="$schema-type='set'"> - <xsl:for-each select="node|prop"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:for-each select="node|prop"> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$component-schema/templates/*[@oor:name = $node-type]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:for-each> </xsl:when> @@ -97,7 +97,7 @@ </xsl:otherwise> </xsl:choose> </xsl:template> - + <!-- ****************************************** --> <!-- * node *** --> <!-- ****************************************** --> @@ -107,7 +107,7 @@ <xsl:variable name = "path"> <xsl:call-template name="collectPath"/> </xsl:variable> - + <xsl:if test="not ($context)"> <xsl:message terminate="yes">ERROR: Node '<xsl:value-of select="$path"/>' does not exist in schema!</xsl:message> </xsl:if> @@ -140,22 +140,22 @@ </xsl:when> <!-- is the node extensible ? --> <xsl:when test="$context/@oor:extensible='true'"> - <xsl:for-each select="node|prop"> - <xsl:apply-templates select="." mode="extensible"> - <xsl:with-param name="context" select="$context/*[@oor:name = current()/@oor:name]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:for-each select="node|prop"> + <xsl:apply-templates select="." mode="extensible"> + <xsl:with-param name="context" select="$context/*[@oor:name = current()/@oor:name]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:for-each> </xsl:when> - <xsl:otherwise> - <xsl:for-each select="node|prop"> - <xsl:apply-templates select="."> - <xsl:with-param name="context" select="$context/*[@oor:name = current()/@oor:name]"/> - <xsl:with-param name="component-schema" select="$component-schema"/> + <xsl:otherwise> + <xsl:for-each select="node|prop"> + <xsl:apply-templates select="."> + <xsl:with-param name="context" select="$context/*[@oor:name = current()/@oor:name]"/> + <xsl:with-param name="component-schema" select="$component-schema"/> </xsl:apply-templates> </xsl:for-each> </xsl:otherwise> - </xsl:choose> + </xsl:choose> </xsl:template> <!-- ****************************************** --> @@ -166,7 +166,7 @@ <xsl:variable name = "path"> <xsl:call-template name="collectPath"/> </xsl:variable> - + <xsl:if test="not ($context)"> <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' does not exist in schema !</xsl:message> @@ -178,8 +178,8 @@ <xsl:call-template name="checkModule"/> <xsl:call-template name="checkDuplicates"/> - - <xsl:apply-templates /> + + <xsl:apply-templates /> </xsl:template> <!-- ****************************************** --> @@ -228,15 +228,15 @@ <xsl:if test="not ($context)"> <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' does not exist in schema!</xsl:message> </xsl:if> - </xsl:when> + </xsl:when> <xsl:when test="@oor:op='replace'"> <xsl:if test="not (@oor:type)"> <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' does not have a type!</xsl:message> - </xsl:if> - </xsl:when> - <xsl:otherwise> + </xsl:if> + </xsl:when> + <xsl:otherwise> <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has unexpected operation '<xsl:value-of select="@oor:op"/>'!</xsl:message> - </xsl:otherwise> + </xsl:otherwise> </xsl:choose> <xsl:call-template name="checkModule"/> @@ -254,29 +254,29 @@ <xsl:call-template name="collectPath"/> </xsl:variable> <xsl:message terminate="yes">ERROR: Duplicate node/prop '<xsl:value-of select="$path"/>'!</xsl:message> - </xsl:if> + </xsl:if> </xsl:template> <!-- ************************************* --> <!-- * checkModule *** --> <!-- ************************************* --> - <xsl:template name="checkModule"> + <xsl:template name="checkModule"> <xsl:if test="@install:module"> <xsl:if test="ancestor::*[@install:module]"> <xsl:message terminate="yes">ERROR: Nested modules are not supported. Found module '<xsl:value-of select="@install:module"/>' within module '<xsl:value-of select="ancestor::*/@install:module"/>'! </xsl:message> - </xsl:if> - </xsl:if> + </xsl:if> + </xsl:if> </xsl:template> <!-- ************************************* --> <!-- * collectPath *** --> <!-- ************************************* --> - <xsl:template name="collectPath"> + <xsl:template name="collectPath"> <xsl:for-each select="ancestor-or-self::node()[@oor:name]"> <xsl:text>/</xsl:text><xsl:value-of select="@oor:name"/> - </xsl:for-each> + </xsl:for-each> </xsl:template> @@ -287,7 +287,7 @@ <xsl:param name="componentName"/> <xsl:variable name="fileURL"> <xsl:value-of select="$schemaRootURL"/>/<xsl:value-of select="translate($componentName,'.','/')"/><xsl:text>.xcs</xsl:text> - </xsl:variable> + </xsl:variable> <xsl:value-of select="$fileURL"/> </xsl:template> diff --git a/main/officecfg/util/resource.xsl b/main/officecfg/util/resource.xsl index 2270d5283e5..86a5cf7518e 100644 --- a/main/officecfg/util/resource.xsl +++ b/main/officecfg/util/resource.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,24 +8,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:oor="http://openoffice.org/2001/registry" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:oor="http://openoffice.org/2001/registry" version="1.0"> <!-- Set correct output format --> diff --git a/main/officecfg/util/sanity.xsl b/main/officecfg/util/sanity.xsl index e5bedeec492..fa877864f63 100644 --- a/main/officecfg/util/sanity.xsl +++ b/main/officecfg/util/sanity.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,22 +8,22 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:oor="http://openoffice.org/2001/registry" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:oor="http://openoffice.org/2001/registry" version="1.0"> <xsl:output method="text" indent="no" encoding="ISO-8859-1"/> diff --git a/main/officecfg/util/schema_trim.xsl b/main/officecfg/util/schema_trim.xsl index 67e2aaefff8..9245500798f 100644 --- a/main/officecfg/util/schema_trim.xsl +++ b/main/officecfg/util/schema_trim.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,24 +8,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:oor="http://openoffice.org/2001/registry" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:oor="http://openoffice.org/2001/registry" version="1.0"> <!-- Get the correct format --> @@ -61,7 +61,7 @@ <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:value-of select="."/> - </xsl:copy> + </xsl:copy> </xsl:template> <!-- suppress all author items --> @@ -75,7 +75,7 @@ <xsl:copy> <xsl:apply-templates select="*|@*"/> <xsl:value-of select="."/> - </xsl:copy> + </xsl:copy> </xsl:template> </xsl:transform> diff --git a/main/officecfg/util/schema_val.xsl b/main/officecfg/util/schema_val.xsl index a47cd2189fc..2d0a5891b45 100644 --- a/main/officecfg/util/schema_val.xsl +++ b/main/officecfg/util/schema_val.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,24 +8,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:oor="http://openoffice.org/2001/registry" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:oor="http://openoffice.org/2001/registry" version="1.0"> <!-- Get the correct format --> @@ -40,7 +40,7 @@ <xsl:message terminate="no">CHECKING CONSISTENCY ...</xsl:message> <xsl:apply-templates/> </xsl:template> - + <!-- activate attribute templates --> <xsl:template match="group|set|prop"> <xsl:apply-templates select="*|@*"/> @@ -72,12 +72,12 @@ <xsl:variable name="item-name" select="."/> <xsl:if test="../following-sibling::*[@oor:name = $item-name]"> <xsl:message terminate="yes">ERROR: Duplicate node name '<xsl:value-of select="$item-name"/>'!</xsl:message> - </xsl:if> + </xsl:if> </xsl:template> <!-- check if properties of type 'any' do not have a value --> <xsl:template match="prop[@oor:type='oor:any']"> - <xsl:if test="count(value)"> + <xsl:if test="count(value)"> <xsl:message terminate="yes">ERROR: Properties of type 'oor:any' MUST NOT have a value!</xsl:message> </xsl:if> <xsl:apply-templates select="*|@*"/> @@ -97,12 +97,12 @@ </xsl:variable> <xsl:if test="not(document($file)/oor:component-schema/templates/*[@oor:name=current()])"> <xsl:message terminate="yes">ERROR: node-type '<xsl:value-of select="current()"/>' not found!</xsl:message> - </xsl:if> + </xsl:if> </xsl:when> <xsl:when test="not(/oor:component-schema/templates/*[@oor:name=current()])"> <xsl:message terminate="yes">ERROR: node-type '<xsl:value-of select="current()"/>' not found!</xsl:message> </xsl:when> - </xsl:choose> + </xsl:choose> </xsl:template> <!-- validate if file name matches component-name --> @@ -110,7 +110,7 @@ <xsl:variable name ="fullName"><xsl:value-of select="@oor:package"/>.<xsl:value-of select="@oor:name"/></xsl:variable> <xsl:if test="$fullName != $componentName"> <xsl:message terminate="yes">ERROR: Component name '<xsl:value-of select="$fullName"/>' does not match with file name!</xsl:message> - </xsl:if> + </xsl:if> <xsl:apply-templates select="*|@*"/> </xsl:template> diff --git a/main/postprocess/packconfig/macosx/macosx_menubar_modification.xsl b/main/postprocess/packconfig/macosx/macosx_menubar_modification.xsl index ad12a963097..fbc91526a8a 100644 --- a/main/postprocess/packconfig/macosx/macosx_menubar_modification.xsl +++ b/main/postprocess/packconfig/macosx/macosx_menubar_modification.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,21 +8,21 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version='1.0' - xmlns:menu="http://openoffice.org/2001/menu" +<xsl:stylesheet version='1.0' + xmlns:menu="http://openoffice.org/2001/menu" xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > - + <!-- identity template, does reproduce every IN node on the output --> <xsl:template match="node()|@*"> <xsl:copy> diff --git a/main/readlicense_oo/docs/readme/eval.xsl b/main/readlicense_oo/docs/readme/eval.xsl index 8d377d7a7e5..42f60f055a3 100644 --- a/main/readlicense_oo/docs/readme/eval.xsl +++ b/main/readlicense_oo/docs/readme/eval.xsl @@ -1,6 +1,6 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:output method="text" /> <xsl:template match="/Readme"> @@ -32,7 +32,7 @@ .soli {color: #000;} .solx {color: #000;} .none {color: #000;} - .all {color: #000;} + .all {color: #000;} .section {background-color: #DEDEDE;} .comment {text-color: #666; font-size: xx-small;} body * {font-size: 9pt} @@ -48,14 +48,14 @@ </body> </html> </xsl:template> - + <xsl:template match="Section"> <tr> <th colspan="9" align='left' class="section">SECTION <xsl:value-of select="@id" /></th> </tr> <xsl:apply-templates /> </xsl:template> - + <xsl:template match="Paragraph"> <tr> <td> @@ -87,7 +87,7 @@ </td> </tr> </xsl:template> - + <xsl:template match="List"> <xsl:choose> <xsl:when test="@enum='true'"> @@ -105,7 +105,7 @@ </ul> </xsl:otherwise> </xsl:choose> - + </xsl:template> - + </xsl:stylesheet> diff --git a/main/sd/xsl/effect.xsl b/main/sd/xsl/effect.xsl index 4b17633da58..b2124b0db76 100644 --- a/main/sd/xsl/effect.xsl +++ b/main/sd/xsl/effect.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:openoffice:xmlns:office:1.0" @@ -42,7 +42,7 @@ xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:smil="http://www.w3.org/2001/SMIL20" - xmlns:anim="urn:oasis:names:tc:openoffice:xmlns:animation:1.0" + xmlns:anim="urn:oasis:names:tc:openoffice:xmlns:animation:1.0" version="1.0"> @@ -122,14 +122,14 @@ <xsl:apply-templates select="*|@*|text()"/> </anim:par> </xsl:template> - + <!-- box --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-entrance-box']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> </xsl:template> - + <!-- checkerboard --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-entrance-checkerboard']"> <anim:par pres:preset-property="Direction"> @@ -220,21 +220,21 @@ <xsl:apply-templates select="*|@*|text()"/> </anim:par> </xsl:template> - + <!-- zoom --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-entrance-zoom']"> <anim:par pres:preset-property="Zoom"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- swivel --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-entrance-swivel']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- emphasis --> <!-- change fill color --> @@ -242,84 +242,84 @@ <anim:par pres:preset-property="FillColor;ColorStyle;Accelerate;Decelerate;AutoReverse"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- change font --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-font']"> <anim:par pres:preset-property="FontStyle" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- change font color --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-font-color']"> <anim:par pres:preset-property="CharColor;ColorStyle;Accelerate;Decelerate;AutoReverse" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- change font size --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-font-size']"> <anim:par pres:preset-property="CharHeight" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- change font style --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-font-style']"> <anim:par pres:preset-property="CharDecoration" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- change line color --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-line-color']"> <anim:par pres:preset-property="LineColor;ColorStyle;Accelerate;Decelerate;AutoReverse"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- grow/shrink --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-grow-and-shrink']"> <anim:par pres:preset-property="Scale;Accelerate;Decelerate;AutoReverse"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- spin --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-spin']"> <anim:par pres:preset-property="Rotate;Accelerate;Decelerate;AutoReverse"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- Transparency --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-transparency']"> <anim:par pres:preset-property="Transparency"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- brush on color --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-word']"> <anim:iterate pres:preset-property="Color" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> - </xsl:template> - + </xsl:template> + <!-- color blend --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-color-blend']"> <anim:par pres:preset-property="Color"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- color wave --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-color-over-by-letter']"> <anim:iterate pres:preset-property="Color" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> - </xsl:template> + </xsl:template> <!-- bold flash --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-bold-flash']"> @@ -327,13 +327,13 @@ <xsl:apply-templates select="*|@*|text()"/> </anim:par> </xsl:template> - + <!-- reveal underline --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-reveal-underline']"> <anim:iterate pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> - </xsl:template> + </xsl:template> <!-- shimmer --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-shimmer']"> @@ -347,57 +347,57 @@ <anim:par pres:preset-property="Color"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- flicker --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-flicker']"> <anim:par pres:preset-property="Color"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- grow with color --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-grow-with-color']"> <anim:iterate pres:preset-property="Color" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> - </xsl:template> - + </xsl:template> + <!-- teeter --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-teeter']"> <anim:par pres:preset-property="Color"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- blast --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-blast']"> <anim:par pres:preset-property="Color"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- style emphasis --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-emphasis-style-emphasis']"> <anim:par pres:preset-property="Color" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- bold reveal --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-bold-reveal']"> <anim:iterate pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> </xsl:template> - + <!-- wave --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-emphasis-wave']"> <anim:iterate pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> </xsl:template> - + <!-- exit --> <!-- blinds --> @@ -405,126 +405,126 @@ <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- box --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-box']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- checkerboard --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-checkerboard']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- circle --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-circle']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- crawl out --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-crawl-out']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- diamond --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-diamond']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- fly out --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-fly-out']"> <anim:par pres:preset-property="Direction;Accelerate;Decelerate"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- peek out --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-peek-out']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- plus --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-plus']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- random bars --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-random-bars']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- split --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-split']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- strips --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-diagonal-squares']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- wheel --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-wheel']"> <anim:par pres:preset-property="Spokes"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- wipe --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-wipe']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- collapse --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-collapse']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- color typewriter --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-exit-colored-lettering']"> <anim:iterate pres:preset-property="Color1;Color2" pres:text-only="true"> <xsl:apply-templates select="*|@*|text()"/> - </anim:iterate> - </xsl:template> - + </anim:iterate> + </xsl:template> + <!-- zoom --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-zoom']"> <anim:par pres:preset-property="Zoom"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> - + </xsl:template> + <!-- swivel --> <xsl:template match="anim:par[@pres:preset-id = 'ooo-exit-swivel']"> <anim:par pres:preset-property="Direction"> <xsl:apply-templates select="*|@*|text()"/> </anim:par> - </xsl:template> + </xsl:template> <!-- fade in an swivel --> <xsl:template match="anim:iterate[@pres:preset-id = 'ooo-exit-fade-out-and-swivel']"> @@ -567,7 +567,7 @@ <xsl:apply-templates select="*|@*|text()"/> </anim:iterate> </xsl:template> - + <!-- remove pres:group-id --> <xsl:template match="@xlink:href" /> <xsl:template match="@smil:targetElement" /> diff --git a/main/solenv/bin/createcomponent.xslt b/main/solenv/bin/createcomponent.xslt index 86f7797c507..16566e88344 100644 --- a/main/solenv/bin/createcomponent.xslt +++ b/main/solenv/bin/createcomponent.xslt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/solenv/bin/packcomponents.xslt b/main/solenv/bin/packcomponents.xslt index f0e9b3f9f28..120066c2839 100644 --- a/main/solenv/bin/packcomponents.xslt +++ b/main/solenv/bin/packcomponents.xslt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/solenv/bin/packregistry.xslt b/main/solenv/bin/packregistry.xslt index ecab36da9dc..cc35a0721cf 100644 --- a/main/solenv/bin/packregistry.xslt +++ b/main/solenv/bin/packregistry.xslt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/swext/mediawiki/src/filter/odt2mediawiki.xsl b/main/swext/mediawiki/src/filter/odt2mediawiki.xsl index 6ee5bec257b..f8e266bcd53 100644 --- a/main/swext/mediawiki/src/filter/odt2mediawiki.xsl +++ b/main/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -17,32 +17,32 @@ $Id: odt2mediawiki.xsl 3180 2013-03-17 16:00:43Z hauma $ --> -<stylesheet version="1.0" +<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > - - <!-- + + <!-- == Customization options == --> @@ -61,19 +61,19 @@ <when test="boolean($codetabdocument-value)"> <value-of select="$codetabdocument-value"/> </when> - + <otherwise> <value-of select="' '"/> </otherwise> </choose> </param> - - <!-- - Switch that suppresses separation of paragraphs with empty lines. + + <!-- + Switch that suppresses separation of paragraphs with empty lines. (Set to 1 to activate) --> - <param name="CODE_JOIN_PARAGRAPHS" + <param name="CODE_JOIN_PARAGRAPHS" select="boolean(string(/office:document/office:meta/meta:user-defined[@meta:name='CODE_JOIN_PARAGRAPHS']) != 'false')"/> - + <variable name="document-value" select="/office:document/office:meta/meta:user-defined[@meta:name='CODE_STYLES']"/> @@ -83,7 +83,7 @@ <when test="boolean($document-value)"> <value-of select="$document-value"/> </when> - + <otherwise> <value-of select="''"/> </otherwise> @@ -98,20 +98,20 @@ <when test="boolean($table-class)"> <value-of select="$table-class"/> </when> - + <otherwise> <value-of select="''"/> </otherwise> </choose> </param> - + <variable name="USE_DEFAULT_TABLE_CLASS" select="string-length($TABLE_CLASS) > 0"/> - <!-- - == Wiki style constants == + <!-- + == Wiki style constants == --> - + <!-- Bold character style. --> <variable name="BOLD_BIT" select="1"/> @@ -126,7 +126,7 @@ <!-- Typewriter character style. --> <variable name="TYPEWRITER_BIT" select="16"/> - + <!-- Preformatted text paragraph style. --> <variable name="CODE_BIT" select="32"/> @@ -135,21 +135,21 @@ <!-- Right aligned paragraph style. --> <variable name="RIGHT_BIT" select="128"/> - + <!-- Constant defining the empty style. --> <variable name="NO_STYLE" select="0"/> - <output - method="text" - media-type="text/plain" + <output + method="text" + media-type="text/plain" encoding="UTF-8" /> - <!-- - == Reference resolution == + <!-- + == Reference resolution == --> <key @@ -163,13 +163,13 @@ match="//text:list-style" use="@style:name" /> - + <key name="font-face-ref" match="//style:font-face" use="@style:name" /> - + <key name="reference-resolution" match="//text:reference-mark | //text:reference-mark-start" @@ -177,7 +177,7 @@ /> - <!-- + <!-- Multiple pages (draw only) --> @@ -188,38 +188,38 @@ </template> - <!-- - == Lists == + <!-- + == Lists == --> <template match="text:list"> - <!-- - Check, whether this list is used to implement the outline numbering - for headings. Such list must not be exported, because within the wiki, - automatic outline numbering is performed. An outline list has a single - text:h element as its single leaf grandchild. - + <!-- + Check, whether this list is used to implement the outline numbering + for headings. Such list must not be exported, because within the wiki, + automatic outline numbering is performed. An outline list has a single + text:h element as its single leaf grandchild. + This method of section numbering seems not to be used when creating new - documents with OpenOffice.org 2.2, but the document containing the - OpenDocument specification version 1.1 uses such numbering through nested + documents with OpenOffice.org 2.2, but the document containing the + OpenDocument specification version 1.1 uses such numbering through nested lists. --> <choose> <when test="boolean(./descendant::node()[not(./self::text:list) and not(./self::text:list-item) and not(./ancestor-or-self::text:h)])"> <apply-templates/> </when> - + <otherwise> <apply-templates select=".//text:h"/> </otherwise> </choose> </template> - + <template match="text:list-item"> <if test="position() > 1 or boolean(ancestor::text:list-item)"> <value-of select="$NL"/> </if> - <variable name="list-style" + <variable name="list-style" select="key('list-style-ref',ancestor::text:list[boolean(@text:style-name)][1]/@text:style-name)"/> <call-template name="mk-list-token"> <with-param name="list-style" select="$list-style"/> @@ -233,11 +233,11 @@ <value-of select="$NL"/> </if> </template> - + <template name="mk-list-token"> <param name="list-style"/> <param name="level"/> - + <if test="$level > 1"> <call-template name="mk-list-token"> <with-param name="list-style" select="$list-style"/> @@ -265,7 +265,7 @@ </template> - <!-- + <!-- == Headings == --> @@ -292,9 +292,9 @@ <value-of select="$NL"/> </template> - <!-- + <!-- Function generating a wiki heading prefix. - + @param level The heading level. The value must be between 1 and 5. --> @@ -315,10 +315,10 @@ </choose> </template> - <!-- - Function generating a token consisting of the given character + <!-- + Function generating a token consisting of the given character repeated 'level' times. - + @param level The length of the result. @param char @@ -335,29 +335,29 @@ </call-template> </if> </template> - - - <!-- + + + <!-- == Tables == --> <template match="table:table"> <text> </text> <text>{|</text> - + <choose> <when test="$USE_DEFAULT_TABLE_CLASS"> <text> class="</text> <value-of select="$TABLE_CLASS"/> <text>"</text> </when> - + <otherwise> <!-- Default setting to translate detailed office table cell styles correctly. --> <text> style="border-spacing:0;"</text> </otherwise> </choose> - + <text> </text> <apply-templates/> <text> </text> @@ -400,13 +400,13 @@ </if> <if test="not($USE_DEFAULT_TABLE_CLASS) and boolean(@table:style-name)"> <variable name="style-element" select="key('style-ref', @table:style-name)"/> - + <variable name="style"> <call-template name="translate-style-property"> <with-param name="style-name" select="'background-color'"/> <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:background-color"/> </call-template> - + <call-template name="translate-style-property"> <with-param name="style-name" select="'border'"/> <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border"/> @@ -427,7 +427,7 @@ <with-param name="style-name" select="'border-right'"/> <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:border-right"/> </call-template> - + <call-template name="translate-style-property"> <with-param name="style-name" select="'padding'"/> <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:padding"/> @@ -449,7 +449,7 @@ <with-param name="style-property" select="$style-element/style:table-cell-properties/@fo:padding-right"/> </call-template> </variable> - + <if test="string-length($style) > 0"> <text> style="</text> <value-of select="$style"/> @@ -464,7 +464,7 @@ <template name="translate-style-property"> <param name="style-name"/> <param name="style-property"/> - + <if test="boolean($style-property)"> <value-of select="$style-name"/> <text>:</text> @@ -473,8 +473,8 @@ </if> </template> - <!-- - == WikiMath == + <!-- + == WikiMath == --> <!-- @@ -503,8 +503,8 @@ <value-of select="string(.)"/> </template> - <!-- - == Native links == + <!-- + == Native links == --> <template match="text:a"> @@ -518,7 +518,7 @@ <value-of select="$link-label"/> <text>]</text> </when> - + <otherwise> <apply-templates/> </otherwise> @@ -526,8 +526,8 @@ </template> - <!-- - == WikiLink == + <!-- + == WikiLink == --> <template match="text:span[@text:style-name='WikiLink']"> @@ -545,10 +545,10 @@ </choose> <value-of select="']]'"/> </template> - - - <!-- - == Paragraphs == + + + <!-- + == Paragraphs == --> <template match="text:p[string-length(.) > 0]"> @@ -558,13 +558,13 @@ </call-template> </variable> - <variable name="code" + <variable name="code" select="($style mod (2 * $CODE_BIT)) - ($style mod ($CODE_BIT)) != 0"/> - <variable name="center" + <variable name="center" select="($style mod (2 * $CENTER_BIT)) - ($style mod ($CENTER_BIT)) != 0"/> - <variable name="right" + <variable name="right" select="($style mod (2 * $RIGHT_BIT)) - ($style mod ($RIGHT_BIT)) != 0"/> - + <choose> <when test="$center"> <text><center></text> @@ -576,7 +576,7 @@ <value-of select="' '"/> </when> </choose> - + <apply-templates/> <choose> @@ -588,14 +588,14 @@ </when> </choose> - <variable name="paragraph-right" + <variable name="paragraph-right" select="./following-sibling::*[1]/self::text:p"/> <choose> <when test="boolean($paragraph-right)"> - <!-- - Insert end of line only if not within a list. Within wiki lists, - a line break leaves the current list item. + <!-- + Insert end of line only if not within a list. Within wiki lists, + a line break leaves the current list item. --> <choose> <when test="boolean(ancestor::text:list-item)"> @@ -607,17 +607,17 @@ <with-param name="node" select="$paragraph-right"/> </call-template> </variable> - - <variable name="code-right" + + <variable name="code-right" select="($style-right mod (2 * $CODE_BIT)) - ($style-right mod ($CODE_BIT)) != 0"/> - + <choose> <when test="$code-right"> <choose> <when test="$CODE_JOIN_PARAGRAPHS"> <value-of select="$NL"/> </when> - + <otherwise> <value-of select="$NL"/> <value-of select="' '"/> @@ -654,10 +654,10 @@ </template> - <!-- - == Preformatted text == + <!-- + == Preformatted text == --> - + <template match="text:s"> <variable name="style"> <call-template name="mk-style-set"> @@ -665,9 +665,9 @@ </call-template> </variable> - <variable name="code" + <variable name="code" select="($style mod (2 * $CODE_BIT)) - ($style mod ($CODE_BIT)) != 0"/> - + <if test="$code"> <choose> <when test="@text:c"> @@ -682,7 +682,7 @@ </choose> </if> </template> - + <template match="text:tab"> <variable name="style"> <call-template name="mk-style-set"> @@ -690,14 +690,14 @@ </call-template> </variable> - <variable name="code" + <variable name="code" select="($style mod (2 * $CODE_BIT)) - ($style mod ($CODE_BIT)) != 0"/> - + <if test="$code"> <value-of select="$CODE_TAB_REPLACEMENT"/> </if> </template> - + <template match="text:line-break"> <variable name="style"> <call-template name="mk-style-set"> @@ -705,22 +705,22 @@ </call-template> </variable> - <variable name="code" + <variable name="code" select="($style mod (2 * $CODE_BIT)) - ($style mod ($CODE_BIT)) != 0"/> - + <if test="$code"> <value-of select="$NL"/> <value-of select="' '"/> </if> </template> - <!-- + <!-- Footnotes --> - + <template match="text:note-body"> <variable name="note" select="./parent::text:note"/> - + <if test="$note/@text:note-class = 'footnote'"> <text><ref name="</text> <value-of select="$note/@text:id"/> @@ -729,25 +729,25 @@ <text></ref></text> </if> </template> - + <template match="text:note-ref[@text:note-class='footnote']"> <text><ref name="</text> <value-of select="@text:ref-name"/> <text>"/></text> </template> - - - <!-- - == Images == + + + <!-- + == Images == --> - + <template match="draw:text-box[boolean(.//draw:image)]"> <variable name="image" select=".//draw:image[1]"/> - + <variable name="image-description"> <apply-templates/> </variable> - + <text>[[</text> <call-template name="mk-image-name"> <with-param name="image" select="$image"/> @@ -756,7 +756,7 @@ <value-of select="normalize-space($image-description)"/> <text>]]</text> </template> - + <template match="draw:image[not(boolean(ancestor::draw:text-box))]"> <text>[[</text> <call-template name="mk-image-name"> @@ -767,22 +767,22 @@ <template name="mk-image-name"> <param name="image"/> - + <variable name="base-name"> <call-template name="mk-base-name"> <with-param name="href" select="$image/@xlink:href"/> </call-template> </variable> - + <if test="not(starts-with($base-name, 'Image:'))"> <value-of select="'Image:'"/> </if> <value-of select="$base-name"/> - </template> - + </template> + <template name="mk-base-name"> <param name="href"/> - + <variable name="result" select="substring-after($href, '/')"/> <choose> <when test="boolean($result)"> @@ -795,9 +795,9 @@ </otherwise> </choose> </template> - + <!-- Frames --> - + <template match="draw:frame"> <choose> <when test="draw:object/math:math"> @@ -807,38 +807,38 @@ <when test="draw:image"> <apply-templates select="draw:image[1]"/> </when> - + <otherwise> <apply-templates select="./*[1]"/> </otherwise> </choose> - + </template> - + <!-- Formulas (Objects) --> - + <include href="math/mmltex.xsl"/> - + <template match="math:math" priority="1"> <text><math></text> <apply-templates/> <text></math></text> </template> - - - <!-- + + + <!-- References --> - + <!-- TODO: text:bibliography-mark --> <template match="text:reference-ref"> <variable name="reference-mark" select="key('reference-resolution', @text:ref-name)"/> - + <choose> <when test="boolean($reference-mark)"> - <!-- - In wiki syntax, only a local reference to a heading can be inserted. + <!-- + In wiki syntax, only a local reference to a heading can be inserted. If the link target is a descendant of a heading element, a link can be inserted in the result. --> <variable name="header-anchor" select="$reference-mark/ancestor::text:h[1]"/> @@ -847,25 +847,25 @@ <value-of select="string($header-anchor)"/> <text>|</text> </if> - + <variable name="reference-text" select="string(.)"/> - + <choose> <!-- Check, whether the reference text is cached in the document. --> <when test="string-length($reference-text) > 0"> <value-of select="$reference-text"/> </when> - + <otherwise> - <!-- - TODO: Evaluate the @text:reference-format attribute and + <!-- + TODO: Evaluate the @text:reference-format attribute and generate the replacement text (difficult).--> <text>(REFERENCE TEXT UNAVAILABLE: "</text> <value-of select="@text:ref-name"/> <text>")</text> </otherwise> </choose> - + <if test="boolean($header-anchor)"> <text>]]</text> </if> @@ -878,7 +878,7 @@ </otherwise> </choose> </template> - + <template match="text:reference-mark"> <!-- TODO: Output an anchor. --> <apply-templates/> @@ -888,42 +888,42 @@ <!-- TODO: Output an anchor. --> </template> - <!-- - == Plain text == + <!-- + == Plain text == --> <template match="text:p/text() | text:h/text() | text:span/text() | text:sequence/text() | text:sequence-ref/text() | text:a/text() | text:bookmark-ref/text() | text:reference-mark/text() | text:date/text() | text:time/text() | text:page-number/text() | text:sender-firstname/text() | text:sender-lastname/text() | text:sender-initials/text() | text:sender-title/text() | text:sender-position/text() | text:sender-email/text() | text:sender-phone-private/text() | text:sender-fax/text() | text:sender-company/text() | text:sender-phone-work/text() | text:sender-street/text() | text:sender-city/text() | text:sender-postal-code/text() | text:sender-country/text() | text:sender-state-or-province/text() | text:author-name/text() | text:author-initials/text() | text:chapter/text() | text:file-name/text() | text:template-name/text() | text:sheet-name/text() | text:variable-get/text() | text:variable-input/text() | text:user-field-get/text() | text:user-field-input/text() | text:expression/text() | text:text-input/text() | text:initial-creator/text() | text:creation-date/text() | text:creation-time/text() | text:description/text() | text:user-defined/text() | text:print-date/text() | text:printed-by/text() | text:title/text() | text:subject/text() | text:keywords/text() | text:editing-cycles/text() | text:editing-duration/text() | text:modification-date/text() | text:creator/text() | text:modification-time/text() | text:page-count/text() | text:paragraph-count/text() | text:word-count/text() | text:character-count/text() | text:table-count/text() | text:image-count/text() | text:object-count/text() | text:database-display/text() | text:database-row-number/text() | text:database-name/text() | text:page-variable-get/text() | text:placeholder/text() | text:conditional-text/text() | text:hidden-text/text() | text:execute-macro/text() | text:dde-connection/text() | text:measure/text() | text:table-formula/text()"> <choose> <when test="boolean(./ancestor::table:table-header-rows | ./ancestor::text:h)"> - <!-- - No explicit styles within table headings or section headings, + <!-- + No explicit styles within table headings or section headings, because those styles are consistently declared by the Wiki engine. --> <value-of select="."/> </when> - + <when test="string-length(.) > 0"> <variable name="style"> <call-template name="mk-style-set"> <with-param name="node" select="."/> </call-template> </variable> - - <variable name="current-paragraph" + + <variable name="current-paragraph" select="./ancestor::text:p[1]"/> - <variable name="paragraph-id" + <variable name="paragraph-id" select="generate-id($current-paragraph)"/> - <variable name="frames" + <variable name="frames" select="$current-paragraph/descendant::draw:frame"/> - <variable name="frame-count" + <variable name="frame-count" select="count($frames)"/> - - <!-- - The current style context consists of all text nodes that are - descendants of the paragraph ancestor of this text node but not - descendants of any frame nodes that are descendants of the current + + <!-- + The current style context consists of all text nodes that are + descendants of the paragraph ancestor of this text node but not + descendants of any frame nodes that are descendants of the current text nodes paragraph. --> - <variable name="context" + <variable name="context" select="$current-paragraph//text()[not(boolean(./ancestor::draw:frame[1]) and count(./ancestor::draw:frame[1] | $frames) = $frame-count)]"/> <variable name="context-size" select="count($context)"/> @@ -939,10 +939,10 @@ <choose> <when test="$context-index > 1"> <variable name="left" select="$context[$context-index - 1]"/> - <!-- - The preceding text node is a child of this nodes topmost - styled ancestor. This means that the result of the - transformation will be directly concatenated. + <!-- + The preceding text node is a child of this nodes topmost + styled ancestor. This means that the result of the + transformation will be directly concatenated. --> <call-template name="mk-style-set"> <with-param name="node" select="$left"/> @@ -957,10 +957,10 @@ <choose> <when test="$context-index < count($context)"> <variable name="right" select="$context[$context-index + 1]"/> - <!-- - The preceding text node is a child of this nodes topmost - styled ancestor. This means that the result of the - transformation will be directly concatenated. + <!-- + The preceding text node is a child of this nodes topmost + styled ancestor. This means that the result of the + transformation will be directly concatenated. --> <call-template name="mk-style-set"> <with-param name="node" select="$right"/> @@ -972,43 +972,43 @@ </choose> </variable> - <variable name="bold" + <variable name="bold" select="($style mod (2 * $BOLD_BIT)) != 0"/> - <variable name="italic" + <variable name="italic" select="($style mod (2 * $ITALIC_BIT)) - ($style mod ($ITALIC_BIT)) != 0"/> - <variable name="superscript" + <variable name="superscript" select="($style mod (2 * $SUPERSCRIPT_BIT)) - ($style mod ($SUPERSCRIPT_BIT)) != 0"/> - <variable name="subscript" + <variable name="subscript" select="($style mod (2 * $SUBSCRIPT_BIT)) - ($style mod ($SUBSCRIPT_BIT)) != 0"/> - <variable name="code" + <variable name="code" select="($style mod (2 * $CODE_BIT)) - ($style mod ($CODE_BIT)) != 0"/> - <variable name="typewriter" + <variable name="typewriter" select="($style mod (2 * $TYPEWRITER_BIT)) - ($style mod ($TYPEWRITER_BIT)) != 0"/> - <variable name="bold-left" + <variable name="bold-left" select="($style-left mod (2 * $BOLD_BIT)) != 0"/> - <variable name="italic-left" + <variable name="italic-left" select="($style-left mod (2 * $ITALIC_BIT)) - ($style-left mod ($ITALIC_BIT)) != 0"/> - <variable name="superscript-left" + <variable name="superscript-left" select="($style-left mod (2 * $SUPERSCRIPT_BIT)) - ($style-left mod ($SUPERSCRIPT_BIT)) != 0"/> - <variable name="subscript-left" + <variable name="subscript-left" select="($style-left mod (2 * $SUBSCRIPT_BIT)) - ($style-left mod ($SUBSCRIPT_BIT)) != 0"/> - <variable name="typewriter-left" + <variable name="typewriter-left" select="($style-left mod (2 * $TYPEWRITER_BIT)) - ($style-left mod ($TYPEWRITER_BIT)) != 0"/> - <variable name="bold-right" + <variable name="bold-right" select="($style-right mod (2 * $BOLD_BIT)) != 0"/> - <variable name="italic-right" + <variable name="italic-right" select="($style-right mod (2 * $ITALIC_BIT)) - ($style-right mod ($ITALIC_BIT)) != 0"/> - <variable name="superscript-right" + <variable name="superscript-right" select="($style-right mod (2 * $SUPERSCRIPT_BIT)) - ($style-right mod ($SUPERSCRIPT_BIT)) != 0"/> - <variable name="subscript-right" + <variable name="subscript-right" select="($style-right mod (2 * $SUBSCRIPT_BIT)) - ($style-right mod ($SUBSCRIPT_BIT)) != 0"/> - <variable name="typewriter-right" + <variable name="typewriter-right" select="($style-right mod (2 * $TYPEWRITER_BIT)) - ($style-right mod ($TYPEWRITER_BIT)) != 0"/> <!-- Debugging: Add style infos to the output. --> - <!-- + <!-- <value-of select="'{'"/> <value-of select="$style-left"/> <value-of select="'-'"/> @@ -1055,7 +1055,7 @@ </if> <!-- Debugging: Add style details to the output. --> - <!-- + <!-- <value-of select="'{'"/> <value-of select="$style"/> <value-of select="'-'"/> @@ -1067,21 +1067,21 @@ </choose> </template> - <!-- - Function for looking up the position of a node identified by the given - 'current-id' within a node set 'context'. - - The search starts with the index 'test-index'. The search is recursive - in the 'test-index' argument. To save recursion depth, each recursive call + <!-- + Function for looking up the position of a node identified by the given + 'current-id' within a node set 'context'. + + The search starts with the index 'test-index'. The search is recursive + in the 'test-index' argument. To save recursion depth, each recursive call iteratively tests a fixed number of indexes (by loop unrolling). --> <template name="mk-context-index"> <param name="current-id"/> <param name="context"/> <param name="test-index"/> - + <variable name="context-size" select="count($context)"/> - + <choose> <when test="context-size < $test-index"> </when> @@ -1124,10 +1124,10 @@ </otherwise> </choose> </template> - + <template name="render-quoted-text"> <param name="text"/> - + <choose> <when test="contains($text, '<') or contains($text, '[') or starts-with($text, '----') or starts-with($text, '=') or starts-with($text, '*') or starts-with($text, ';') or starts-with($text, '#')"> <text><nowiki></text> @@ -1143,7 +1143,7 @@ </call-template> </otherwise> </choose> - <text></nowiki></text> + <text></nowiki></text> </when> <otherwise> <call-template name="render-encoded-text"> @@ -1155,7 +1155,7 @@ <template name="render-escaped-text"> <param name="text"/> - + <choose> <when test="contains($text, '<')"> <call-template name="render-encoded-text"> @@ -1176,7 +1176,7 @@ <template name="render-encoded-text"> <param name="text"/> - + <choose> <when test="contains($text, ' ')"> <value-of select="substring-before($text, ' ')"/> @@ -1191,34 +1191,34 @@ </choose> </template> - <!-- - == Wiki styles: bold, italics, ... == + <!-- + == Wiki styles: bold, italics, ... == --> <template name="mk-style-set"> <param name="node"/> - - <variable - name="context" + + <variable + name="context" select="$node/ancestor-or-self::*[@text:style-name][1]" /> - + <choose> <when test="boolean($context)"> - <variable - name="style" + <variable + name="style" select="key('style-ref', $context/@text:style-name)" /> - <!-- Debugging: Print inspected styles. --> - <!-- + <!-- Debugging: Print inspected styles. --> + <!-- <message> <value-of select="'=== '"/> <value-of select="$style/@style:name"/> <value-of select="' ==='"/> </message> --> - + <call-template name="mk-style-set-internal"> <with-param name="node" select="$context"/> <with-param name="style" select="$style"/> @@ -1231,24 +1231,24 @@ </otherwise> </choose> </template> - - <!-- - Compute the wiki style set that corresponds - to the given office style at the given context node. - + + <!-- + Compute the wiki style set that corresponds + to the given office style at the given context node. + @param node - A node in which context the style is computed. If neither the given style - nor one of its linked styles does specify a style of the given type, + A node in which context the style is computed. If neither the given style + nor one of its linked styles does specify a style of the given type, ancestor nodes of the given context node are considered. @param style A style:style element node. The style of the requested type is searched - in the given style and its linked styles. + in the given style and its linked styles. @style-set A bit set of styles already defined by the context. @style-mask - A bit set of styles that must not be taken from the currently inspected + A bit set of styles that must not be taken from the currently inspected style, because those styles are already defined by the context. - + @return A bit set composed of the wiki style constants. --> <template name="mk-style-set-internal"> @@ -1256,27 +1256,27 @@ <param name="style"/> <param name="style-set"/> <param name="style-mask"/> - + <variable name="text-properties" select="$style/style:text-properties"/> - + <!-- Decompose style-mask into individual bits. --> - <variable name="bold-requested" + <variable name="bold-requested" select="($style-mask mod (2 * $BOLD_BIT)) = 0"/> - <variable name="italic-requested" + <variable name="italic-requested" select="($style-mask mod (2 * $ITALIC_BIT)) - ($style-mask mod ($ITALIC_BIT)) = 0"/> - <variable name="superscript-requested" + <variable name="superscript-requested" select="($style-mask mod (2 * $SUPERSCRIPT_BIT)) - ($style-mask mod ($SUPERSCRIPT_BIT)) = 0"/> - <variable name="subscript-requested" + <variable name="subscript-requested" select="($style-mask mod (2 * $SUBSCRIPT_BIT)) - ($style-mask mod ($SUBSCRIPT_BIT)) = 0"/> - <variable name="typewriter-requested" + <variable name="typewriter-requested" select="($style-mask mod (2 * $TYPEWRITER_BIT)) - ($style-mask mod ($TYPEWRITER_BIT)) = 0"/> - <variable name="code-requested" + <variable name="code-requested" select="($style-mask mod (2 * $CODE_BIT)) - ($style-mask mod ($CODE_BIT)) = 0"/> - <variable name="center-requested" + <variable name="center-requested" select="($style-mask mod (2 * $CENTER_BIT)) - ($style-mask mod ($CENTER_BIT)) = 0"/> - <variable name="right-requested" + <variable name="right-requested" select="($style-mask mod (2 * $RIGHT_BIT)) - ($style-mask mod ($RIGHT_BIT)) = 0"/> - + <!-- Extract styles that are not already defined by the context. --> <variable name="bold-style"> <choose> @@ -1292,8 +1292,8 @@ <variable name="bold-mask"> <choose> <when test="$bold-requested and boolean($text-properties/@fo:font-weight)"> - <!-- - Other value than "bold" means that the character style is not + <!-- + Other value than "bold" means that the character style is not bold and no parent style must be considered. --> <value-of select="$BOLD_BIT"/> @@ -1303,7 +1303,7 @@ </otherwise> </choose> </variable> - + <variable name="italic-style"> <choose> <when test="$italic-requested and boolean($text-properties/@fo:font-style='italic')"> @@ -1318,8 +1318,8 @@ <variable name="italic-mask"> <choose> <when test="$italic-requested and boolean($text-properties/@fo:font-style)"> - <!-- - Other value than "italic" means that the character style is not + <!-- + Other value than "italic" means that the character style is not italic and no parent style must be considered. --> <value-of select="$ITALIC_BIT"/> @@ -1375,7 +1375,7 @@ <variable name="typewriter-style"> <choose> <when test="$typewriter-requested and ($style/@style:family='text') and boolean($text-properties/@style:font-name)"> - <variable name="font-face" + <variable name="font-face" select="key('font-face-ref', $text-properties/@style:font-name)"/> <choose> <when test="$font-face/@style:font-pitch='fixed'"> @@ -1406,7 +1406,7 @@ <variable name="code-style"> <choose> <when test="$code-requested and ($style/@style:family='paragraph') and boolean($text-properties/@style:font-name)"> - <variable name="font-face" + <variable name="font-face" select="key('font-face-ref', $text-properties/@style:font-name)"/> <choose> <when test="$font-face/@style:font-pitch='fixed' or (boolean(@style:display-name) and contains($CODE_STYLES, $style/@style:display-name))"> @@ -1432,7 +1432,7 @@ </otherwise> </choose> </variable> - + <variable name="center-style"> <choose> <when test="$center-requested and ($style/@style:family='paragraph') and boolean($style/style:paragraph-properties/@fo:text-align='center')"> @@ -1474,16 +1474,16 @@ </otherwise> </choose> </variable> - + <!-- Compute the updated styles and mask. --> - <!-- - Note: The bit masks style-mask, bold-style, italic-style,... are - guaranteed to be disjoint, therefore, addition can be use instead + <!-- + Note: The bit masks style-mask, bold-style, italic-style,... are + guaranteed to be disjoint, therefore, addition can be use instead of bitwise or (which is missing in XPath). --> - <variable name="updated-style" + <variable name="updated-style" select="$style-set + $bold-style + $italic-style + $superscript-style + $subscript-style + $code-style + $typewriter-style + $center-style + $right-style"/> - <variable name="updated-mask" + <variable name="updated-mask" select="$style-mask + $bold-mask + $italic-mask + $superscript-mask + $subscript-mask + $code-mask + $typewriter-mask + $center-mask + $right-mask"/> <!-- Inspect linked and nested styles. --> @@ -1499,9 +1499,9 @@ </when> <otherwise> <variable name="ancestors" select="$node/ancestor::*[@text:style-name][1]"/> - + <!-- Debugging: Print currently inspected style. --> - <!-- + <!-- <message> <value-of select="'{'"/> <value-of select="$style/@style:name"/> @@ -1517,9 +1517,9 @@ <value-of select="'}'"/> </message> --> - - <!-- - If there is an ancestor that has a style, use that style, + + <!-- + If there is an ancestor that has a style, use that style, otherwise, a style is not found. --> <choose> <when test="boolean($ancestors)"> @@ -1541,8 +1541,8 @@ </template> - <!-- - == Descending the tree == + <!-- + == Descending the tree == --> <template match="/"> @@ -1556,7 +1556,7 @@ <value-of select="$NL"/> </if> </template> - + <template match="office:document-content"> <apply-templates/> </template> diff --git a/main/writerfilter/source/dmapper/genclass.xsl b/main/writerfilter/source/dmapper/genclass.xsl index 782f8e6c541..38ebd177574 100644 --- a/main/writerfilter/source/dmapper/genclass.xsl +++ b/main/writerfilter/source/dmapper/genclass.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes = "xalan" @@ -23,7 +23,7 @@ <xsl:template name="license"> <xsl:text>/************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -31,16 +31,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ </xsl:text> </xsl:template> @@ -75,7 +75,7 @@ <xsl:with-param name="string" select="$member"/> </xsl:call-template> </xsl:template> - + <xsl:template name="incfile"> <xsl:call-template name="license"/> <xsl:for-each select="//class"> @@ -212,7 +212,7 @@ <xsl:text>PushBack</xsl:text> </xsl:template> - <xsl:template name="settersig"> + <xsl:template name="settersig"> <xsl:param name="classname"/> <xsl:variable name="impl"> <xsl:if test="string-length($classname) > 0"> @@ -235,7 +235,7 @@ </xsl:template> <xsl:template name="gettersig"> - <xsl:param name="classname"/> + <xsl:param name="classname"/> <xsl:variable name="impl"> <xsl:if test="string-length($classname) > 0"> <xsl:text>true</xsl:text> @@ -249,13 +249,13 @@ <xsl:if test="string-length($classname) > 0"> <xsl:value-of select="$classname"/> <xsl:text>::</xsl:text> - </xsl:if> + </xsl:if> <xsl:call-template name="gettername"/> <xsl:text>() const</xsl:text> </xsl:template> - + <xsl:template name="pushbacksig"> - <xsl:param name="classname"/> + <xsl:param name="classname"/> <xsl:variable name="pushback"> <xsl:call-template name="pushbackname"/> </xsl:variable> @@ -266,7 +266,7 @@ <xsl:if test="string-length($classname) > 0"> <xsl:value-of select="$classname"/> <xsl:text>::</xsl:text> - </xsl:if> + </xsl:if> <xsl:value-of select="$pushback"/> <xsl:text>(</xsl:text> <xsl:call-template name="constcctyperef"> @@ -619,7 +619,7 @@ <xsl:text> } </xsl:text> </xsl:for-each> </xsl:template> - + <xsl:template name="constructorimpl"> <xsl:text> </xsl:text> <xsl:value-of select="@name"/> @@ -632,7 +632,7 @@ <xsl:text>,</xsl:text> <xsl:text> </xsl:text> </xsl:if> - <xsl:call-template name="memberid"/> + <xsl:call-template name="memberid"/> <xsl:choose> <xsl:when test="@type='sal_uInt32'"> <xsl:text>(0)</xsl:text> @@ -650,7 +650,7 @@ <xsl:text> {</xsl:text> <xsl:text> } </xsl:text> </xsl:template> - + <xsl:template name="destructorimpl"> <xsl:text> </xsl:text> <xsl:value-of select="@name"/> @@ -660,7 +660,7 @@ <xsl:text> {</xsl:text> <xsl:text> } </xsl:text> </xsl:template> - + <xsl:template name="classimpl"> <xsl:variable name="classname" select="@name"/> <xsl:variable name="comment"> @@ -668,7 +668,7 @@ <xsl:value-of select="$classname"/> </xsl:variable> <xsl:variable name="commentfill"> - <xsl:value-of select="translate($comment, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ: ', + <xsl:value-of select="translate($comment, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ: ', '******************************************************')"/> </xsl:variable> <xsl:text> /***</xsl:text> diff --git a/main/writerfilter/source/doctok/WW8inc.xsl b/main/writerfilter/source/doctok/WW8inc.xsl index ac87b43c793..e9efb7fb9d8 100644 --- a/main/writerfilter/source/doctok/WW8inc.xsl +++ b/main/writerfilter/source/doctok/WW8inc.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> @@ -49,7 +49,7 @@ <xsl:variable name="bits"><xsl:value-of select="xhtml:td[5]"/></xsl:variable> <xsl:variable name="mask"><xsl:value-of select="xhtml:td[6]"/></xsl:variable> <xsl:variable name="comment"><xsl:value-of select="xhtml:td[7]"/></xsl:variable> -/** +/** <xsl:value-of select="$comment"/> offset : <xsl:value-of select="$offset"/> diff --git a/main/writerfilter/source/doctok/WW8sprms.xsl b/main/writerfilter/source/doctok/WW8sprms.xsl index 8087746befd..820110e8e0d 100644 --- a/main/writerfilter/source/doctok/WW8sprms.xsl +++ b/main/writerfilter/source/doctok/WW8sprms.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,19 +7,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:output method="xml" indent="yes"/> diff --git a/main/writerfilter/source/doctok/WW8xmi.xsl b/main/writerfilter/source/doctok/WW8xmi.xsl index a3485002803..0e7b1222bbe 100644 --- a/main/writerfilter/source/doctok/WW8xmi.xsl +++ b/main/writerfilter/source/doctok/WW8xmi.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:output method="xml" indent="yes"/> diff --git a/main/writerfilter/source/doctok/analyzer.xsl b/main/writerfilter/source/doctok/analyzer.xsl index d034872e858..3a371b5c58d 100644 --- a/main/writerfilter/source/doctok/analyzer.xsl +++ b/main/writerfilter/source/doctok/analyzer.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:include href="resourcetools.xsl"/> diff --git a/main/writerfilter/source/doctok/compactxmi.xsl b/main/writerfilter/source/doctok/compactxmi.xsl index 8c840cbcdf5..fa6644294c9 100644 --- a/main/writerfilter/source/doctok/compactxmi.xsl +++ b/main/writerfilter/source/doctok/compactxmi.xsl @@ -1,11 +1,11 @@ -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:UML = 'org.omg.xmi.namespace.UML' +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:UML = 'org.omg.xmi.namespace.UML' xmlns:exslt="http://exslt.org/common" xml:space="default"> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -13,16 +13,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:output method="xml"/> @@ -105,7 +105,7 @@ <xsl:value-of select="UML:TaggedValue.dataValue"/> </xsl:for-each> </xsl:template> - + <xsl:template name="sizefortype"> <xsl:param name="type"/> <xsl:choose> @@ -153,7 +153,7 @@ <xsl:variable name="size"> <xsl:call-template name="sizefortype"> <xsl:with-param name="type" select="$type"/> - </xsl:call-template> + </xsl:call-template> </xsl:variable> <xsl:variable name="arraycount"> <xsl:call-template name="gettaggedvalue"> diff --git a/main/writerfilter/source/doctok/escherdoc.xsl b/main/writerfilter/source/doctok/escherdoc.xsl index b18feb272fa..b297e61eac7 100644 --- a/main/writerfilter/source/doctok/escherdoc.xsl +++ b/main/writerfilter/source/doctok/escherdoc.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,24 +7,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> - <out> + <out> <xsl:for-each select="//xhtml:table"> <xsl:apply-templates select="." mode="eschertable"/> </xsl:for-each> @@ -36,7 +36,7 @@ </xsl:template> <xsl:template match="xhtml:tr" mode="eschertable"> - <xsl:variable name="name"> + <xsl:variable name="name"> <xsl:value-of select=".//xhtml:td[1]"/> </xsl:variable> <UML:Class> diff --git a/main/writerfilter/source/doctok/qnametostr.xsl b/main/writerfilter/source/doctok/qnametostr.xsl index 4a7924912d6..ad7a991bb3a 100644 --- a/main/writerfilter/source/doctok/qnametostr.xsl +++ b/main/writerfilter/source/doctok/qnametostr.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> diff --git a/main/writerfilter/source/doctok/resourceidmapper.xsl b/main/writerfilter/source/doctok/resourceidmapper.xsl index 362b3a7348a..a29c9e47e04 100644 --- a/main/writerfilter/source/doctok/resourceidmapper.xsl +++ b/main/writerfilter/source/doctok/resourceidmapper.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,19 +7,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -33,7 +33,7 @@ /* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! - + */ package analyze; @@ -47,7 +47,7 @@ import java.util.LinkedHashMap; public class ResourceIdMap extends LinkedHashMap <String, Integer > { static ResourceIdMap mInstance = new ResourceIdMap(); - + /** Creates a new instance of ResourceIdMap */ protected ResourceIdMap() { /* Attributes */ </xsl:text> diff --git a/main/writerfilter/source/doctok/resourceidmapperback.xsl b/main/writerfilter/source/doctok/resourceidmapperback.xsl index 93f9615fae0..b87cc3651dc 100644 --- a/main/writerfilter/source/doctok/resourceidmapperback.xsl +++ b/main/writerfilter/source/doctok/resourceidmapperback.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,19 +7,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -33,7 +33,7 @@ /* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! - + */ package analyze; @@ -47,7 +47,7 @@ import java.util.LinkedHashMap; public class ResourceIdMapBackwards extends LinkedHashMap <Integer, String > { static ResourceIdMapBackwards mInstance = new ResourceIdMapBackwards(); - + /** Creates a new instance of ResourceIdMapBackwards */ protected ResourceIdMapBackwards() { /* Attributes */ </xsl:text> diff --git a/main/writerfilter/source/doctok/resourceids.xsl b/main/writerfilter/source/doctok/resourceids.xsl index 59e261e9615..8321319edef 100644 --- a/main/writerfilter/source/doctok/resourceids.xsl +++ b/main/writerfilter/source/doctok/resourceids.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -32,7 +32,7 @@ <out> <xsl:text> /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -40,21 +40,21 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ /* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! - + */ #ifndef INCLUDED_RESOURCESIDS #define INCLUDED_RESOURCESIDS diff --git a/main/writerfilter/source/doctok/resources.xsl b/main/writerfilter/source/doctok/resources.xsl index c2bacfb722a..485b8ce2cc5 100644 --- a/main/writerfilter/source/doctok/resources.xsl +++ b/main/writerfilter/source/doctok/resources.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -28,7 +28,7 @@ <out xml:space="preserve"> <xsl:text> /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -36,18 +36,18 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -/* +/* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! @@ -96,7 +96,7 @@ bool isBooleanDffOpt(sal_uInt32 nId); }} #endif // INCLUDED_RESOURCES_HXX </xsl:text></out> </xsl:template> - + <xsl:template match="UML:Class" mode="class"> <xsl:choose> <xsl:when test='.//UML:Stereotype[@xmi.idref = "ww8resource"]'> @@ -193,8 +193,8 @@ class </xsl:text> </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>( - WW8Stream & rStream, - sal_uInt32 nOffset = 0, + WW8Stream & rStream, + sal_uInt32 nOffset = 0, sal_uInt32 nCount = </xsl:text> <xsl:value-of select='$size'/> <xsl:text>) @@ -211,7 +211,7 @@ class </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>( WW8StructBase * pParent, - sal_uInt32 nOffset = 0, + sal_uInt32 nOffset = 0, sal_uInt32 nCount = </xsl:text> <xsl:value-of select='$size'/> <xsl:text>) @@ -245,8 +245,8 @@ class </xsl:text> </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>( - const Sequence & - rSequence, sal_uInt32 nOffset = 0, + const Sequence & + rSequence, sal_uInt32 nOffset = 0, sal_uInt32 nCount = </xsl:text> <xsl:value-of select='$size'/> <xsl:text>) @@ -293,8 +293,8 @@ class </xsl:text> <xsl:text> /** Calculate actual size. - */ - sal_uInt32 calcSize(); + */ + sal_uInt32 calcSize(); </xsl:text> </xsl:if> <xsl:if test='.//UML:Stereotype[@xmi.idref ="plcf"]'> @@ -342,7 +342,7 @@ class </xsl:text> sal_uInt32 getPayloadSize(sal_uInt32 nIndex) const { return payloadOffsets[nIndex + 1] - payloadOffsets[nIndex]; - } + } /** @@ -366,19 +366,19 @@ class </xsl:text> </xsl:text> </xsl:if> <xsl:if test='.//UML:Stereotype[@xmi.idref ="ww8sprm"]'> - <xsl:variable name='propsreftype'>writerfilter::Reference < Properties >::Pointer_t</xsl:variable> + <xsl:variable name='propsreftype'>writerfilter::Reference < Properties >::Pointer_t</xsl:variable> <xsl:text> /** Return reference to properties of Sprm. */ </xsl:text> <xsl:value-of select='$propsreftype'/> <xsl:text> getProps() - { + { return </xsl:text> <xsl:value-of select='$propsreftype'/> <xsl:text> (new </xsl:text> <xsl:value-of select='$classname'/> - <xsl:text>(*this)); + <xsl:text>(*this)); } </xsl:text> </xsl:if> @@ -413,7 +413,7 @@ class </xsl:text> }; </xsl:text> </xsl:template> - + <xsl:template match='UML:Class' mode='declsProperties'> <xsl:choose> <xsl:when test='.//UML:Stereotype[@xmi.idref ="withmembers"]'> @@ -493,10 +493,10 @@ class </xsl:text> <xsl:with-param name='type'><xsl:value-of select="$type"/></xsl:with-param> </xsl:call-template> </xsl:variable> - + /** <xsl:value-of select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="comment"]/UML:TaggedValue.dataValue'/> - + <table> <tr> <th> @@ -532,7 +532,7 @@ class </xsl:text> </tr> </table> */ - + <xsl:choose> <xsl:when test='$stereotype = "attribute"'> <xsl:if test='././/UML:Stereotype[@xmi.idref="virtual"]'> @@ -544,7 +544,7 @@ class </xsl:text> <xsl:text> clog << "<called></xsl:text> <xsl:value-of select="@name"/> - <xsl:text></called>" + <xsl:text></called>" << endl; </xsl:text> </xsl:if> @@ -788,7 +788,7 @@ class </xsl:text> <xsl:text>Dff</xsl:text><xsl:value-of select="@name"/> </xsl:variable> <xsl:text> -/** +/** Automaticallay generated class: </xsl:text> <xsl:value-of select="$classname"/> @@ -828,7 +828,7 @@ public: virtual DffRecord * clone() const { return new </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>(*this); } - virtual string getType() const + virtual string getType() const { return "</xsl:text> <xsl:value-of select="$classname"/> @@ -850,7 +850,7 @@ public: <xsl:text>DffOpt</xsl:text><xsl:value-of select="@name"/> </xsl:variable> <xsl:text> -/** +/** Automaticallay generated class: </xsl:text> <xsl:value-of select="$classname"/> @@ -873,7 +873,7 @@ class </xsl:text> <xsl:text> }; -</xsl:text> +</xsl:text> --> </xsl:template> diff --git a/main/writerfilter/source/doctok/resourcesimpl.xsl b/main/writerfilter/source/doctok/resourcesimpl.xsl index 0092f13af7f..0999d33c728 100644 --- a/main/writerfilter/source/doctok/resourcesimpl.xsl +++ b/main/writerfilter/source/doctok/resourcesimpl.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -49,12 +49,12 @@ using namespace ::std; <xsl:apply-templates select='/XMI/XMI.content/UML:Model' mode="sprmkind"/> <xsl:apply-templates select='.//UML:Class' mode='class'/> <xsl:apply-templates select='//UML:Model' mode='createsprmprops'/> - <xsl:apply-templates select='/XMI/XMI.content/UML:Model' + <xsl:apply-templates select='/XMI/XMI.content/UML:Model' mode='createsprmbinary'/> - <xsl:apply-templates select='/XMI/XMI.content/UML:Model' + <xsl:apply-templates select='/XMI/XMI.content/UML:Model' mode='createdffrecord'/> <xsl:apply-templates select='/XMI/XMI.content/UML:Model' mode='ww8foptename'/> - <xsl:apply-templates select='/XMI/XMI.content/UML:Model' + <xsl:apply-templates select='/XMI/XMI.content/UML:Model' mode='isbooleandffopt'/> <xsl:text> }} @@ -65,8 +65,8 @@ using namespace ::std; <xsl:choose> <xsl:when test='.//UML:Stereotype[@xmi.idref = "ww8resource"]'> <xsl:apply-templates select="." mode="ww8resource"> - <xsl:with-param name="classprefix">WW8</xsl:with-param> - <xsl:with-param name="needsinit">true</xsl:with-param> + <xsl:with-param name="classprefix">WW8</xsl:with-param> + <xsl:with-param name="needsinit">true</xsl:with-param> </xsl:apply-templates> </xsl:when> <xsl:when test='.//UML:Stereotype[@xmi.idref = "dffrecord"]'> @@ -123,7 +123,7 @@ using namespace ::std; <xsl:text> */ </xsl:text> - + <xsl:value-of select="$classname"/> <xsl:text>::~</xsl:text> <xsl:value-of select="$classname"/> @@ -137,7 +137,7 @@ using namespace ::std; <xsl:value-of select="$classname"/> <xsl:text>::init() { - </xsl:text> + </xsl:text> <xsl:if test='.//UML:Stereotype[@xmi.idref ="withmembers"]'> <xsl:for-each select='.//UML:Attribute[@name!="reserved"]'> <xsl:apply-templates select='.' mode='initmembers'/> @@ -206,7 +206,7 @@ using namespace ::std; dump(output);</xsl:text> </xsl:if> <xsl:text> - try + try {</xsl:text> <xsl:for-each select='.//UML:Attribute[@name!="reserved"]'> <xsl:choose> @@ -225,8 +225,8 @@ using namespace ::std; <xsl:apply-templates select='.' mode='resolveOperation'/> </xsl:otherwise> </xsl:choose> - </xsl:for-each> - + </xsl:for-each> + <xsl:if test='.//UML:Stereotype[@xmi.idref = "resolvenoauto"]'> resolveNoAuto(rHandler); </xsl:if> @@ -236,7 +236,7 @@ using namespace ::std; } } - void + void </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>::dump(OutputWithDepth < string > & o) const @@ -244,7 +244,7 @@ using namespace ::std; o.addItem("<dump type='</xsl:text> <xsl:value-of select='@name'/> <xsl:text>'>"); - + WW8StructBase::dump(o);</xsl:text> <xsl:for-each select='.//UML:Attribute[@name!="reserved"]'> <xsl:apply-templates select='.' mode='dumpAttribute'/> @@ -295,7 +295,7 @@ using namespace ::std; { sal_uInt32 nCount = get_</xsl:text> <xsl:value-of select="@name"/> - <xsl:text>_count(); + <xsl:text>_count(); for (sal_uInt32 n = 0; n < nCount; ++n) { WW8Value::Pointer_t pVal = createValue(get_</xsl:text> @@ -335,7 +335,7 @@ using namespace ::std; </xsl:call-template> </xsl:variable> <xsl:variable name="name" select="@name"/> - <xsl:for-each select=".//UML:Stereotype"> + <xsl:for-each select=".//UML:Stereotype"> <xsl:choose> <xsl:when test='@xmi.idref = "attributeremainder"'/> <xsl:when test='@xmi.idref = "array"'> @@ -344,7 +344,7 @@ using namespace ::std; sal_uInt32 nCount = get_</xsl:text> <xsl:value-of select='$name'/> <xsl:text>_count(); - + for (sal_uInt32 n = 0; n < nCount; ++n) { writerfilter::dump(o, "</xsl:text> @@ -361,7 +361,7 @@ using namespace ::std; WW8StringValue aVal(get_</xsl:text> <xsl:value-of select='$name'/> <xsl:text>()); - + o.addItem("</xsl:text> <xsl:value-of select='$name'/> <xsl:text>" << "=\"" + aVal.toString() + "\""); @@ -417,7 +417,7 @@ using namespace ::std; sal_uInt32 nCount = get_</xsl:text> <xsl:value-of select="@name"/> <xsl:text>_count(); - + for (sal_uInt32 n = 0; n < nCount; ++n) { WW8Value::Pointer_t pVal = createValue(get_</xsl:text> @@ -439,7 +439,7 @@ using namespace ::std; <xsl:value-of select="@name"/> <xsl:text>()); WW8Sprm aSprm(pRef); - + rHandler.sprm(aSprm); } </xsl:text> </xsl:template> @@ -469,15 +469,15 @@ using namespace ::std; for (sal_uInt32 n = 0; n < nCount; ++n) { pEntry = getEntry(n); - + if (pEntry.get() != 0x0) { - try + try { rHandler.entry(n, pEntry); } catch (ExceptionOutOfBounds e) - { + { (void) e; } } @@ -525,10 +525,10 @@ writerfilter::Reference < BinaryObj > ::Pointer_t createSprmBinary case <xsl:value-of select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="sprmcode"]//UML:TaggedValue.dataValue'/>: { WW8<xsl:value-of select='@name'/>::Pointer_t p(new WW8<xsl:value-of select='@name'/>(rProp, 0, rProp.getCount())); - + pResult = p->getBinary(); } - + break; </xsl:for-each> <xsl:text> @@ -672,7 +672,7 @@ rtl::OUString WW8FOPTE::get_name() WW8Value::Pointer_t WW8FOPTE::get_stringValue() { WW8Value::Pointer_t pResult; - DffOPT * pOpt = dynamic_cast < DffOPT * >(mpParent); + DffOPT * pOpt = dynamic_cast < DffOPT * >(mpParent); sal_uInt32 nExtraOffset = pOpt->get_extraoffset(mnIndex); sal_uInt32 nExtraLength = pOpt->get_extraoffset(mnIndex + 1) - nExtraOffset; pResult = createValue(mpParent->getString(nExtraOffset, nExtraLength / 2)); @@ -704,7 +704,7 @@ DffRecord * createDffRecord pResult = new Dff</xsl:text> <xsl:value-of select="@name"/> <xsl:text>(pParent, nOffset, nSize); - + break; </xsl:text> </xsl:for-each> <xsl:text> @@ -736,7 +736,7 @@ DffRecord * createDffRecord pResult = new Dff</xsl:text> <xsl:value-of select="@name"/> <xsl:text>(rStream, nOffset, nSize); - + break; </xsl:text> </xsl:for-each> <xsl:text> @@ -839,7 +839,7 @@ bool isBooleanDffOpt(sal_uInt32 nId) default: break; } - + return bResult; } </xsl:text> diff --git a/main/writerfilter/source/doctok/resourcetools.xsl b/main/writerfilter/source/doctok/resourcetools.xsl index a481ce12b80..ec8665ab8bb 100644 --- a/main/writerfilter/source/doctok/resourcetools.xsl +++ b/main/writerfilter/source/doctok/resourcetools.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -237,7 +237,7 @@ string qnameToString(sal_uInt32 nToken) default: ; } - + return sResult; }</xsl:text> </xsl:template> @@ -252,7 +252,7 @@ SprmIdToString::SprmIdToString() <xsl:call-template name="sprmCodeOfClass"/> </xsl:variable> <xsl:text> - mMap[</xsl:text> + mMap[</xsl:text> <xsl:value-of select="$sprmconst"/> <xsl:text>] = "</xsl:text> <xsl:value-of select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="sprmid"]//UML:TaggedValue.dataValue'/> @@ -524,7 +524,7 @@ void doctokidsToXML(::std::ostream & out) <xsl:template name="licenseheader"> <xsl:text> /************************************************************* - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -532,18 +532,18 @@ void doctokidsToXML(::std::ostream & out) * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ -/* +/* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! diff --git a/main/writerfilter/source/doctok/sprmcodetostr.xsl b/main/writerfilter/source/doctok/sprmcodetostr.xsl index e9e019fd115..cb249094dce 100644 --- a/main/writerfilter/source/doctok/sprmcodetostr.xsl +++ b/main/writerfilter/source/doctok/sprmcodetostr.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> diff --git a/main/writerfilter/source/doctok/sprmids.xsl b/main/writerfilter/source/doctok/sprmids.xsl index 992cfb68709..f244783673c 100644 --- a/main/writerfilter/source/doctok/sprmids.xsl +++ b/main/writerfilter/source/doctok/sprmids.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> @@ -30,7 +30,7 @@ <out> <xsl:text> /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -38,21 +38,21 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ /* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! - + */ #ifndef INCLUDED_SPRMIDS #define INCLUDED_SPRMIDS diff --git a/main/writerfilter/source/doctok/tidyxmi.xsl b/main/writerfilter/source/doctok/tidyxmi.xsl index d2ec4045907..5043b87460c 100644 --- a/main/writerfilter/source/doctok/tidyxmi.xsl +++ b/main/writerfilter/source/doctok/tidyxmi.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> @@ -49,7 +49,7 @@ <xsl:copy-of select="UML:TagDefinition"/> <xsl:comment>Tag definitions </xsl:comment> <xsl:comment>Classes without stereotype</xsl:comment> - <xsl:apply-templates select="UML:Class[count(./UML:ModelElement.stereotype) = 0]"/> + <xsl:apply-templates select="UML:Class[count(./UML:ModelElement.stereotype) = 0]"/> <xsl:comment>Classes without stereotype</xsl:comment> <xsl:comment>Resources</xsl:comment> <xsl:copy-of select="UML:Class[UML:ModelElement.stereotype/UML:Stereotype/@xmi.idref='resource']"/> @@ -68,7 +68,7 @@ <xsl:comment>DFFOPT</xsl:comment> </xsl:template> -<xsl:key name="generalization" match="UML:Generalization" +<xsl:key name="generalization" match="UML:Generalization" use="UML:Generalization.child/UML:Class/@xmi.idref"/> <xsl:template match="UML:Class[count(UML:ModelElement.stereotype) = 0]"> diff --git a/main/writerfilter/source/doctok/xmigen.xsl b/main/writerfilter/source/doctok/xmigen.xsl index 489850be047..0271a7fd6ca 100644 --- a/main/writerfilter/source/doctok/xmigen.xsl +++ b/main/writerfilter/source/doctok/xmigen.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,20 +7,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:UML = 'org.omg.xmi.namespace.UML' +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="xml"/> @@ -52,7 +52,7 @@ <xsl:when test="following-sibling::*"> <xsl:for-each select="following-sibling::*[1]"> <xsl:call-template name="calcsizeinner"> - <xsl:with-param name="size" + <xsl:with-param name="size" select="number($size) + number($mysize)"/> </xsl:call-template> </xsl:for-each> @@ -257,7 +257,7 @@ </UML:TagDefinition> </UML:TaggedValue.type> </UML:TaggedValue> - </UML:ModelElement.taggedValue> + </UML:ModelElement.taggedValue> </xsl:template> <xsl:template match="attribute"> @@ -289,7 +289,7 @@ <xsl:with-param name="value"></xsl:with-param> </xsl:call-template> <xsl:call-template name="taggedvalue"> - <xsl:with-param name="type">attrid</xsl:with-param> + <xsl:with-param name="type">attrid</xsl:with-param> <xsl:with-param name="value"> <xsl:choose> <xsl:when test="@token"> @@ -522,7 +522,7 @@ </xsl:when> <xsl:otherwise> <xsl:text>rtf:</xsl:text> - <xsl:value-of select="@name"/> + <xsl:value-of select="@name"/> </xsl:otherwise> </xsl:choose> </xsl:with-param> @@ -533,7 +533,7 @@ <xsl:with-param name="value"> <xsl:value-of select="@array-count"/> </xsl:with-param> - </xsl:call-template> + </xsl:call-template> </xsl:if> <UML:BehavioralFeature.parameter> <UML:Parameter kind="return" name="return"> diff --git a/main/writerfilter/source/doctok/xmistat.xsl b/main/writerfilter/source/doctok/xmistat.xsl index 06fb0f84849..6f0b6687ccb 100644 --- a/main/writerfilter/source/doctok/xmistat.xsl +++ b/main/writerfilter/source/doctok/xmistat.xsl @@ -1,5 +1,5 @@ /************************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * *************************************************************/ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> diff --git a/main/writerfilter/source/ooxml/analyzemodel.xsl b/main/writerfilter/source/ooxml/analyzemodel.xsl index c801ad533ee..e48cc367bcd 100644 --- a/main/writerfilter/source/ooxml/analyzemodel.xsl +++ b/main/writerfilter/source/ooxml/analyzemodel.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,20 +8,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0"> <xsl:include href="factorytools.xsl"/> @@ -41,7 +41,7 @@ <xsl:variable name="defname" select="@name"/> <xsl:for-each select=".//rng:attribute|.//rng:element"> <xsl:choose> - <xsl:when test="local-name()='element'"> + <xsl:when test="local-name()='element'"> <element> <xsl:call-template name="defineattrs"> <xsl:with-param name="nsname" select="$nsname"/> @@ -75,7 +75,7 @@ <xsl:value-of select="$defname"/> <xsl:text>:</xsl:text> <xsl:value-of select="@name"/> - </xsl:attribute> + </xsl:attribute> <xsl:for-each select="ancestor::namespace/resource[@name=$defname]"> <xsl:attribute name="resource"><xsl:value-of select="@resource"/></xsl:attribute> <xsl:choose> diff --git a/main/writerfilter/source/ooxml/analyzestage2.xsl b/main/writerfilter/source/ooxml/analyzestage2.xsl index 2f307c1ee9b..49abc7d7b50 100644 --- a/main/writerfilter/source/ooxml/analyzestage2.xsl +++ b/main/writerfilter/source/ooxml/analyzestage2.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,21 +8,21 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - + <xsl:template match="/"> <stage2> <xsl:copy-of select="/stage1/analyze"/> diff --git a/main/writerfilter/source/ooxml/analyzestage3.xsl b/main/writerfilter/source/ooxml/analyzestage3.xsl index d7e4bc97905..7a06c4feb6e 100644 --- a/main/writerfilter/source/ooxml/analyzestage3.xsl +++ b/main/writerfilter/source/ooxml/analyzestage3.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,22 +8,22 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - - + + <xsl:key name="qnames" match="/stage2/qnames/qname" use="@qname"/> <xsl:template match="/"> @@ -57,4 +57,4 @@ </stage3> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> diff --git a/main/writerfilter/source/ooxml/attrsprm.xsl b/main/writerfilter/source/ooxml/attrsprm.xsl index 10209962ad1..2251280aaf1 100644 --- a/main/writerfilter/source/ooxml/attrsprm.xsl +++ b/main/writerfilter/source/ooxml/attrsprm.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,20 +8,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes = "xalan" @@ -29,7 +29,7 @@ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no"/> <xsl:include href="factorytools.xsl"/> - + <xsl:template match="/"> <class> <xsl:for-each select="//rng:define[@name='CT_FFData']"> @@ -50,7 +50,7 @@ <xsl:for-each select="ancestor::namespace/rng:grammar/rng:define[@name=$refname]"> <xsl:call-template name="sprminner"/> </xsl:for-each> - </xsl:for-each> + </xsl:for-each> <element> <xsl:variable name="elementname" select="@name"/> <xsl:attribute name="name"> @@ -82,7 +82,7 @@ </xsl:for-each> </xsl:for-each> </xsl:for-each> - </element> + </element> </xsl:for-each> </xsl:template> @@ -129,7 +129,7 @@ <xsl:if test="$resource='Properties'"> <xsl:for-each select=".//rng:attribute"> <xsl:variable name="attrname" select="@name"/> - <attribute> + <attribute> <xsl:attribute name="name"> <xsl:if test="string-length($parent) > 0"> <xsl:value-of select="$parent"/> diff --git a/main/writerfilter/source/ooxml/checkmodel.xsl b/main/writerfilter/source/ooxml/checkmodel.xsl index 5eb6b68992a..3b34b84cf44 100644 --- a/main/writerfilter/source/ooxml/checkmodel.xsl +++ b/main/writerfilter/source/ooxml/checkmodel.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,26 +7,26 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0" xml:space="default" xml:indent="true"> <xsl:output method="text" /> - + <xsl:template name="noannotation"> <xsl:for-each select="//namespace"> diff --git a/main/writerfilter/source/ooxml/dummyannotate.xsl b/main/writerfilter/source/ooxml/dummyannotate.xsl index 75eaf3a2455..d6fc43b6edc 100644 --- a/main/writerfilter/source/ooxml/dummyannotate.xsl +++ b/main/writerfilter/source/ooxml/dummyannotate.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,26 +7,26 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0" xml:space="default" xml:indent="true"> <xsl:output method="xml" /> - + <xsl:template match="rng:define" mode="dummydoc"> <xsl:processing-instruction name="mso-application">progid="Word.Document"</xsl:processing-instruction> <pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage"> @@ -831,7 +831,7 @@ sed "s/wml/</xsl:text> <xsl:template match="/"> <out> - <xsl:apply-templates select="//rng:define[@name='CT_SdtContentCell']" + <xsl:apply-templates select="//rng:define[@name='CT_SdtContentCell']" mode='resourcesPropertySetValue'/> </out> </xsl:template> diff --git a/main/writerfilter/source/ooxml/effort.xsl b/main/writerfilter/source/ooxml/effort.xsl index 1d513e35f9e..34f784c76af 100644 --- a/main/writerfilter/source/ooxml/effort.xsl +++ b/main/writerfilter/source/ooxml/effort.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,24 +8,24 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0"> <xsl:output method="text"/> - + <xsl:template match="/"> <xsl:text>Namespace,Define,Name,Tag,Done,Planned,qname-count </xsl:text> <xsl:for-each select="/todo/attribute|/todo/element"> diff --git a/main/writerfilter/source/ooxml/factory.xsl b/main/writerfilter/source/ooxml/factory.xsl index 3dad8c13daa..92b951a3f92 100644 --- a/main/writerfilter/source/ooxml/factory.xsl +++ b/main/writerfilter/source/ooxml/factory.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,55 +7,55 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template match="/"> - <xsl:text> + <xsl:text> #include "OOXMLFactory.hxx"</xsl:text> <xsl:call-template name="factoryincludes"/> <xsl:text> diff --git a/main/writerfilter/source/ooxml/factory_ns.xsl b/main/writerfilter/source/ooxml/factory_ns.xsl index 16f65bd6205..c40dd50af19 100644 --- a/main/writerfilter/source/ooxml/factory_ns.xsl +++ b/main/writerfilter/source/ooxml/factory_ns.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template name="factoryactiondecls"> @@ -82,9 +82,9 @@ class </xsl:text> { public: typedef boost::shared_ptr < OOXMLFactory_ns > Pointer_t; - + static Pointer_t getInstance(); - + virtual AttributeToResourceMapPointer createAttributeToResourceMap(Id nId); virtual ListValueMapPointer createListValueMap(Id nId); virtual CreateElementMapPointer createCreateElementMap(Id nId); @@ -97,11 +97,11 @@ public: virtual string getName() const; #endif <xsl:text> - + virtual ~</xsl:text> <xsl:value-of select="$classname"/> <xsl:text>(); - + protected: static Pointer_t m_pInstance; diff --git a/main/writerfilter/source/ooxml/factory_values.xsl b/main/writerfilter/source/ooxml/factory_values.xsl index 866689845dd..01deae2d21c 100644 --- a/main/writerfilter/source/ooxml/factory_values.xsl +++ b/main/writerfilter/source/ooxml/factory_values.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <!-- @@ -59,12 +59,12 @@ --> <xsl:template name="valueconstantdecls"> <xsl:text> -extern rtl::OUString +extern rtl::OUString </xsl:text> <xsl:call-template name="valuestringname"> <xsl:with-param name="string"></xsl:with-param> </xsl:call-template> - <xsl:text>;</xsl:text> + <xsl:text>;</xsl:text> <xsl:for-each select="//rng:value[generate-id(key('value-with-content', text())[1]) = generate-id(.)]"> <xsl:text> extern rtl::OUString </xsl:text> diff --git a/main/writerfilter/source/ooxml/factoryimpl.xsl b/main/writerfilter/source/ooxml/factoryimpl.xsl index 305f5a68ce5..ea9bc3d7aaa 100644 --- a/main/writerfilter/source/ooxml/factoryimpl.xsl +++ b/main/writerfilter/source/ooxml/factoryimpl.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,53 +7,53 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> - + <xsl:key name="resources-with-kind" match="//resource[kind]" use="kind/@name"/> <xsl:key name="sprms-with-code" match="//resource/element[@tokenid]" use="@tokenid"/> @@ -64,16 +64,16 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh { uno::Reference < xml::sax::XFastContextHandler > aResult; Id nDefine = pHandler->getDefine(); - + #ifdef DEBUG_FACTORY - debug_logger->startElement("factory.createFastChildContextFromFactory"); + debug_logger->startElement("factory.createFastChildContextFromFactory"); #endif if (pFactory.get() != NULL) { CreateElementMapPointer pMap = pFactory->getCreateElementMap(nDefine); TokenToIdMapPointer pTokenMap = pFactory->getTokenToIdMap(nDefine); - + if (pMap.get() != NULL) { Id nId = (*pTokenMap)[Element]; @@ -82,12 +82,12 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh string sDefine(pFactory->getDefineName(nDefine)); string sElement(fastTokenToId(Element)); string sQName((*QNameToString::Instance())(nId)); - + debug_logger->attribute("factory-name", sFactoryName); debug_logger->attribute("define", sDefine); debug_logger->attribute("element", sElement); debug_logger->attribute("qname", sQName); - + static char buffer[16]; snprintf(buffer, sizeof(buffer), "0x%08" SAL_PRIuUINT32, nId); debug_logger->attribute("idnum", buffer); @@ -95,15 +95,15 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh snprintf(buffer, sizeof(buffer), "0x%08" SAL_PRIuUINT32, nDefine); debug_logger->attribute("definenum", buffer); #endif - + CreateElement aCreateElement = (*pMap)[Element]; - + switch (aCreateElement.m_nResource) {</xsl:text> <xsl:for-each select="/model/namespace/resource"> <xsl:if test="generate-id(key('resources', @resource)) = generate-id(.)"> - <xsl:if test="not(@resource = 'Hex' or - @resource = 'Integer' or + <xsl:if test="not(@resource = 'Hex' or + @resource = 'Integer' or @resource = 'Boolean' or @resource = 'List' or @resource = 'String')"> @@ -128,9 +128,9 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh } } - + #ifdef DEBUG_FACTORY - debug_logger->endElement("factory.createFastChildContextFromFactory"); + debug_logger->endElement("factory.createFastChildContextFromFactory"); #endif return aResult; @@ -143,7 +143,7 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh OOXMLFactory_ns::Pointer_t OOXMLFactory::getFactoryForNamespace(Id nId) { OOXMLFactory_ns::Pointer_t pResult; - + switch (nId & 0xffff0000) {</xsl:text> <xsl:for-each select="/model/namespace"> @@ -160,7 +160,7 @@ OOXMLFactory_ns::Pointer_t OOXMLFactory::getFactoryForNamespace(Id nId) default: break; } - + return pResult; } </xsl:text> @@ -176,8 +176,8 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh #endif uno::Reference < xml::sax::XFastContextHandler > aResult; - OOXMLFactory_ns::Pointer_t pFactory; - + OOXMLFactory_ns::Pointer_t pFactory; + </xsl:text> <xsl:for-each select="/model/namespace"> <xsl:text> @@ -190,7 +190,7 @@ uno::Reference< xml::sax::XFastContextHandler > OOXMLFactory::createFastCh }</xsl:text> </xsl:for-each> <xsl:text> - + #ifdef DEBUG_FACTORY debug_logger->endElement("factory.createFastChildContextFromStart"); #endif @@ -215,7 +215,7 @@ public: string fastTokenToId(sal_uInt32 nToken) { </xsl:text> - <xsl:text> + <xsl:text> string sResult; switch (nToken & 0xffff0000) @@ -239,13 +239,13 @@ string fastTokenToId(sal_uInt32 nToken) <xsl:variable name="localname" select="@localname"/> <xsl:if test="generate-id(.) = generate-id(key('same-token-name', $localname)[1])"> <xsl:text> - case </xsl:text> + case </xsl:text> <xsl:call-template name="fastlocalname"/> <xsl:text>: sResult += "</xsl:text> <xsl:value-of select="$localname"/> <xsl:text>"; - break;</xsl:text> + break;</xsl:text> </xsl:if> </xsl:for-each> <xsl:text> @@ -262,7 +262,7 @@ string fastTokenToId(sal_uInt32 nToken) @param kind the sprm kind for which to generate the case labels --> - + <xsl:template name="sprmkindcase"> <xsl:param name="kind"/> <xsl:for-each select="key('resources-with-kind', $kind)/element"> @@ -324,13 +324,13 @@ uno::Reference < xml::sax::XFastParser > OOXMLStreamImpl::getFastParser() { if (! mxFastParser.is()) { - uno::Reference < lang::XMultiComponentFactory > xFactory = + uno::Reference < lang::XMultiComponentFactory > xFactory = uno::Reference < lang::XMultiComponentFactory > (mxContext->getServiceManager()); mxFastParser.set(xFactory->createInstanceWithContext ( ::rtl::OUString::createFromAscii - ( "com.sun.star.xml.sax.FastParser" ), + ( "com.sun.star.xml.sax.FastParser" ), mxContext ), uno::UNO_QUERY_THROW); </xsl:text> <xsl:for-each select="//namespace-alias"> @@ -350,7 +350,7 @@ uno::Reference < xml::sax::XFastParser > OOXMLStreamImpl::getFastParser() </xsl:template> <xsl:template match="/"> - <xsl:text> + <xsl:text> #include "OOXMLFactory.hxx" #include "OOXMLFastHelper.hxx" #include "OOXMLStreamImpl.hxx" diff --git a/main/writerfilter/source/ooxml/factoryimpl_ns.xsl b/main/writerfilter/source/ooxml/factoryimpl_ns.xsl index c6daa0f6664..a6e51107cc4 100644 --- a/main/writerfilter/source/ooxml/factoryimpl_ns.xsl +++ b/main/writerfilter/source/ooxml/factoryimpl_ns.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template name="factorymutex"> @@ -84,7 +84,7 @@ typedef rtl::Static < osl::Mutex, </xsl:text> <xsl:text>() { // multi-thread-safe mutex for all platforms - + osl::MutexGuard aGuard(</xsl:text> <xsl:call-template name="factorymutex"/> <xsl:text>::get()); @@ -115,7 +115,7 @@ typedef rtl::Static < osl::Mutex, </xsl:text> OOXMLFactory_ns::Pointer_t </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>::m_pInstance; - + OOXMLFactory_ns::Pointer_t </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>::getInstance() @@ -124,7 +124,7 @@ OOXMLFactory_ns::Pointer_t </xsl:text> m_pInstance.reset(new </xsl:text> <xsl:value-of select="$classname"/> <xsl:text>()); - + return m_pInstance; } </xsl:text> @@ -171,9 +171,9 @@ OOXMLFactory_ns::Pointer_t </xsl:text> </xsl:for-each> </xsl:template> -<!-- +<!-- -creates code block in OOXMLFactory_<namespace>::createAttributeToResourceMap +creates code block in OOXMLFactory_<namespace>::createAttributeToResourceMap for a rng:define --> @@ -231,7 +231,7 @@ for a rng:define <xsl:call-template name="fasttoken"/> </xsl:otherwise> </xsl:choose> - + </xsl:for-each> </xsl:template> @@ -243,7 +243,7 @@ AttributeToResourceMapPointer </xsl:text> <xsl:text>::createAttributeToResourceMap(Id nId) { AttributeToResourceMapPointer pMap(new AttributeToResourceMap()); - + switch (nId) {</xsl:text> <xsl:for-each select="rng:grammar/rng:define"> @@ -262,7 +262,7 @@ AttributeToResourceMapPointer </xsl:text> default: break; } - + return pMap; } </xsl:template> @@ -275,7 +275,7 @@ ListValueMapPointer </xsl:text> <xsl:text>::createListValueMap(Id nId) { ListValueMapPointer pMap(new ListValueMap()); - + switch (nId) {</xsl:text> <xsl:for-each select="resource[@resource='List']"> @@ -301,7 +301,7 @@ ListValueMapPointer </xsl:text> default: break; } - + return pMap; }</xsl:text> </xsl:template> @@ -383,7 +383,7 @@ CreateElementMapPointer </xsl:text> <xsl:text>::createCreateElementMap(Id nId) { CreateElementMapPointer pMap(new CreateElementMap()); - + switch (nId) {</xsl:text> <xsl:for-each select="rng:grammar/rng:define"> @@ -394,7 +394,7 @@ CreateElementMapPointer </xsl:text> <xsl:text> </xsl:text> <xsl:call-template name="caselabeldefine"/> - <xsl:value-of select="$inner"/> + <xsl:value-of select="$inner"/> <xsl:text> break;</xsl:text> </xsl:if> @@ -405,7 +405,7 @@ CreateElementMapPointer </xsl:text> <xsl:text> break; } - + return pMap; }</xsl:text> </xsl:template> @@ -432,7 +432,7 @@ CreateElementMapPointer </xsl:text> </xsl:call-template> <xsl:text>); dynamic_cast<OOXMLFastContextHandlerStream*>(pHandler)->getPropertySetAttrs()->resolve(aHandler); - + if (sal::static_int_cast<Id>(aHandler.getValue()) == </xsl:text> <xsl:call-template name="idtoqname"> <xsl:with-param name="id" select="@value"/> @@ -441,11 +441,11 @@ CreateElementMapPointer </xsl:text> {</xsl:text> </xsl:for-each> <xsl:choose> - <xsl:when test="@action='handleXNotes' or - @action='handleHdrFtr' or - @action='handleComment' or - @action='handlePicture' or - @action='handleBreak' or + <xsl:when test="@action='handleXNotes' or + @action='handleHdrFtr' or + @action='handleComment' or + @action='handlePicture' or + @action='handleBreak' or @action='handleOLE'"> <xsl:text> dynamic_cast<OOXMLFastContextHandlerProperties*>(pHandler)-></xsl:text> @@ -676,11 +676,11 @@ string </xsl:text> <xsl:text>::getDefineName(Id nId) const { static IdToStringMapPointer pMap; - + if (pMap.get() == NULL) { pMap = IdToStringMapPointer(new IdToStringMap()); - + </xsl:text> <xsl:for-each select="rng:grammar/rng:define"> <xsl:text> @@ -691,10 +691,10 @@ string </xsl:text> <xsl:text>";</xsl:text> </xsl:for-each> } - + return (*pMap)[nId]; } - + </xsl:template> <xsl:template name="factorytokentoidmapinner"> @@ -702,7 +702,7 @@ string </xsl:text> <xsl:for-each select=".//rng:ref[not(ancestor::rng:element or ancestor::rng:attribute)]"> <xsl:variable name="refname" select="@name"/> <xsl:variable name="refblock1"> - <xsl:for-each + <xsl:for-each select="ancestor::rng:grammar/rng:define[@name=$refname]"> <xsl:call-template name="factorytokentoidmapinner"/> </xsl:for-each> @@ -747,7 +747,7 @@ TokenToIdMapPointer </xsl:text> <xsl:text>::createTokenToIdMap(Id nId) { TokenToIdMapPointer pMap(new TokenToIdMap()); - + switch (nId) {</xsl:text> <xsl:for-each select="rng:grammar/rng:define"> @@ -777,7 +777,7 @@ TokenToIdMapPointer </xsl:text> <xsl:text> break; } - + return pMap; } </xsl:text> @@ -804,7 +804,7 @@ TokenToIdMapPointer </xsl:text> <xsl:text>OOXMLFastContextHandler</xsl:text> <xsl:for-each select="ancestor::namespace/resource[@name=$name]"> <xsl:value-of select="@resource"/> - </xsl:for-each> + </xsl:for-each> </xsl:variable> <xsl:text> { @@ -901,7 +901,7 @@ string </xsl:text> <xsl:value-of select="$ns"/> <xsl:text>.hxx" #include "OOXMLFastHelper.hxx" - + namespace writerfilter { namespace ooxml { diff --git a/main/writerfilter/source/ooxml/factoryimpl_values.xsl b/main/writerfilter/source/ooxml/factoryimpl_values.xsl index bd812f9ea4b..d667492bf31 100644 --- a/main/writerfilter/source/ooxml/factoryimpl_values.xsl +++ b/main/writerfilter/source/ooxml/factoryimpl_values.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <!-- @@ -71,7 +71,7 @@ rtl::OUString </xsl:text> <xsl:with-param name="string" select="."/> </xsl:call-template> <xsl:text>(RTL_CONSTASCII_USTRINGPARAM("</xsl:text> -<xsl:value-of select="."/> +<xsl:value-of select="."/> <xsl:text>"));</xsl:text> </xsl:for-each> </xsl:template> diff --git a/main/writerfilter/source/ooxml/factoryinc.xsl b/main/writerfilter/source/ooxml/factoryinc.xsl index 3ce3174ebb8..039234e53b6 100644 --- a/main/writerfilter/source/ooxml/factoryinc.xsl +++ b/main/writerfilter/source/ooxml/factoryinc.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template name="factorynamespaceiddecls"> diff --git a/main/writerfilter/source/ooxml/factorytools.xsl b/main/writerfilter/source/ooxml/factorytools.xsl index 4cf552e9572..dc2097164bd 100644 --- a/main/writerfilter/source/ooxml/factorytools.xsl +++ b/main/writerfilter/source/ooxml/factorytools.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,54 +7,54 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xalan="http://xml.apache.org/xalan" - xmlns:UML = 'org.omg.xmi.namespace.UML' + xmlns:UML = 'org.omg.xmi.namespace.UML' xmlns:common="http://exslt.org/common" exclude-result-prefixes = "xalan" xml:space="default"> - -<!-- + +<!-- KEYS --> <xsl:key name="context-resource" @@ -77,10 +77,10 @@ <!-- license header --> <xsl:template name="licenseheader"> <xsl:text> -/* +/* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! - + */ </xsl:text> </xsl:template> @@ -115,7 +115,7 @@ OOXML_<rng:define/@localname> <xsl:value-of select="@localname"/> </xsl:template> -<!-- +<!-- generates identifier for a token @@ -131,7 +131,7 @@ generates identifier for a token <xsl:call-template name="fastlocalname"/> </xsl:template> -<!-- generates identifier for a namespace +<!-- generates identifier for a namespace NN_<namespace/@name> @@ -152,9 +152,9 @@ DEFINE_<rng:define/@name> </xsl:template> <!-- generates id for a rng:define - + NN_<namespace/@name> | DEFINE_<rng:define/@name> - + --> <xsl:template name="idfordefine"> <xsl:for-each select="ancestor::namespace"> @@ -164,7 +164,7 @@ NN_<namespace/@name> | DEFINE_<rng:define/@name> <xsl:call-template name="localidfordefine"/> </xsl:template> -<!-- +<!-- creates case label for a rng:define: @@ -179,9 +179,9 @@ case NN_<namespace/@name> | DEFINE_<rng:define/@name>: <!-- Generates name for a value string. - + Value strings are possible values for attributes in OOXML. - + @param string the string as present in the according <rng:value> --> <xsl:template name="valuestringname"> @@ -192,13 +192,13 @@ case NN_<namespace/@name> | DEFINE_<rng:define/@name>: <!-- Generates qname for id. - + @param id the id to generate qname for - + If id is of format <prefix>:<localname> the result is - + NS_<prefix>::LN_<localname> - + If id does not contain ":" the result is just id. --> <xsl:template name='idtoqname'> diff --git a/main/writerfilter/source/ooxml/fasttokens.xsl b/main/writerfilter/source/ooxml/fasttokens.xsl index 527ac27f87f..d9b6790d691 100644 --- a/main/writerfilter/source/ooxml/fasttokens.xsl +++ b/main/writerfilter/source/ooxml/fasttokens.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,53 +7,53 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template name="fasttokens"> diff --git a/main/writerfilter/source/ooxml/gperffasttokenhandler.xsl b/main/writerfilter/source/ooxml/gperffasttokenhandler.xsl index 5fd54eae4cd..4e74823f52f 100644 --- a/main/writerfilter/source/ooxml/gperffasttokenhandler.xsl +++ b/main/writerfilter/source/ooxml/gperffasttokenhandler.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xalan="http://xml.apache.org/xalan" - xmlns:UML = 'org.omg.xmi.namespace.UML' + xmlns:UML = 'org.omg.xmi.namespace.UML' exclude-result-prefixes = "xalan" xml:space="default"> <xsl:output method="text" /> diff --git a/main/writerfilter/source/ooxml/modelcleanup.xsl b/main/writerfilter/source/ooxml/modelcleanup.xsl index 3d64490dd5b..34f901a4e43 100644 --- a/main/writerfilter/source/ooxml/modelcleanup.xsl +++ b/main/writerfilter/source/ooxml/modelcleanup.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,22 +7,22 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes = "xalan" @@ -94,46 +94,46 @@ <xsl:template name="typeofdefine"> <xsl:for-each select="rng:data"> <xsl:choose> - <xsl:when test="@type='base64Binary'"> + <xsl:when test="@type='base64Binary'"> <xsl:text>String</xsl:text> </xsl:when> - <xsl:when test="@type='boolean'"> + <xsl:when test="@type='boolean'"> <xsl:text>Boolean</xsl:text> </xsl:when> - <xsl:when test="@type='byte'"> + <xsl:when test="@type='byte'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='dateTime'"> + <xsl:when test="@type='dateTime'"> <xsl:text>String</xsl:text> </xsl:when> - <xsl:when test="@type='decimal'"> + <xsl:when test="@type='decimal'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='float'"> + <xsl:when test="@type='float'"> <xsl:text>Float</xsl:text> </xsl:when> - <xsl:when test="@type='hexBinary'"> + <xsl:when test="@type='hexBinary'"> <xsl:text>Hex</xsl:text> </xsl:when> - <xsl:when test="@type='int'"> + <xsl:when test="@type='int'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='integer'"> + <xsl:when test="@type='integer'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='positiveInteger'"> + <xsl:when test="@type='positiveInteger'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='string'"> + <xsl:when test="@type='string'"> <xsl:text>String</xsl:text> </xsl:when> - <xsl:when test="@type='token'"> + <xsl:when test="@type='token'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='unsignedInt'"> + <xsl:when test="@type='unsignedInt'"> <xsl:text>Integer</xsl:text> </xsl:when> - <xsl:when test="@type='unsignedLong'"> + <xsl:when test="@type='unsignedLong'"> <xsl:text>Integer</xsl:text> </xsl:when> <xsl:otherwise> @@ -142,16 +142,16 @@ </xsl:choose> </xsl:for-each> </xsl:template> - + <xsl:template name="typeofattribute"> <xsl:for-each select="rng:ref"> <xsl:variable name="name" select="@name"/> <xsl:for-each select="ancestor::namespace/rng:grammar/rng:define[@name=$name]"> <xsl:call-template name="typeofdefine"/> </xsl:for-each> - </xsl:for-each> + </xsl:for-each> </xsl:template> - + <xsl:template name="generatevalueresource"> <xsl:variable name="name" select="@name"/> <xsl:variable name="ns_id" select="generate-id(ancestor::namespace)"/> @@ -189,7 +189,7 @@ <xsl:value-of select="$name"/> <xsl:text>_</xsl:text> <xsl:value-of select="@name"/> - </xsl:attribute> + </xsl:attribute> <xsl:attribute name="action"> <xsl:text>setValue</xsl:text> </xsl:attribute> @@ -206,7 +206,7 @@ </xsl:for-each> </resource> </xsl:template> - + <xsl:template match="namespace"> <xsl:variable name="nsid" select="generate-id(.)"/> <xsl:element name="namespace"> @@ -282,7 +282,7 @@ </xsl:for-each> </xsl:element> </xsl:template> - + <xsl:template match="namespace-alias"> <namespace-alias> <xsl:for-each select="@*"> diff --git a/main/writerfilter/source/ooxml/modelpreprocess.xsl b/main/writerfilter/source/ooxml/modelpreprocess.xsl index a1a7f0c82bc..52a18928c87 100644 --- a/main/writerfilter/source/ooxml/modelpreprocess.xsl +++ b/main/writerfilter/source/ooxml/modelpreprocess.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,49 +7,49 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="xml" /> @@ -160,9 +160,9 @@ </xsl:attribute> <xsl:attribute name="localname"> <xsl:value-of select="$localname"/> - </xsl:attribute> - <xsl:apply-templates/> - </xsl:copy> + </xsl:attribute> + <xsl:apply-templates/> + </xsl:copy> </xsl:template> <xsl:template match="rng:grammar"> diff --git a/main/writerfilter/source/ooxml/namespaceids.xsl b/main/writerfilter/source/ooxml/namespaceids.xsl index 2e0652baff2..2eb18e1b46c 100644 --- a/main/writerfilter/source/ooxml/namespaceids.xsl +++ b/main/writerfilter/source/ooxml/namespaceids.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,53 +7,53 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> <xsl:output method="text" /> <xsl:param name="prefix"/> - + <xsl:include href="factorytools.xsl"/> <xsl:template name="namespaceids"> diff --git a/main/writerfilter/source/ooxml/nostatus.xsl b/main/writerfilter/source/ooxml/nostatus.xsl index eee2f75a095..feae7744014 100644 --- a/main/writerfilter/source/ooxml/nostatus.xsl +++ b/main/writerfilter/source/ooxml/nostatus.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,19 +8,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> diff --git a/main/writerfilter/source/ooxml/qnametostr.xsl b/main/writerfilter/source/ooxml/qnametostr.xsl index a71e0533bc8..562bb8e6f6e 100644 --- a/main/writerfilter/source/ooxml/qnametostr.xsl +++ b/main/writerfilter/source/ooxml/qnametostr.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,51 +7,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xalan="http://xml.apache.org/xalan" - xmlns:UML = 'org.omg.xmi.namespace.UML' + xmlns:UML = 'org.omg.xmi.namespace.UML' exclude-result-prefixes = "xalan" xml:space="default"> <xsl:output method="text" /> @@ -96,7 +96,7 @@ void ooxmlsprmidsToXML(::std::ostream & out) <xsl:text>\"></xsl:text> <xsl:value-of select="90000 + position()"/> <xsl:text></theid>" << endl; </xsl:text> - </xsl:if> + </xsl:if> </xsl:for-each> <xsl:text> }</xsl:text> @@ -111,7 +111,7 @@ void ooxmlidsToXML(::std::ostream & out) <xsl:text>\"></xsl:text> <xsl:value-of select="90000 + position()"/> <xsl:text></theid>" << endl; </xsl:text> - </xsl:if> + </xsl:if> </xsl:for-each> <xsl:text> }</xsl:text> diff --git a/main/writerfilter/source/ooxml/resourceids.xsl b/main/writerfilter/source/ooxml/resourceids.xsl index cfa372c9464..8b5a0bc0c33 100644 --- a/main/writerfilter/source/ooxml/resourceids.xsl +++ b/main/writerfilter/source/ooxml/resourceids.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,51 +8,51 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet - version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" - xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" - xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" - xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" - xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" - xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" - xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" - xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" - xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" - xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" - xmlns:math="http://www.w3.org/1998/Math/MathML" - xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" - xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" - xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" - xmlns:ooo="http://openoffice.org/2004/office" - xmlns:ooow="http://openoffice.org/2004/writer" - xmlns:oooc="http://openoffice.org/2004/calc" - xmlns:dom="http://www.w3.org/2001/xml-events" - xmlns:xforms="http://www.w3.org/2002/xforms" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" + xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" + xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" + xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" + xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" + xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" + xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" + xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" + xmlns:math="http://www.w3.org/1998/Math/MathML" + xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" + xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" + xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" + xmlns:ooo="http://openoffice.org/2004/office" + xmlns:ooow="http://openoffice.org/2004/writer" + xmlns:oooc="http://openoffice.org/2004/calc" + xmlns:dom="http://www.w3.org/2001/xml-events" + xmlns:xforms="http://www.w3.org/2002/xforms" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rng="http://relaxng.org/ns/structure/1.0" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xalan="http://xml.apache.org/xalan" - xmlns:UML = 'org.omg.xmi.namespace.UML' + xmlns:UML = 'org.omg.xmi.namespace.UML' exclude-result-prefixes = "xalan" xml:space="default"> <xsl:output method="text" /> diff --git a/main/writerfilter/source/ooxml/todo.xsl b/main/writerfilter/source/ooxml/todo.xsl index 2cf26ee4244..83f4d3e04bc 100644 --- a/main/writerfilter/source/ooxml/todo.xsl +++ b/main/writerfilter/source/ooxml/todo.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,20 +8,20 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rng="http://relaxng.org/ns/structure/1.0"> <xsl:output method="xml" indent="yes"/> @@ -31,7 +31,7 @@ <xsl:for-each select="/stage3"> <xsl:for-each select="attribute|element"> <xsl:choose> - <xsl:when test="@supported = 'no'"/> + <xsl:when test="@supported = 'no'"/> <xsl:when test="@qname and @resource='Properties' and not(file)"> <xsl:copy-of select="."/> </xsl:when> diff --git a/main/xmerge/java/htmlsoff/src/main/resources/htmltosoff.xsl b/main/xmerge/java/htmlsoff/src/main/resources/htmltosoff.xsl index 9ca6df3ecdc..844eab4e960 100644 --- a/main/xmerge/java/htmlsoff/src/main/resources/htmltosoff.xsl +++ b/main/xmerge/java/htmlsoff/src/main/resources/htmltosoff.xsl @@ -1,6 +1,6 @@ <?xml version='1.0' encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,33 +8,33 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:text="http://openoffice.org/2000/text" + xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" - xmlns:fo="http://www.w3.org/1999/XSL/Format" - xmlns:xlink="http://www.w3.org/1999/xlink" - 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:fo="http://www.w3.org/1999/XSL/Format" + xmlns:xlink="http://www.w3.org/1999/xlink" + 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" > <xsl:output method="xml" /> @@ -44,22 +44,22 @@ <xsl:apply-templates /> </xsl:template> -<xsl:template match="html"> - - <office:document-content xmlns:office="http://openoffice.org/2000/office" - xmlns:style="http://openoffice.org/2000/style" +<xsl:template match="html"> + + <office:document-content 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:fo="http://www.w3.org/1999/XSL/Format" - xmlns:xlink="http://www.w3.org/1999/xlink" - 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:fo="http://www.w3.org/1999/XSL/Format" + xmlns:xlink="http://www.w3.org/1999/xlink" + 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" office:class="text" office:version="1.0"> <office:script/> @@ -100,7 +100,7 @@ </office:automatic-styles> - + <office:body> @@ -109,8 +109,8 @@ <text:sequence-decl text:display-outline-level="0" text:name="Table"/> <text:sequence-decl text:display-outline-level="0" text:name="Text"/> <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> - </text:sequence-decls> - + </text:sequence-decls> + <xsl:apply-templates/> </office:body> </office:document-content> diff --git a/main/xmerge/java/htmlsoff/src/main/resources/sofftohtml.xsl b/main/xmerge/java/htmlsoff/src/main/resources/sofftohtml.xsl index 9e05f1e2609..c2692dbf997 100644 --- a/main/xmerge/java/htmlsoff/src/main/resources/sofftohtml.xsl +++ b/main/xmerge/java/htmlsoff/src/main/resources/sofftohtml.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> diff --git a/main/xmlhelp/util/embed.xsl b/main/xmlhelp/util/embed.xsl index f02dd57aec8..046e6c45d78 100644 --- a/main/xmlhelp/util/embed.xsl +++ b/main/xmlhelp/util/embed.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,16 +8,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" method="xml"/> @@ -68,10 +68,10 @@ All others </xsl:template> -<!-- -###################################################### +<!-- +###################################################### EMBED -###################################################### +###################################################### --> <xsl:template match="embed"> @@ -84,10 +84,10 @@ EMBED </xsl:if> </xsl:template> -<!-- -###################################################### +<!-- +###################################################### EMBEDVAR -###################################################### +###################################################### --> <xsl:template match="embedvar"> <xsl:if test="not(@href='text/shared/00/00000004.xhp#wie')"> <!-- special treatment if howtoget links --> @@ -96,8 +96,8 @@ EMBEDVAR <xsl:variable name="doc" select="document($href)"/> <xsl:apply-templates select="$doc//variable[@id=$anchor]" mode="embedded"/> </xsl:if> - + <!-- FPE: embedvars, that point to "text/shared/00/00000004.xml#wie" will only be resolved in the main_transform --> - + </xsl:template> </xsl:stylesheet> diff --git a/main/xmlhelp/util/idxcaption.xsl b/main/xmlhelp/util/idxcaption.xsl index 12e39123b55..4fda1860066 100644 --- a/main/xmlhelp/util/idxcaption.xsl +++ b/main/xmlhelp/util/idxcaption.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" encoding="UTF-8" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -32,7 +32,7 @@ xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:help="http://openoffice.org/2000/help" - xmlns:index="http://sun.com/2000/XMLSearch" + xmlns:index="http://sun.com/2000/XMLSearch" xmlns:text="http://openoffice.org/2000/text"> <xsl:param name="Language" select="'en-US'"/> diff --git a/main/xmlhelp/util/idxcontent.xsl b/main/xmlhelp/util/idxcontent.xsl index 6682446f0fd..d1d5b0fc519 100644 --- a/main/xmlhelp/util/idxcontent.xsl +++ b/main/xmlhelp/util/idxcontent.xsl @@ -1,5 +1,5 @@ <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -7,16 +7,16 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> <xsl:stylesheet version="1.0" encoding="UTF-8" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" @@ -32,7 +32,7 @@ xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:help="http://openoffice.org/2000/help" - xmlns:index="http://sun.com/2000/XMLSearch" + xmlns:index="http://sun.com/2000/XMLSearch" xmlns:text="http://openoffice.org/2000/text"> <xsl:param name="Language" select="'en-US'"/> diff --git a/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl b/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl index a87533a9359..4ad98a89e57 100644 --- a/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl +++ b/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!--*********************************************************** - * + * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -8,19 +8,19 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - * + * ***********************************************************--> - - + + <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> <xsl:template match="/"> @@ -127,26 +127,26 @@ function refresh() { var ignoredNo = testsuiteEl.getAttribute("ignored"); $('IgnoredNo').innerHTML = ignoredNo; $('SuccessNo').innerHTML = parseInt(allNo) - parseInt(failureNo) - parseInt(errorNo) - parseInt(ignoredNo); - + var propEls = $$s(testsuiteEl, "property"); var props = {}; for (var i = 0; i < propEls.length; i++) { var e = propEls[i]; props[e.getAttribute("name")] = e.getAttribute("value"); } - + $('info.test.date').innerHTML = props['info.test.date'] || 'Unknown'; $('info.app.buildid').innerHTML = props['info.app.buildid'] || 'Unknown'; $('info.app.AllLanguages').innerHTML = props['info.app.AllLanguages'] || ''; $('info.os.name').innerHTML = props['info.os.name'] || 'Unknown'; $('info.os.version').innerHTML = props['info.os.version'] || 'Unknown'; $('info.os.arch').innerHTML = props['info.os.arch'] || 'Unknown'; - if (props['info.app.Revision']) + if (props['info.app.Revision']) $('info.app.Revision').innerHTML = '<a href="http://svn.apache.org/viewvc?view=revision&revision=' + props['info.app.Revision'] + '">' + props['info.app.Revision'] + '</a>'; $('info.hostname').innerHTML = props['info.hostname'] || 'Unknown'; $('info.ip').innerHTML = props['info.ip'] || '0.0.0.0'; $('java.runtime.version').innerHTML = props['java.runtime.version'] || 'Unknown'; - + var testcaseEls = $$s(data, 'testcase'); var html = '<table class="recordTable"><thead><tr><th>Class</th><th>Method</th><th>Status</th><th width="80%">Message</th><th>Time</th><th>Screenshot</th></tr></thead><tbody id="recordTable">'; @@ -171,17 +171,17 @@ function refresh() { message = '<a href="https://issues.apache.org/ooo/show_bug.cgi?id=' + RegExp.$2 + '">' + RegExp.$1 + RegExp.$2 + '</a>' + RegExp.$3; } } - - html += '<tr class="' + status + '"><td>' - + e.getAttribute("classname") + '</td><td>' - + e.getAttribute("methodname") + '</td><td>' - + status + '</td><td>' - + message + '</td><td>' - + e.getAttribute("time") + '</td><td>' + + html += '<tr class="' + status + '"><td>' + + e.getAttribute("classname") + '</td><td>' + + e.getAttribute("methodname") + '</td><td>' + + status + '</td><td>' + + message + '</td><td>' + + e.getAttribute("time") + '</td><td>' + screenshot + '</td></tr>'; - + } - + $('recordTableContainer').innerHTML = html + '</tbody></table>'; } @@ -206,7 +206,7 @@ function toggleRecord(status) { el.className = 'unchecked'; display = 'none'; } - + var trEls = $$s($('recordTable'), 'tr'); for (var i = 0; i < trEls.length; i++){ var e = trEls[i]; @@ -230,5 +230,4 @@ function onload() { </body> </html> </xsl:template> -</xsl:stylesheet> - +</xsl:stylesheet>