lib/isodoc/un/un.plenary-attachment.xsl in metanorma-un-0.12.11 vs lib/isodoc/un/un.plenary-attachment.xsl in metanorma-un-0.12.13
- old
+ new
@@ -1,6 +1,6 @@
-<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:un="https://www.metanorma.org/ns/un" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:barcode="http://barcode4j.krysalis.org/ns" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java" version="1.0">
+<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:un="https://www.metanorma.org/ns/un" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:redirect="http://xml.apache.org/xalan/redirect" xmlns:barcode="http://barcode4j.krysalis.org/ns" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java redirect" extension-element-prefixes="redirect" version="1.0">
<xsl:output version="1.0" method="xml" encoding="UTF-8" indent="no"/>
<xsl:key name="kfn" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure' or local-name() = 'localized-strings')] and not(ancestor::*[local-name() = 'name'])) and not(ancestor::*[local-name() = 'bibdata'] and ancestor::*[local-name() = 'abstract'])]" use="@reference"/>
@@ -51,24 +51,44 @@
<fo:region-before region-name="header-odd" extent="26mm"/>
<fo:region-after region-name="footer-odd" extent="{$marginBottom}mm"/>
<fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
<fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
</fo:simple-page-master>
+ <fo:simple-page-master master-name="odd-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
+ <fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight1}mm" margin-right="{$marginLeftRight2}mm"/>
+ <fo:region-before region-name="header-odd" extent="26mm"/>
+ <fo:region-after region-name="footer-odd" extent="{$marginBottom}mm"/>
+ <fo:region-start region-name="left-region" extent="{$marginLeftRight1}mm"/>
+ <fo:region-end region-name="right-region" extent="{$marginLeftRight2}mm"/>
+ </fo:simple-page-master>
<!-- Document even pages -->
<fo:simple-page-master master-name="even" page-width="{$pageWidth}mm" page-height="{$pageHeight}mm">
<fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight2}mm" margin-right="{$marginLeftRight1}mm"/>
<fo:region-before region-name="header-even" extent="26mm"/>
<fo:region-after region-name="footer-even" extent="{$marginBottom}mm"/>
<fo:region-start region-name="left-region" extent="{$marginLeftRight2}mm"/>
<fo:region-end region-name="right-region" extent="{$marginLeftRight1}mm"/>
</fo:simple-page-master>
+ <fo:simple-page-master master-name="even-landscape" page-width="{$pageHeight}mm" page-height="{$pageWidth}mm">
+ <fo:region-body margin-top="{$marginTop}mm" margin-bottom="{$marginBottom}mm" margin-left="{$marginLeftRight2}mm" margin-right="{$marginLeftRight1}mm"/>
+ <fo:region-before region-name="header-even" extent="26mm"/>
+ <fo:region-after region-name="footer-even" extent="{$marginBottom}mm"/>
+ <fo:region-start region-name="left-region" extent="{$marginLeftRight2}mm"/>
+ <fo:region-end region-name="right-region" extent="{$marginLeftRight1}mm"/>
+ </fo:simple-page-master>
<fo:page-sequence-master master-name="document">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
<fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
+ <fo:page-sequence-master master-name="document-landscape">
+ <fo:repeatable-page-master-alternatives>
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-landscape"/>
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-landscape"/>
+ </fo:repeatable-page-master-alternatives>
+ </fo:page-sequence-master>
</fo:layout-master-set>
<fo:declarations>
<xsl:call-template name="addPDFUAmeta"/>
</fo:declarations>
@@ -99,11 +119,14 @@
<fo:table-column column-width="50mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-left="0.5mm">
<fo:block>
- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo))}" width="28mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
+ <!-- <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo))}" width="28mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/> -->
+ <fo:instream-foreign-object content-width="19.5mm" fox:alt-text="Image Logo UN">
+ <xsl:copy-of select="$Image-Logo-SVG"/>
+ </fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-size="20pt" font-weight="bold">Economic and Social Council</fo:block>
</fo:table-cell>
@@ -262,55 +285,138 @@
</fo:flow>
</fo:page-sequence>
<!-- End Cover Page -->
- <!-- Document Pages -->
- <fo:page-sequence master-reference="document" initial-page-number="2" format="1" force-page-count="no-force" line-height="115%">
- <fo:static-content flow-name="xsl-footnote-separator">
- <fo:block-container margin-left="-8mm">
- <fo:block margin-left="8mm">
- <fo:leader leader-pattern="rule" leader-length="20%"/>
- </fo:block>
- </fo:block-container>
- </fo:static-content>
- <xsl:call-template name="insertHeaderFooter"/>
- <fo:flow flow-name="xsl-region-body">
+ <xsl:variable name="updated_xml">
+ <xsl:call-template name="updateXML"/>
+ <!-- <xsl:copy-of select="."/> -->
+ </xsl:variable>
- <xsl:if test="$debug = 'true'">
- <xsl:text disable-output-escaping="yes"><!--</xsl:text>
- DEBUG
- contents=<xsl:copy-of select="$contents"/>
- <xsl:text disable-output-escaping="yes">--></xsl:text>
- </xsl:if>
+ <xsl:for-each select="xalan:nodeset($updated_xml)/*">
- <!-- Preface Pages (except Abstract, that showed in Summary on cover page`) -->
- <xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name() = 'note' or local-name() = 'admonition' or (local-name() = 'clause' and @type = 'toc'))]">
- <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
- <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
- <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements' and local-name() != 'note' and local-name() != 'admonition' and not(local-name() = 'clause' and @type = 'toc')]"/>
- <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
- <fo:block break-after="page"/>
- </xsl:if>
+ <xsl:variable name="updated_xml_with_pages">
+ <xsl:call-template name="processPrefaceAndMainSectionsUN_items"/>
+ </xsl:variable>
- <fo:block>
- <xsl:apply-templates select="/un:un-standard/un:sections/*"/>
- <xsl:apply-templates select="/un:un-standard/un:annex"/>
- <xsl:apply-templates select="/un:un-standard/un:bibliography/un:references"/>
- </fo:block>
+ <xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface -->
- <fo:block-container margin-left="50mm" width="30mm" border-bottom="0.5pt solid black" margin-top="12pt" keep-with-previous="always">
- <fo:block> </fo:block>
- </fo:block-container>
+ <xsl:for-each select=".//*[local-name() = 'page_sequence'][normalize-space() != '' or .//image or .//svg]">
- </fo:flow>
- </fo:page-sequence>
- <!-- End Document Pages -->
+ <!-- Document Pages -->
+ <fo:page-sequence master-reference="document" format="1" force-page-count="no-force" line-height="115%">
+ <xsl:attribute name="master-reference">
+ <xsl:text>document</xsl:text>
+ <xsl:call-template name="getPageSequenceOrientation"/>
+ </xsl:attribute>
+
+ <xsl:if test="position() = 1">
+ <xsl:attribute name="initial-page-number">2</xsl:attribute>
+ </xsl:if>
+
+ <fo:static-content flow-name="xsl-footnote-separator">
+ <fo:block-container margin-left="-8mm">
+ <fo:block margin-left="8mm">
+ <fo:leader leader-pattern="rule" leader-length="20%"/>
+ </fo:block>
+ </fo:block-container>
+ </fo:static-content>
+ <xsl:call-template name="insertHeaderFooter"/>
+ <fo:flow flow-name="xsl-region-body">
+
+ <!-- <xsl:if test="$debug = 'true'">
+ <redirect:write file="contents_{java:getTime(java:java.util.Date.new())}.xml">
+ <xsl:copy-of select="$contents"/>
+ </redirect:write>
+ </xsl:if> -->
+
+ <!-- Preface Pages (except Abstract, that showed in Summary on cover page`) -->
+ <!-- <xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name() = 'note' or local-name() = 'admonition' or (local-name() = 'clause' and @type = 'toc'))]">
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" />
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" />
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements' and local-name() != 'note' and local-name() != 'admonition' and
+ not(local-name() = 'clause' and @type = 'toc')]" />
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" />
+ <fo:block break-after="page"/>
+ </xsl:if>
+
+ <fo:block>
+ <xsl:apply-templates select="/un:un-standard/un:sections/*"/>
+ <xsl:apply-templates select="/un:un-standard/un:annex"/>
+ <xsl:apply-templates select="/un:un-standard/un:bibliography/un:references"/>
+ </fo:block> -->
+
+ <xsl:apply-templates/>
+
+ <fo:block/> <!-- prevent empty fo:flow -->
+
+ <xsl:if test="position() = last()">
+ <fo:block-container margin-left="50mm" width="30mm" border-bottom="0.5pt solid black" margin-top="12pt" keep-with-previous="always">
+ <fo:block> </fo:block>
+ </fo:block-container>
+ </xsl:if>
+ </fo:flow>
+ </fo:page-sequence>
+ <!-- End Document Pages -->
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:for-each>
+
</fo:root>
</xsl:template>
+ <xsl:template name="processPrefaceAndMainSectionsUN_items">
+ <xsl:variable name="updated_xml_step_move_pagebreak">
+
+ <xsl:element name="{$root_element}" namespace="{$namespace_full}">
+
+ <xsl:call-template name="copyCommonElements"/>
+
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:element name="preface" namespace="{$namespace_full}"> <!-- save context element -->
+
+ <!-- Preface Pages (except Abstract, that showed in Summary on cover page`) -->
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="update_xml_step_move_pagebreak"/>
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="update_xml_step_move_pagebreak"/>
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements' and local-name() != 'note' and local-name() != 'admonition' and not(local-name() = 'clause' and @type = 'toc')]" mode="update_xml_step_move_pagebreak"/>
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="update_xml_step_move_pagebreak"/>
+
+ </xsl:element> <!-- preface -->
+ </xsl:element>
+
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:call-template name="insertMainSections"/>
+ </xsl:element>
+
+ </xsl:element>
+ </xsl:variable>
+
+ <xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_preface_', java:getTime(java:java.util.Date.new()), '.xml')"/>
+
+ <redirect:write file="{$updated_xml_step_move_pagebreak_filename}">
+ <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
+ </redirect:write>
+
+ <xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
+
+ <!-- TODO: instead of
+ <xsl:for-each select=".//*[local-name() = 'page_sequence'][normalize-space() != '' or .//image or .//svg]">
+ in each template, add removing empty page_sequence here
+ -->
+
+ <xsl:if test="$debug = 'true'">
+ <redirect:write file="page_sequence.xml">
+ <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
+ </redirect:write>
+ </xsl:if>
+
+ <xsl:call-template name="deleteFile">
+ <xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
+ </xsl:call-template>
+ </xsl:template> <!-- END: processPrefaceAndMainSectionsUN_items -->
+
<!-- ============================= -->
<!-- CONTENTS -->
<!-- ============================= -->
<!-- element with title -->
@@ -721,37 +827,126 @@
<fo:block font-size="9pt" font-weight="bold" margin-left="21mm" margin-right="21mm" padding-top="12mm"><fo:page-number/></fo:block>
</fo:block-container>
</fo:static-content>
</xsl:template>
- <xsl:variable name="Image-Logo">
+ <!--<xsl:variable name="Image-Logo">
<xsl:text>iVBORw0KGgoAAAANSUhEUgAAAOEAAAC0CAYAAABi8Es+AAAACXBIWXMAAC4jAAAuIwF4pT92AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcp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ICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+MzAwMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4yMjU8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MTgwPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4xznjNAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAFWJSURBVHja7F1nWBVHFz50sCCxghUFFOzG2EuIBTti7OKnRI01xhrFEmOMRmOP3aixE1vsGmOvKMaCqNhQUBBBUBAREYTz/di5uHd2Zsu9l2LCeZ55Ermzs7Ozc3ZmznnPe8wgX/K6FAUAJwAoAQAFAcAaAIoAgA0A2FF13wHAKwBIJP99BQDxAPAcADLzhzJviln+EOS62AFAZQBwBQA3UlwAoAwAlAUAWxPcI4MoYhQARAPAbQC4QcqDfAXNV8L/2nhXBYBGAPAZANQHgBoAYJmLfUoBgOsAcJqUQPK3fMlXwn+NlASA1gDgRYpjHu9vGgBcBICTAHAMAC6TlTRf8pXwo1O8HgDQEwCaGDrORYoUgVKlSkHx4sWhePHiULRoUXBwcIAHDx7AoUOHsuqZm5vD7t27wd7eHuLi4iA+Ph4iIyMhMjISoqKi4NGjRxAVFQWIaEg3XgHAKQDYBwB/AsDr/NdrWrHMHwKTSREA6AoAfQDgCwAwV3ORtbU11KhRA2rWrAm1atWCKlWqQPny5aFChQpQsGBB5jWTJ0/WU8LMzEwoUKAAfPHFF9z7pKamQlhYGNy5cweuXbsGwcHBcOXKFYiPj1fzXD6kLCeKuJEoZv5ZMl9yXWwAoAsA7ALBMolKxdzcHKtXr46jRo3CQ4cO4Zs3b1CrjB49W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DjNY0EAB1wlCnMX1EOn6gHAYeA7qE+B4OdKziPzYBkIDOQ8eUEU47wB7VuB4BOsAAIiSAeNew0CJlYHIQwD5eDifMkXVdIB2GxyunIS8iaqYyooR5d0yn+9+ZLXZQzIZyjeD3kbVuUD8gG5aSC4OfIlX/KkzATlBJofA7D4C1DGjuYrYr7kOTEHds5E8RbU5iN6nlbAp+XfBfkg6XzJwzIApMkqg+DjdC57MxTxJ/jvGfTy5SOU+iDgRRGEAOISH/Gz6BQxNX8Lmi8fmziAEBVQ9l/wLPWAnc89X0wg/x8AacuuVzKKnOsAAAAASUVORK5CYII=</xsl:text>
+ </xsl:variable>-->
+
+ <xsl:variable name="Image-Logo-SVG">
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Layer_1" data-name="Layer 1" viewBox="0 0 56.25 46.5" width="56.25" height="46.5">
+ <defs>
+ <style>
+ .cls-1, .cls-2, .cls-3 {
+ stroke-width: 0px;
+ }
+
+ .cls-1, .cls-3 {
+ fill-rule: evenodd;
+ }
+
+ .cls-2 {
+ fill: none;
+ }
+
+ .cls-3 {
+ fill: #fff;
+ }
+
+ .cls-4 {
+ clip-path: url(#clippath);
+ }
+ </style>
+ <clipPath id="clippath">
+ <rect class="cls-2" width="56.25" height="46.5"/>
+ </clipPath>
+ </defs>
+ <g class="cls-4">
+ <polygon class="cls-1" points="22.27 45.34 22.6 44.98 22.93 44.61 23.27 44.24 23.62 43.89 23.96 43.55 24.32 43.22 24.67 42.9 25.06 42.58 25.41 42.28 25.82 42 26.2 41.73 26.6 41.47 26.99 41.24 27.42 41.01 27.82 40.78 28.25 40.6 28.63 40.76 28.99 40.97 29.37 41.15 29.75 41.34 30.09 41.57 30.42 41.82 30.78 42.07 31.11 42.3 31.42 42.58 31.78 42.86 32.09 43.13 32.4 43.46 32.71 43.75 33.07 44.05 33.38 44.35 33.68 44.7 33.85 44.86 33.99 45.02 34.14 45.16 34.33 45.3 35.43 44.35 35.07 44.03 34.71 43.69 34.38 43.39 33.99 43.11 33.64 42.83 33.28 42.56 32.92 42.28 32.54 42.03 32.18 41.82 31.8 41.57 31.42 41.34 31.04 41.13 30.63 40.9 30.23 40.71 29.82 40.48 29.39 40.3 29.68 40.23 29.99 40.18 30.28 40.16 30.61 40.16 30.9 40.18 31.18 40.23 31.49 40.3 31.78 40.41 31.9 40.48 32.04 40.55 32.14 40.62 32.28 40.69 32.4 40.76 32.54 40.85 32.66 40.9 32.78 40.99 33.21 41.29 33.64 41.59 34.09 41.89 34.57 42.16 35.09 42.44 35.62 42.69 36.14 42.93 36.71 43.11 37.26 43.27 37.86 43.41 38.43 43.5 39.05 43.55 39.65 43.52 40.24 43.48 40.84 43.36 41.43 43.18 41.93 42.97 42.41 42.79 42.84 42.56 43.27 42.35 43.67 42.07 44.08 41.8 44.44 41.45 44.82 41.11 44.86 41.01 44.91 40.97 44.96 40.9 44.98 40.85 44.36 41.24 43.7 41.54 43.05 41.73 42.36 41.87 41.65 41.93 40.96 41.89 40.24 41.82 39.53 41.7 38.79 41.54 38.07 41.34 37.36 41.11 36.67 40.85 35.95 40.6 35.26 40.32 34.61 40.05 33.95 39.79 33.81 39.77 33.66 39.72 33.5 39.68 33.35 39.65 33.21 39.63 33.07 39.61 32.92 39.58 32.78 39.54 32.21 39.49 31.63 39.47 31.06 39.47 30.49 39.47 29.92 39.52 29.37 39.63 28.8 39.75 28.25 39.91 27.89 39.79 27.51 39.72 27.13 39.63 26.77 39.58 26.39 39.54 25.98 39.52 25.63 39.49 25.25 39.49 24.67 39.52 24.1 39.58 23.53 39.65 22.98 39.77 22.41 39.91 21.88 40.09 21.34 40.28 20.81 40.48 20.34 40.71 19.83 40.97 19.33 41.15 18.81 41.38 18.26 41.54 17.74 41.7 17.19 41.87 16.64 41.98 16.07 42.07 15.52 42.1 14.95 42.1 14.4 42.07 13.87 41.98 13.33 41.84 12.8 41.66 12.3 41.4 12.09 41.31 11.92 41.24 11.75 41.15 11.59 41.04 11.68 41.2 11.8 41.38 11.94 41.52 12.11 41.68 12.3 41.82 12.49 41.96 12.63 42.07 12.8 42.16 13.02 42.3 13.21 42.44 13.4 42.58 13.61 42.69 14.02 42.93 14.45 43.11 14.83 43.25 15.3 43.39 15.76 43.5 16.21 43.59 16.66 43.64 17.12 43.66 17.59 43.66 18.07 43.64 18.52 43.59 18.98 43.5 19.45 43.41 19.88 43.27 20.31 43.11 20.74 42.93 21.12 42.76 21.53 42.56 21.91 42.35 22.27 42.1 22.62 41.84 22.98 41.57 23.36 41.31 23.7 41.06 24.08 40.83 24.48 40.62 24.89 40.44 25.27 40.3 25.75 40.18 26.2 40.16 26.68 40.16 27.2 40.23 27.2 40.28 27.2 40.3 26.77 40.48 26.37 40.69 25.96 40.87 25.56 41.11 25.2 41.31 24.82 41.54 24.46 41.8 24.1 42.03 23.74 42.28 23.36 42.53 22.98 42.81 22.62 43.11 22.24 43.41 21.88 43.75 21.5 44.08 21.12 44.45 21.24 44.56 21.38 44.65 21.53 44.79 21.67 44.91 21.81 45.02 21.96 45.14 22.12 45.25 22.27 45.34"/>
+ <polygon class="cls-1" points="14.11 40.9 14.49 40.9 14.88 40.87 15.23 40.87 15.61 40.85 15.97 40.78 16.35 40.76 16.74 40.71 17.09 40.64 17.4 40.58 17.74 40.51 18.05 40.44 18.33 40.34 18.64 40.28 18.95 40.18 19.26 40.09 19.55 40.02 19.88 39.93 20.19 39.88 20.48 39.79 20.79 39.75 21.07 39.68 21.38 39.63 21.67 39.58 21.98 39.54 22.03 39.54 21.98 39.52 21.38 39.45 20.81 39.31 20.26 39.1 19.76 38.92 19.26 38.66 18.79 38.39 18.33 38.09 17.9 37.74 17.45 37.4 17.05 37.03 16.62 36.68 16.19 36.29 15.78 35.9 15.35 35.51 14.92 35.11 14.47 34.75 14.23 34.54 14.04 34.35 13.8 34.19 13.61 34.01 13.37 33.85 13.18 33.69 12.94 33.55 12.73 33.41 13.04 33.85 13.33 34.33 13.59 34.79 13.83 35.3 14.09 35.78 14.35 36.29 14.61 36.77 14.9 37.23 15.09 37.46 15.33 37.72 15.54 37.95 15.81 38.13 16.07 38.34 16.33 38.52 16.59 38.66 16.83 38.8 17.05 38.89 17.24 38.96 17.47 39.05 17.69 39.1 17.9 39.17 18.12 39.22 18.36 39.31 18.55 39.35 18.55 39.38 18.59 39.38 18.59 39.4 18.31 39.38 18.02 39.35 17.74 39.33 17.45 39.26 17.12 39.24 16.83 39.19 16.54 39.17 16.26 39.1 15.97 39.08 15.69 39.03 15.4 38.99 15.11 38.94 14.8 38.92 14.52 38.89 14.23 38.89 13.95 38.85 13.49 38.85 13.04 38.82 12.54 38.8 12.09 38.75 11.61 38.69 11.16 38.64 10.66 38.55 10.23 38.43 9.77 38.29 9.35 38.16 8.92 37.97 8.51 37.79 8.11 37.53 7.75 37.28 7.39 36.98 7.08 36.64 7.39 37.19 7.77 37.7 8.2 38.2 8.68 38.66 9.23 39.08 9.77 39.47 10.32 39.81 10.87 40.09 11.23 40.28 11.63 40.41 12.04 40.55 12.47 40.62 12.87 40.74 13.3 40.78 13.73 40.85 14.11 40.9"/>
+ <polygon class="cls-1" points="41.43 40.74 41.96 40.74 42.43 40.71 42.93 40.64 43.41 40.58 43.91 40.48 44.36 40.34 44.84 40.21 45.27 40.05 45.7 39.86 46.13 39.63 46.53 39.38 46.94 39.12 47.35 38.82 47.68 38.52 48.01 38.23 48.37 37.86 48.51 37.67 48.68 37.51 48.8 37.3 48.94 37.14 49.06 36.96 49.16 36.75 49.28 36.57 49.39 36.34 49.01 36.73 48.63 37.05 48.2 37.37 47.77 37.6 47.27 37.83 46.8 38.02 46.25 38.2 45.68 38.34 45.2 38.41 44.7 38.48 44.22 38.52 43.77 38.57 43.27 38.64 42.79 38.66 42.29 38.71 41.81 38.78 41.34 38.82 40.84 38.89 40.36 38.94 39.91 38.99 39.41 39.05 38.93 39.12 38.43 39.22 37.95 39.31 37.93 39.26 37.93 39.24 38.48 39.08 39 38.92 39.53 38.69 40 38.48 40.43 38.16 40.86 37.86 41.24 37.46 41.58 37.03 41.77 36.75 41.93 36.45 42.1 36.15 42.27 35.85 42.43 35.48 42.62 35.11 42.79 34.79 42.96 34.42 43.13 34.1 43.34 33.78 43.53 33.46 43.77 33.16 43.44 33.36 43.13 33.55 42.82 33.8 42.53 34.01 42.22 34.29 41.93 34.54 41.62 34.81 41.34 35.07 40.96 35.44 40.58 35.81 40.22 36.17 39.84 36.54 39.48 36.87 39.1 37.19 38.69 37.53 38.33 37.83 37.9 38.13 37.47 38.39 37.05 38.64 36.57 38.85 36.09 39.05 35.62 39.19 35.07 39.33 34.52 39.4 34.52 39.45 34.52 39.47 34.76 39.49 35 39.52 35.23 39.54 35.5 39.58 35.71 39.63 35.95 39.65 36.21 39.72 36.43 39.77 36.76 39.86 37.07 39.91 37.38 40 37.69 40.07 38 40.16 38.33 40.23 38.64 40.3 38.95 40.37 39.26 40.44 39.57 40.51 39.91 40.58 40.19 40.62 40.5 40.64 40.81 40.69 41.12 40.71 41.43 40.74"/>
+ <polygon class="cls-1" points="14.97 38.36 15.02 38.36 15.04 38.36 14.76 38.11 14.49 37.86 14.23 37.58 13.97 37.28 13.76 37 13.54 36.7 13.35 36.4 13.21 36.06 12.75 34.93 12.32 33.8 11.87 32.72 11.4 31.64 10.89 30.62 10.32 29.63 9.65 28.73 8.89 27.9 9.3 29.12 9.61 30.37 9.87 31.64 10.11 32.88 10.49 34.1 11.01 35.21 11.75 36.17 12.78 36.98 12.8 36.98 12.8 37 12.8 37.03 12.78 37.05 12.4 36.89 12.06 36.68 11.75 36.45 11.4 36.2 11.09 35.94 10.78 35.71 10.44 35.48 10.08 35.3 9.61 35.02 9.11 34.77 8.63 34.54 8.11 34.29 7.6 34.05 7.08 33.8 6.6 33.55 6.08 33.27 5.63 32.99 5.17 32.7 4.72 32.35 4.31 31.98 3.93 31.59 3.6 31.17 3.29 30.69 3.03 30.18 3.15 30.74 3.29 31.24 3.48 31.75 3.72 32.21 3.96 32.7 4.22 33.13 4.53 33.55 4.86 33.94 5.32 34.49 5.79 35.02 6.32 35.46 6.89 35.85 7.46 36.2 8.06 36.54 8.68 36.77 9.35 37.03 10.01 37.26 10.68 37.44 11.37 37.6 12.09 37.79 12.8 37.93 13.52 38.09 14.26 38.23 14.97 38.36"/>
+ <polygon class="cls-1" points="27.39 38.23 27.68 38.23 27.96 38.23 28.23 38.23 28.51 38.23 28.8 38.23 29.08 38.2 29.37 38.2 29.66 38.16 29.94 38.13 30.23 38.11 30.51 38.09 30.82 38.06 31.11 37.99 31.4 37.97 31.68 37.93 31.97 37.86 32.95 37.65 33.9 37.37 34.81 37.1 35.69 36.73 36.55 36.36 37.38 35.92 38.19 35.48 38.95 34.98 39.69 34.49 40.41 33.92 41.1 33.32 41.77 32.72 42.39 32.05 43.01 31.36 43.58 30.64 44.13 29.91 44.53 29.29 44.91 28.66 45.27 28 45.63 27.28 45.94 26.54 46.25 25.81 46.51 25.02 46.73 24.24 46.82 23.87 46.92 23.5 46.99 23.18 47.06 22.86 47.23 21.82 47.35 20.81 47.37 19.77 47.3 18.76 47.23 17.7 47.08 16.68 46.84 15.67 46.58 14.65 46.25 13.69 45.87 12.72 45.49 11.82 45.01 10.92 44.51 10.07 43.96 9.24 43.39 8.5 42.79 7.79 42.41 7.37 42.05 6.98 41.67 6.61 41.29 6.27 40.91 5.9 40.53 5.58 40.12 5.25 39.76 4.95 39.36 4.68 38.95 4.4 38.55 4.13 38.12 3.87 37.69 3.64 37.29 3.41 36.83 3.18 36.4 2.97 35.38 2.53 34.35 2.14 33.28 1.84 32.21 1.57 31.11 1.36 29.99 1.25 28.89 1.18 27.8 1.18 26.68 1.22 25.6 1.34 24.48 1.5 23.41 1.73 22.36 2.03 21.31 2.4 20.31 2.76 19.31 3.25 18.9 3.46 18.48 3.69 18.07 3.94 17.66 4.19 17.24 4.42 16.83 4.7 16.45 5.02 16.07 5.33 15.66 5.62 15.3 5.95 14.9 6.29 14.54 6.64 14.18 7.01 13.83 7.4 13.49 7.79 13.16 8.16 12.83 8.57 12.52 8.99 12.21 9.4 11.94 9.82 11.66 10.23 11.4 10.69 11.16 11.15 10.89 11.61 10.01 13.66 9.39 15.81 9.06 18.02 9.01 20.23 9.2 22.4 9.65 24.59 10.37 26.66 11.32 28.66 11.49 28.96 11.66 29.24 11.82 29.52 12.04 29.79 12.21 30.07 12.4 30.35 12.61 30.6 12.8 30.88 13.4 31.57 14.02 32.26 14.64 32.88 15.26 33.46 15.95 34.05 16.64 34.56 17.36 35.07 18.09 35.51 18.83 35.94 19.64 36.34 20.45 36.7 21.31 37.03 22.17 37.3 23.05 37.58 23.98 37.81 24.94 37.99 25.25 38.02 25.56 38.09 25.89 38.11 26.18 38.13 26.49 38.16 26.8 38.2 27.08 38.23 27.39 38.23"/>
+ <polygon class="cls-1" points="41.43 38.2 42.27 38.06 43.1 37.88 43.93 37.72 44.72 37.53 45.53 37.3 46.3 37.05 47.08 36.77 47.8 36.47 48.51 36.15 49.2 35.76 49.82 35.34 50.42 34.88 50.99 34.35 51.52 33.78 51.97 33.16 52.4 32.46 52.57 32.19 52.71 31.87 52.88 31.57 52.99 31.2 53.14 30.88 53.23 30.51 53.3 30.14 53.4 29.79 53.11 30.35 52.8 30.88 52.42 31.34 51.99 31.75 51.54 32.14 51.06 32.49 50.54 32.83 50.02 33.13 49.49 33.41 48.94 33.69 48.37 33.96 47.82 34.24 47.27 34.52 46.77 34.81 46.25 35.09 45.77 35.44 45.63 35.53 45.49 35.62 45.34 35.74 45.2 35.85 45.01 35.99 44.84 36.13 44.65 36.27 44.49 36.4 44.29 36.5 44.1 36.64 43.91 36.75 43.7 36.87 43.7 36.84 43.67 36.84 43.67 36.82 44.2 36.36 44.65 35.9 45.06 35.39 45.41 34.91 45.72 34.38 45.99 33.8 46.22 33.18 46.39 32.53 46.51 31.91 46.58 31.29 46.68 30.67 46.8 30.05 46.92 29.42 47.06 28.82 47.23 28.2 47.49 27.63 46.94 28.13 46.44 28.71 46.01 29.31 45.65 29.95 45.34 30.64 45.01 31.36 44.72 32.12 44.44 32.83 44.2 33.57 43.91 34.33 43.58 35.05 43.24 35.76 42.86 36.43 42.43 37.05 41.96 37.67 41.41 38.2 41.43 38.2"/>
+ <polygon class="cls-3" points="28.65 37.37 29.08 37.3 29.49 37.26 29.92 37.19 30.37 37.12 30.8 37.05 31.23 36.98 31.68 36.89 32.11 36.82 32.56 36.73 32.99 36.61 33.42 36.5 33.9 36.36 34.33 36.22 34.71 36.08 35.14 35.92 35.54 35.76 35.93 35.6 36.26 35.39 36.62 35.23 36.95 35.05 37.29 34.88 37.64 34.68 37.95 34.47 38.26 34.26 38.57 34.05 38.91 33.85 39.22 33.59 39.53 33.39 39.84 33.13 40.15 32.88 40.48 32.63 40.79 32.35 40.53 32.12 40.24 31.89 39.96 31.64 39.67 31.36 39.41 31.11 39.14 30.88 38.93 30.6 38.76 30.32 38.4 30.69 38.05 31.04 37.67 31.34 37.26 31.61 36.83 31.89 36.43 32.14 36.07 32.42 35.69 32.72 35.64 32.86 35.57 32.97 35.5 33.09 35.43 33.18 35.38 33.25 35.33 33.29 35.26 33.36 35.23 33.41 35.14 33.55 35.07 33.64 34.95 33.73 34.83 33.87 34.69 33.96 34.54 34.08 34.42 34.19 34.33 34.29 34.18 34.4 34.07 34.52 33.92 34.61 33.76 34.68 33.56 34.81 33.38 34.91 33.14 34.95 32.95 34.95 32.76 34.88 32.56 34.79 32.4 34.68 32.23 34.56 32.09 34.47 31.92 34.35 31.71 34.26 31.52 34.22 31.37 34.24 31.23 34.26 31.11 34.29 30.97 34.29 30.85 34.33 30.7 34.35 30.61 34.35 30.47 34.38 30.23 34.4 29.99 34.42 29.78 34.47 29.56 34.49 29.35 34.52 29.11 34.52 28.89 34.52 28.65 34.47 28.63 37.37 28.65 37.37"/>
+ <polygon class="cls-3" points="27.68 37.3 27.56 37.1 27.56 36.45 27.56 35.78 27.56 35.11 27.65 34.49 27.27 34.52 26.91 34.52 26.53 34.49 26.2 34.47 25.82 34.4 25.46 34.33 25.08 34.26 24.75 34.22 24.2 34.1 23.67 33.94 23.17 33.8 22.67 33.59 22.19 33.41 21.69 33.23 21.24 33.02 20.81 32.81 20.41 32.56 19.98 32.3 19.6 32.05 19.19 31.77 18.81 31.5 18.4 31.17 18.05 30.88 17.64 30.51 17.4 30.76 17.16 31.01 16.93 31.24 16.66 31.5 16.4 31.75 16.16 32 15.9 32.26 15.64 32.49 16.07 32.86 16.52 33.18 16.95 33.52 17.4 33.85 17.88 34.15 18.33 34.47 18.81 34.75 19.31 35.02 19.79 35.3 20.31 35.51 20.81 35.76 21.36 35.99 21.91 36.17 22.48 36.36 23.08 36.57 23.7 36.73 24.22 36.84 24.7 36.96 25.22 37.03 25.75 37.1 26.22 37.14 26.7 37.19 27.2 37.26 27.68 37.3"/>
+ <polygon class="cls-1" points="9.75 34.24 9.75 34.24 9.75 34.22 9.11 32.88 8.73 31.47 8.49 30.05 8.32 28.55 8.2 27.05 8.01 25.58 7.65 24.15 7.15 22.74 7.2 23.46 7.15 24.17 7.03 24.88 6.89 25.62 6.75 26.36 6.6 27.07 6.51 27.79 6.51 28.55 6.58 28.99 6.65 29.45 6.77 29.91 6.91 30.32 7.08 30.74 7.29 31.11 7.49 31.5 7.72 31.84 7.68 31.84 7.68 31.87 7.65 31.87 7.37 31.57 7.1 31.22 6.89 30.9 6.65 30.55 6.44 30.23 6.17 29.93 5.94 29.58 5.65 29.26 5.44 29.01 5.2 28.76 4.96 28.53 4.74 28.29 4.51 28.04 4.24 27.79 4.03 27.58 3.77 27.33 3.31 26.89 2.91 26.41 2.5 25.97 2.17 25.48 1.86 24.95 1.62 24.42 1.43 23.85 1.31 23.2 1.22 23.87 1.24 24.56 1.31 25.28 1.43 25.99 1.57 26.54 1.76 27.07 2 27.6 2.24 28.11 2.53 28.57 2.86 29.03 3.22 29.49 3.6 29.91 4.01 30.28 4.39 30.67 4.82 31.04 5.24 31.36 5.72 31.7 6.17 32 6.63 32.28 7.08 32.56 7.44 32.74 7.75 32.97 8.08 33.16 8.44 33.36 8.75 33.55 9.08 33.78 9.39 33.99 9.73 34.24 9.75 34.24"/>
+ <polygon class="cls-1" points="46.68 33.99 47.27 33.59 47.92 33.18 48.54 32.76 49.2 32.4 49.82 31.93 50.49 31.5 51.11 31.04 51.71 30.55 52.28 30.05 52.83 29.52 53.35 28.94 53.81 28.29 54.21 27.63 54.55 26.94 54.81 26.17 55 25.37 55.09 24.72 55.14 24.06 55.14 23.43 55.09 22.79 54.92 23.57 54.69 24.26 54.35 24.88 53.95 25.51 53.45 26.08 52.95 26.64 52.4 27.19 51.8 27.76 51.3 28.25 50.87 28.73 50.52 29.22 50.16 29.7 49.82 30.18 49.49 30.64 49.13 31.11 48.73 31.59 48.7 31.59 48.7 31.57 49.11 30.88 49.59 29.84 49.8 28.8 49.82 27.74 49.71 26.66 49.54 25.58 49.37 24.52 49.25 23.46 49.25 22.4 48.7 23.83 48.4 25.25 48.2 26.73 48.06 28.2 47.92 29.7 47.68 31.15 47.3 32.58 46.68 33.94 46.68 33.96 46.68 33.99"/>
+ <polygon class="cls-3" points="27.68 33.66 27.56 32.99 27.53 32.33 27.53 31.64 27.56 30.94 27.18 30.97 26.77 30.97 26.39 30.94 25.98 30.9 25.6 30.81 25.2 30.74 24.79 30.62 24.41 30.48 24.05 30.35 23.67 30.21 23.31 30.05 22.96 29.86 22.62 29.7 22.27 29.54 21.96 29.35 21.67 29.17 21.55 29.08 21.46 28.99 21.31 28.89 21.19 28.8 21.26 28.96 21.36 29.1 21.46 29.26 21.41 29.42 21.41 29.45 21.41 29.49 21.38 29.52 21.31 29.58 21.22 29.63 21.1 29.65 20.98 29.68 20.88 29.68 20.76 29.68 20.64 29.68 20.53 29.7 20.31 29.72 20.1 29.79 19.88 29.84 19.64 29.93 19.41 30 19.19 30.05 18.95 30.05 18.74 29.95 18.62 29.84 18.5 29.77 18.36 29.72 18.19 29.68 18.33 29.77 18.48 29.84 18.59 29.95 18.74 30.09 18.95 30.28 19.19 30.46 19.41 30.62 19.62 30.78 19.83 30.92 20.05 31.06 20.26 31.2 20.48 31.34 20.84 31.59 21.22 31.8 21.65 32.03 22.08 32.21 22.5 32.4 22.96 32.58 23.41 32.72 23.91 32.86 24.36 32.99 24.84 33.13 25.34 33.25 25.82 33.36 26.32 33.43 26.77 33.52 27.22 33.59 27.68 33.66"/>
+ <polygon class="cls-3" points="28.65 33.59 28.94 33.55 29.2 33.5 29.49 33.43 29.78 33.41 30.06 33.39 30.35 33.36 30.63 33.32 30.92 33.29 30.68 33.23 30.49 33.09 30.28 32.97 30.09 32.88 29.94 32.67 29.8 32.44 29.7 32.21 29.7 31.98 29.78 31.84 29.85 31.73 29.89 31.61 29.89 31.47 29.78 31.43 29.63 31.38 29.49 31.36 29.32 31.36 29.18 31.36 28.99 31.36 28.85 31.34 28.7 31.29 28.68 31.24 28.65 31.2 28.61 31.17 28.51 31.15 28.63 31.73 28.68 32.35 28.65 32.99 28.65 33.59"/>
+ <polygon class="cls-3" points="14.9 31.8 15.11 31.57 15.38 31.29 15.64 31.04 15.9 30.78 16.16 30.51 16.4 30.28 16.69 30.07 16.97 29.84 16.78 29.65 16.59 29.42 16.35 29.22 16.16 28.99 16.02 28.94 15.88 28.85 15.76 28.76 15.64 28.69 15.52 28.57 15.4 28.46 15.33 28.34 15.26 28.2 15.26 28.16 15.26 28.11 15.26 28.04 15.23 28 15.16 28.06 15.07 28.13 14.95 28.16 14.83 28.16 14.68 28.06 14.59 27.97 14.47 27.86 14.33 27.74 14.26 27.63 14.18 27.49 14.11 27.37 14.09 27.23 14.09 27.21 14.07 27.21 13.78 27.21 13.52 26.94 13.35 26.94 13.25 26.89 13.23 26.8 13.18 26.73 13.09 26.66 13.04 26.61 13.02 26.52 12.97 26.47 12.94 26.41 12.92 26.41 12.92 26.38 12.9 26.38 12.87 26.41 12.87 26.47 12.87 26.5 12.87 26.54 12.83 26.59 12.8 26.64 12.75 26.66 12.68 26.66 12.49 26.59 12.35 26.47 12.21 26.34 12.06 26.2 12.04 26.17 12.04 26.13 12.02 26.11 11.94 26.13 11.87 26.17 11.8 26.2 11.73 26.13 11.54 25.92 11.47 25.67 11.37 25.39 11.25 25.14 11.23 24.84 11.23 24.54 11.25 24.24 11.37 23.99 11.44 23.89 11.49 23.78 11.51 23.71 11.61 23.62 11.73 23.59 11.82 23.57 11.94 23.57 12.04 23.59 12.09 23.64 12.11 23.69 12.16 23.71 12.18 23.73 12.44 23.69 12.47 23.62 12.47 23.57 12.47 23.55 12.47 23.48 12.59 23.36 12.73 23.32 12.87 23.3 13.04 23.27 13.18 23.36 13.25 23.55 13.37 23.69 13.49 23.83 13.35 23.46 13.25 23.06 13.18 22.67 13.09 22.3 13.02 21.91 12.97 21.5 12.94 21.11 12.87 20.74 12.92 20.25 12.59 20.3 12.23 20.3 11.87 20.32 11.49 20.32 11.11 20.3 10.78 20.3 10.39 20.28 10.04 20.28 10.08 21.11 10.18 21.96 10.3 22.79 10.47 23.62 10.8 24.86 11.2 26.04 11.68 27.1 12.21 28.13 12.8 29.1 13.45 30 14.11 30.92 14.88 31.8 14.9 31.8"/>
+ <polygon class="cls-3" points="41.53 31.75 41.79 31.36 42.08 31.01 42.36 30.64 42.65 30.28 42.93 29.95 43.2 29.58 43.44 29.24 43.67 28.85 43.82 28.66 43.93 28.43 44.06 28.25 44.15 28.02 44.27 27.79 44.39 27.58 44.53 27.37 44.65 27.17 44.86 26.64 45.1 26.11 45.34 25.55 45.51 25 45.68 24.45 45.84 23.87 45.96 23.32 46.08 22.77 46.2 22.1 46.25 21.43 46.34 20.78 46.49 20.16 46.11 20.18 45.77 20.23 45.39 20.23 45.01 20.23 44.65 20.23 44.27 20.23 43.93 20.18 43.56 20.18 43.53 20.16 43.51 20.16 43.48 20.14 43.48 20.88 43.41 21.66 43.27 22.44 43.1 23.23 42.86 23.99 42.62 24.75 42.29 25.48 41.98 26.17 41.86 26.41 41.72 26.64 41.62 26.87 41.48 27.07 41.36 27.3 41.22 27.51 41.07 27.72 40.93 27.93 40.86 28 40.81 28.06 40.79 28.16 40.72 28.2 40.58 28.41 40.43 28.59 40.29 28.8 40.12 28.96 39.98 29.15 39.81 29.35 39.65 29.54 39.43 29.7 39.41 29.7 39.38 29.7 39.57 29.86 39.81 30.05 40 30.23 40.22 30.41 40.43 30.62 40.65 30.83 40.84 31.04 41.05 31.24 41.19 31.36 41.29 31.47 41.41 31.61 41.5 31.75 41.53 31.75"/>
+ <polygon class="cls-3" points="36.11 31.29 36.33 31.08 36.52 30.9 36.76 30.69 37 30.53 37.24 30.37 37.5 30.18 37.72 29.98 37.93 29.77 37.95 29.72 37.98 29.72 37.83 29.77 37.69 29.77 37.55 29.72 37.43 29.65 37.38 29.4 37.24 29.15 37.09 28.94 36.9 28.71 36.67 28.48 36.47 28.27 36.26 28.06 36.07 27.86 36.07 27.83 35.97 27.97 35.85 28.11 35.76 28.2 35.62 28.34 35.64 28.66 35.81 28.8 36 28.87 36.21 28.99 36.38 29.12 36.5 29.22 36.57 29.29 36.67 29.4 36.71 29.52 36.64 29.7 36.5 29.86 36.36 30.05 36.26 30.21 36.21 30.28 36.14 30.37 36.09 30.46 36.09 30.53 36.14 30.64 36.24 30.76 36.26 30.83 36.26 30.97 36.24 31.06 36.19 31.11 36.11 31.2 36.09 31.29 36.11 31.29"/>
+ <polygon class="cls-3" points="26.6 29.86 26.6 29.86 26.6 29.84 26.41 29.79 26.25 29.7 26.1 29.63 25.96 29.52 25.82 29.4 25.7 29.26 25.63 29.12 25.51 28.96 25.41 28.8 25.34 28.62 25.27 28.48 25.27 28.32 25.34 28.27 25.41 28.2 25.48 28.16 25.51 28.11 25.6 27.83 25.7 27.58 25.89 27.35 26.1 27.21 26.25 27.17 26.39 27.14 26.53 27.07 26.68 27.05 26.32 27.14 25.94 27.1 25.56 27.05 25.22 26.91 24.89 26.77 24.53 26.61 24.22 26.45 23.91 26.27 23.77 26.17 23.62 26.08 23.48 25.99 23.36 25.9 23.22 25.81 23.1 25.67 22.98 25.55 22.91 25.39 22.7 25.62 22.48 25.85 22.24 26.11 21.98 26.36 21.77 26.61 21.5 26.82 21.24 27.07 20.98 27.28 21.34 27.49 21.67 27.72 22.03 27.93 22.34 28.16 22.65 28.39 22.98 28.59 23.36 28.8 23.74 28.96 24.08 29.12 24.41 29.24 24.79 29.38 25.17 29.45 25.53 29.56 25.91 29.65 26.25 29.77 26.6 29.86"/>
+ <polygon class="cls-3" points="38.69 29.08 38.98 28.76 39.24 28.43 39.5 28.13 39.76 27.79 39.98 27.49 40.19 27.19 40.41 26.87 40.65 26.54 41 25.85 41.36 25.12 41.65 24.38 41.93 23.57 42.12 22.77 42.34 21.94 42.43 21.13 42.51 20.32 42.65 20.18 42.29 20.18 41.96 20.23 41.58 20.23 41.22 20.23 40.86 20.23 40.5 20.23 40.12 20.18 39.79 20.16 39.79 20.55 39.72 20.97 39.69 21.36 39.65 21.77 39.69 21.89 39.79 21.98 39.86 22.07 39.96 22.19 39.98 22.26 39.98 22.37 39.98 22.47 39.93 22.53 39.84 22.6 39.72 22.63 39.62 22.63 39.53 22.6 39.5 22.58 39.48 22.53 39.24 23.2 38.98 23.85 38.69 24.45 38.4 25.02 38.07 25.62 37.72 26.13 37.33 26.64 36.85 27.14 36.83 27.14 36.81 27.14 36.78 27.17 36.76 27.17 37.57 27.9 37.62 27.9 37.64 27.88 37.67 27.58 37.69 27.56 37.76 27.51 37.78 27.51 37.83 27.51 37.95 27.56 38.05 27.58 38.12 27.6 38.19 27.63 38.38 27.9 38.5 28.18 38.57 28.53 38.69 28.85 38.67 28.89 38.67 28.96 38.67 29.03 38.67 29.1 38.69 29.08"/>
+ <polygon class="cls-3" points="21.1 28.71 20.88 28.46 20.93 28.59 21.1 28.71"/>
+ <polygon class="cls-3" points="20.81 28.34 20.79 28.32 20.79 28.29 20.76 28.29 20.79 28.34 20.81 28.34"/>
+ <polygon class="cls-1" points="5.75 28.2 5.63 27.42 5.63 26.59 5.72 25.78 5.89 24.98 6.1 24.17 6.37 23.34 6.6 22.53 6.82 21.75 7.08 20.65 7.29 19.49 7.44 18.39 7.51 17.28 7.51 17.14 7.51 17.01 7.49 16.87 7.49 16.73 7.25 17.51 6.94 18.18 6.6 18.8 6.22 19.4 5.86 20 5.48 20.6 5.17 21.24 4.89 21.96 4.65 22.93 4.6 23.87 4.67 24.82 4.89 25.76 4.86 25.76 4.86 25.78 4.82 25.78 4.79 25.78 4.77 25.76 4.6 25.23 4.46 24.68 4.34 24.12 4.22 23.57 3.93 22.53 3.53 21.57 3.1 20.6 2.65 19.63 2.29 18.64 2 17.65 1.88 16.64 1.95 15.55 1.64 16.38 1.43 17.26 1.29 18.18 1.22 19.08 1.29 19.95 1.38 20.81 1.57 21.66 1.79 22.49 2.1 23.34 2.53 24.12 3.05 24.84 3.6 25.53 4.17 26.2 4.72 26.87 5.24 27.51 5.72 28.25 5.75 28.2"/>
+ <polygon class="cls-1" points="50.68 27.88 51.11 27.35 51.54 26.82 51.99 26.27 52.42 25.69 52.85 25.12 53.26 24.52 53.66 23.89 54 23.27 54.3 22.6 54.59 21.94 54.83 21.24 55 20.53 55.09 19.82 55.14 19.06 55.09 18.3 54.97 17.49 54.88 16.98 54.78 16.5 54.64 15.99 54.45 15.48 54.43 15.42 54.4 15.32 54.35 15.25 54.3 15.18 54.4 16.15 54.35 17.07 54.14 17.97 53.83 18.87 53.45 19.75 53.09 20.65 52.71 21.52 52.4 22.44 52.21 23.06 52.09 23.73 51.95 24.4 51.73 25.07 51.57 25.44 51.54 25.44 51.54 25.41 51.68 24.82 51.78 24.19 51.8 23.59 51.78 22.95 51.68 22.35 51.54 21.75 51.3 21.15 51.01 20.6 50.73 20.09 50.44 19.61 50.13 19.12 49.82 18.64 49.51 18.16 49.25 17.63 49.01 17.05 48.82 16.43 48.8 17.74 48.97 19.03 49.25 20.32 49.63 21.64 50.02 22.93 50.37 24.24 50.66 25.53 50.78 26.82 50.78 27.1 50.73 27.35 50.68 27.63 50.66 27.9 50.68 27.88"/>
+ <polygon class="cls-3" points="19.76 27.17 19.79 27.07 19.83 27.03 19.88 27 19.93 26.91 20.22 26.64 20.5 26.36 20.79 26.08 21.07 25.81 21.36 25.53 21.62 25.25 21.93 24.98 22.22 24.72 21.91 24.4 21.62 24.03 21.36 23.69 21.17 23.27 20.95 22.86 20.76 22.4 20.6 21.96 20.45 21.47 20.45 21.41 20.45 21.36 20.41 21.34 20.41 21.27 20.12 21.11 20.07 21.29 20.05 21.52 19.98 21.75 19.95 21.96 19.95 21.98 19.93 21.98 19.91 22.03 19.88 22.05 19.76 22.03 19.69 21.98 19.67 21.94 19.62 21.91 19.52 21.89 19.45 21.82 19.38 21.77 19.33 21.66 19.31 21.57 19.33 21.52 19.36 21.47 19.38 21.43 19.41 21.43 19.48 21.41 19.52 21.43 19.6 21.47 19.64 21.47 19.69 21.24 19.69 21.01 19.67 20.81 19.64 20.58 19.64 20.55 19.67 20.53 19.69 20.53 19.74 20.51 19.83 20.53 19.93 20.58 20.02 20.69 20.07 20.78 20.19 20.81 20.31 20.78 20.41 20.71 20.53 20.69 20.55 20.67 20.55 20.65 20.6 20.65 20.6 20.6 20.67 20.28 20.64 20.25 20.62 20.25 20.6 20.23 20.55 20.18 20.6 20.02 20.62 19.86 20.62 19.68 20.55 19.49 20.6 19.33 20.55 19.19 20.5 19.06 20.41 18.94 20.24 18.87 20.05 18.87 19.83 18.89 19.67 18.94 19.64 18.99 19.62 19.01 19.6 19.01 19.52 19.08 19.5 19.19 19.52 19.31 19.52 19.42 19.64 19.59 19.74 19.77 19.76 19.98 19.74 20.16 19.69 20.18 19.67 20.23 19.62 20.25 19.55 20.28 19.48 20.25 19.38 20.25 19.26 20.25 19.19 20.25 19.1 20.39 19.1 20.55 19.07 20.71 18.98 20.85 18.83 20.92 18.67 20.92 18.5 20.97 18.38 21.08 18.4 21.29 18.5 21.5 18.52 21.71 18.5 21.96 18.69 22.17 18.9 22.37 19.05 22.6 19.12 22.88 19.21 23.16 19.26 23.43 19.31 23.71 19.48 23.92 19.48 24.06 19.48 24.19 19.48 24.31 19.5 24.45 19.52 25.02 19.76 25.53 19.95 26.04 19.98 26.59 19.91 26.68 19.76 26.77 19.67 26.82 19.62 26.96 19.6 27 19.6 27.03 19.62 27.03 19.67 27.03 19.69 27.05 19.74 27.05 19.76 27.07 19.76 27.1 19.76 27.14 19.76 27.17"/>
+ <polygon class="cls-3" points="30.25 26.96 30.35 26.96 30.42 26.91 30.51 26.89 30.54 26.8 30.54 26.73 30.56 26.64 30.63 26.59 30.68 26.52 30.82 26.5 30.97 26.45 31.11 26.41 31.25 26.36 31.8 25.99 31.94 25.83 32.06 25.65 32.14 25.44 32.11 25.21 32.11 25.16 32.09 25.14 32.06 25.14 32.04 25.12 31.68 25.23 31.63 25.35 31.54 25.41 31.47 25.51 31.32 25.55 31.18 25.53 31.06 25.44 30.94 25.37 30.85 25.3 30.82 25.3 30.8 25.35 30.8 25.37 30.8 25.39 30.82 25.39 30.85 25.41 30.9 25.48 30.92 25.53 30.92 25.62 30.92 25.67 30.56 25.81 30.18 25.58 30.13 25.58 30.11 25.58 30.06 25.83 29.89 25.76 29.7 25.65 29.51 25.55 29.32 25.51 29.27 25.48 29.25 25.44 29.25 25.41 29.23 25.39 29.18 25.37 29.11 25.35 29.06 25.37 28.99 25.39 28.92 25.44 28.82 25.51 28.7 25.53 28.61 25.55 28.61 25.58 28.61 25.62 28.56 25.65 28.56 25.67 28.54 25.71 28.51 25.76 28.46 25.81 28.39 25.83 28.18 26.17 27.99 26.2 27.82 26.31 27.65 26.38 27.49 26.45 27.51 26.59 27.68 26.64 27.84 26.66 28.04 26.66 28.18 26.64 28.25 26.52 28.37 26.47 28.49 26.41 28.61 26.41 28.77 26.45 28.94 26.45 29.11 26.45 29.27 26.45 29.32 26.45 29.35 26.47 29.37 26.52 29.39 26.54 29.49 26.8 29.66 26.82 29.89 26.82 30.09 26.89 30.25 26.96"/>
+ <polygon class="cls-3" points="33.92 26.89 35.23 26.77 35.33 26.5 35.43 26.24 35.54 25.99 35.71 25.78 35.81 25.71 35.83 25.71 35.9 25.78 35.93 25.81 35.95 25.85 36 25.99 36.05 26.13 36.07 26.27 36.09 26.41 36.47 26.04 36.78 25.62 37.09 25.21 37.36 24.75 37.62 24.29 37.83 23.83 38.07 23.32 38.26 22.77 38.26 22.74 38.24 22.74 38.05 22.77 37.81 22.79 37.62 22.86 37.38 22.88 37.19 22.9 36.95 22.9 36.76 22.88 36.55 22.79 36.38 23.09 36.33 23.16 36.26 23.16 36.14 23.18 36.07 23.16 36 23.09 35.95 23.02 35.9 22.93 35.85 22.81 35.81 23.04 35.69 23.23 35.52 23.43 35.4 23.64 35.26 23.76 35.12 23.83 34.95 23.87 34.78 23.89 34.66 24.01 34.57 24.17 34.47 24.29 34.28 24.38 34.18 24.38 34.07 24.38 33.95 24.4 33.85 24.45 33.83 24.45 33.83 24.47 33.85 24.54 33.9 24.56 33.95 24.59 33.99 24.59 34.07 24.59 34.09 24.59 34.14 24.59 34.18 24.59 34.47 24.47 34.52 24.45 34.57 24.42 34.64 24.4 34.66 24.33 34.69 24.24 34.76 24.12 34.81 24.01 34.9 23.92 35.04 23.89 35.14 23.85 35.28 23.83 35.4 23.85 35.52 23.99 35.62 24.12 35.69 24.29 35.69 24.47 35.69 24.65 35.66 24.79 35.62 24.93 35.54 25.02 35.52 25.23 35.5 25.41 35.47 25.58 35.38 25.71 35.35 25.85 35.33 25.99 35.23 26.08 35.14 26.2 35.12 26.24 35.12 26.31 35.12 26.36 35.09 26.41 34.97 26.47 34.83 26.52 34.69 26.54 34.54 26.54 34.33 26.47 34.09 26.38 33.9 26.34 33.66 26.27 33.42 26.24 33.23 26.2 32.99 26.13 32.78 26.08 32.61 26.06 32.42 26.04 32.28 26.04 32.14 26.06 32.09 26.13 32.09 26.2 32.11 26.22 32.18 26.24 32.21 26.27 32.42 26.31 32.66 26.36 32.9 26.45 33.11 26.5 33.33 26.59 33.52 26.68 33.71 26.77 33.92 26.89"/>
+ <polygon class="cls-3" points="27.11 26.2 27.11 26.2 27.13 26.2 27.18 25.97 27.2 25.71 27.22 25.51 27.37 25.3 27.51 25.25 27.63 25.25 27.77 25.25 27.89 25.23 27.92 25.16 27.92 25.14 27.92 25.09 27.92 25.02 27.84 24.98 27.8 24.95 27.75 24.86 27.7 24.79 27.68 24.68 27.65 24.56 27.68 24.45 27.77 24.4 27.75 23.85 27.77 23.83 27.8 23.76 27.84 23.73 27.92 23.71 27.68 23.78 27.42 23.78 27.2 23.78 26.94 23.71 26.68 23.62 26.46 23.55 26.2 23.43 25.98 23.32 25.84 23.27 25.7 23.18 25.56 23.06 25.48 22.93 25.48 22.9 25.48 22.88 25.39 23.04 25.27 23.18 25.13 23.32 24.98 23.43 24.82 23.59 24.67 23.73 24.51 23.89 24.34 24.06 24.2 24.24 24.03 24.38 23.89 24.54 23.74 24.68 24.08 24.93 24.46 25.16 24.82 25.39 25.22 25.62 25.65 25.78 26.1 25.94 26.56 26.06 27.06 26.17 27.08 26.2 27.11 26.2"/>
+ <polygon class="cls-3" points="30.99 24.7 31.71 24.29 31.71 24.26 31.75 24.24 31.75 24.17 31.75 24.15 31.25 24.24 31.23 24.24 31.23 24.26 31.21 24.29 31.11 24.33 31.04 24.4 30.97 24.47 30.92 24.59 30.97 24.68 30.99 24.7"/>
+ <polygon class="cls-3" points="14.47 23.99 14.59 23.71 14.61 23.64 14.68 23.62 14.76 23.59 14.78 23.55 14.76 23.43 14.8 23.32 14.83 23.2 14.83 23.09 14.8 23 14.8 22.88 14.83 22.79 14.83 22.67 14.95 22.44 15.07 22.17 15.23 21.94 15.47 21.77 15.69 21.66 15.88 21.5 16.02 21.34 16.21 21.2 16.33 21.2 16.47 21.2 16.54 21.24 16.64 21.34 16.69 21.38 16.76 21.43 16.81 21.52 16.83 21.57 16.69 21.29 16.64 20.97 16.62 20.65 16.64 20.32 16.66 20.3 16.66 20.28 16.66 20.25 16.33 20.28 15.97 20.3 15.64 20.32 15.3 20.32 14.95 20.32 14.61 20.3 14.23 20.3 13.9 20.28 13.87 20.28 13.87 20.25 13.83 20.25 13.8 20.25 13.97 21.15 14.16 22.1 14.3 23.04 14.45 23.99 14.47 23.99"/>
+ <polygon class="cls-3" points="22.98 23.99 23.17 23.73 23.36 23.55 23.6 23.32 23.79 23.09 23.55 22.17 23.53 22.12 23.51 22.12 23.48 22.12 23.46 22.21 23.48 22.33 23.51 22.44 23.53 22.51 23.53 22.53 23.51 22.58 23.48 22.6 23.41 22.6 23.36 22.6 23.34 22.58 23.31 22.53 23.31 22.51 23.24 22.49 23.22 22.47 23.17 22.47 23.08 22.37 22.96 22.3 22.89 22.21 22.81 22.07 22.89 21.96 22.65 21.77 22.62 21.8 22.6 21.82 22.55 21.84 22.5 21.84 22.48 21.84 22.46 21.84 22.41 21.84 22.39 21.82 22.36 21.75 22.31 21.64 22.24 21.54 22.12 21.52 21.98 21.5 21.84 21.47 21.69 21.41 21.6 21.36 21.67 21.57 21.79 21.8 21.88 22.05 21.96 22.33 22.08 22.53 22.19 22.77 22.34 23 22.46 23.18 22.6 23.36 22.7 23.57 22.84 23.76 22.96 23.99 22.98 23.99"/>
+ <polygon class="cls-3" points="32.68 23.64 32.71 23.64 32.78 23.64 32.8 23.62 32.83 23.59 32.85 23.46 32.83 23.34 32.78 23.2 32.68 23.09 32.33 22.88 32.35 22.74 32.33 22.74 32.28 22.72 32.23 22.72 32.21 22.72 32.18 22.74 32.14 22.79 32.09 22.81 32.06 22.88 32.09 23 32.11 23.09 32.14 23.18 32.23 23.27 32.28 23.3 32.37 23.32 32.42 23.34 32.49 23.36 32.52 23.46 32.54 23.5 32.61 23.59 32.66 23.64 32.68 23.64"/>
+ <polygon class="cls-3" points="28.08 22.86 28.56 22.77 28.68 22.49 28.8 22.21 28.94 21.94 29.13 21.71 29.25 21.71 29.37 21.71 29.49 21.75 29.61 21.75 29.68 21.75 29.8 21.75 29.92 21.71 29.99 21.68 30.11 21.5 30.2 21.27 30.25 21.06 30.28 20.83 30.09 20.6 30.04 20.32 29.99 20.05 29.85 19.82 29.85 19.77 29.82 19.72 29.82 19.7 29.8 19.68 29.75 19.61 29.66 19.59 29.61 19.56 29.54 19.49 29.54 19.4 29.61 19.29 29.63 19.19 29.66 19.08 29.68 19.06 29.68 19.03 29.8 18.99 29.82 18.94 29.82 18.89 29.82 18.87 29.8 18.8 29.75 18.73 29.68 18.62 29.68 18.53 29.68 18.43 29.7 18.39 29.7 18.36 29.7 18.34 29.75 18.32 29.47 18.2 29.35 18.09 29.23 17.95 29.11 17.83 28.96 17.74 28.92 17.67 28.89 17.6 28.82 17.56 28.75 17.54 28.61 17.51 28.49 17.49 28.34 17.49 28.2 17.51 28.13 17.47 28.08 17.4 28.06 17.35 28.04 17.28 27.89 17.21 27.77 17.12 27.68 17.01 27.63 16.84 27.65 16.73 27.75 16.68 27.82 16.66 27.94 16.66 28.06 16.66 28.11 16.68 28.13 16.68 28.2 16.68 28.23 16.68 28.23 16.66 28.2 16.66 28.18 16.66 28.13 16.64 28.11 16.57 28.08 16.54 28.06 16.52 27.46 16.57 27.46 16.59 27.42 16.59 27.42 16.64 27.53 16.73 27.65 17.35 27.56 17.47 27.49 17.56 27.37 17.65 27.22 17.74 27.11 17.81 26.96 17.88 26.82 17.93 26.68 17.97 26.63 17.97 26.56 18.02 26.51 18.02 26.46 18.04 26.27 18.39 26.13 18.46 25.98 18.57 25.89 18.66 25.77 18.8 25.7 19.15 25.68 19.47 25.63 19.82 25.6 20.14 25.6 20.16 25.56 20.18 25.53 20.23 25.51 20.23 25.41 20.23 25.34 20.23 25.25 20.18 25.2 20.14 25.13 19.98 25.08 19.82 25.03 19.63 24.91 19.54 24.82 19.68 24.79 19.7 24.75 19.7 24.65 19.68 24.63 19.63 24.53 19.59 24.46 19.56 24.36 19.56 24.27 19.59 24.1 19.75 24.03 19.95 23.93 20.16 23.84 20.37 23.79 20.39 23.74 20.42 23.7 20.44 23.65 20.51 23.67 20.53 23.7 20.55 23.77 20.55 23.82 20.55 23.96 20.53 24.1 20.51 24.24 20.46 24.39 20.44 24.53 20.42 24.67 20.42 24.82 20.39 24.96 20.39 24.98 20.39 25.06 20.32 25.08 20.3 25.1 20.28 25.27 20.3 25.32 20.32 25.36 20.39 25.39 20.44 25.39 20.53 25.41 20.53 25.48 20.46 25.56 20.42 25.6 20.37 25.63 20.28 25.63 20.16 25.63 20.09 25.65 20 25.7 19.91 25.98 19.86 26.08 20.14 26.22 20.25 26.1 20.46 25.96 20.67 25.84 20.88 25.79 21.15 25.77 21.22 25.7 21.27 25.63 21.29 25.56 21.29 25.53 21.29 25.51 21.27 25.48 21.27 25.46 21.24 25.46 21.22 25.46 21.2 25.41 21.15 25.41 21.13 25.39 21.13 25.39 21.15 25.36 21.15 25.36 21.2 25.63 21.54 25.77 21.38 25.91 21.2 26.08 21.06 26.32 20.95 26.34 20.83 26.39 20.39 26.51 20.28 26.7 20.23 26.89 20.23 27.08 20.18 27.32 20.18 27.53 20.23 27.75 20.28 27.92 20.39 27.92 20.42 27.94 20.42 27.94 20.44 27.94 20.51 27.92 20.53 27.89 20.58 27.84 20.6 27.96 20.78 27.65 21.43 27.65 21.52 27.65 21.61 27.63 21.68 27.56 21.77 27.53 21.77 27.51 21.8 27.46 21.96 27.37 22.05 27.27 22.1 27.18 22.12 27.06 22.17 26.94 22.17 26.82 22.19 26.7 22.21 26.6 22.24 26.53 22.24 26.49 22.24 26.41 22.24 26.37 22.24 26.46 22.35 26.6 22.44 26.77 22.51 26.91 22.6 27.06 22.65 27.2 22.67 27.37 22.74 27.51 22.77 27.65 22.79 27.8 22.79 27.94 22.81 28.08 22.86"/>
+ <polygon class="cls-3" points="24.22 22.72 24.36 22.58 24.51 22.44 24.67 22.3 24.89 22.24 24.6 22.07 24.51 22.24 24.41 22.4 24.34 22.53 24.2 22.65 24.2 22.67 24.2 22.72 24.22 22.72"/>
+ <polygon class="cls-3" points="17.81 22.21 17.88 22.05 17.95 21.91 18.05 21.77 18.17 21.66 18.17 21.64 18.07 21.52 17.97 21.38 17.95 21.24 17.97 21.08 18.07 20.92 18.09 20.74 18.17 20.58 18.21 20.42 18.45 20.28 18.33 20.28 18.21 20.3 18.07 20.32 17.95 20.3 17.83 20.3 17.76 20.28 17.64 20.25 17.55 20.18 17.69 20.65 17.78 21.13 17.81 21.64 17.81 22.12 17.81 22.17 17.81 22.19 17.81 22.21"/>
+ <polygon class="cls-3" points="38.43 22.05 38.55 21.64 38.64 21.22 38.69 20.81 38.76 20.39 38.76 20.37 38.79 20.3 38.79 20.28 38.81 20.25 38.62 20.25 38.38 20.25 38.19 20.25 37.95 20.25 37.72 20.25 37.52 20.23 37.29 20.16 37.09 20.09 37.19 20.18 37.29 20.3 37.38 20.42 37.47 20.53 37.52 20.65 37.55 20.74 37.57 20.88 37.62 20.99 37.86 21.22 38.09 21.47 38.26 21.71 38.4 22.05 38.43 22.05"/>
+ <polygon class="cls-1" points="4.31 21.52 4.53 20.58 4.89 19.72 5.32 18.92 5.79 18.18 6.32 17.47 6.82 16.77 7.34 16.04 7.82 15.32 8.06 14.93 8.25 14.52 8.44 14.1 8.61 13.64 8.77 13.2 8.89 12.72 9.01 12.26 9.08 11.82 8.75 12.37 8.32 12.86 7.82 13.36 7.29 13.82 6.75 14.31 6.22 14.79 5.77 15.3 5.36 15.85 5.17 16.13 5.01 16.45 4.86 16.8 4.72 17.12 4.62 17.49 4.51 17.83 4.46 18.23 4.39 18.59 4.36 18.62 4.39 17.14 4.46 15.67 4.39 14.15 4.15 12.65 4.08 11.68 4.15 10.65 4.36 9.68 4.79 8.83 4.74 8.83 4.67 8.85 4.62 8.92 4.58 8.96 4.46 9.13 4.34 9.26 4.22 9.45 4.1 9.59 4.03 9.75 3.91 9.89 3.81 10.05 3.72 10.21 3.34 10.85 3.05 11.55 2.79 12.24 2.62 12.97 2.53 13.73 2.48 14.47 2.5 15.21 2.62 15.97 2.79 16.68 3 17.37 3.24 18.04 3.5 18.73 3.77 19.4 4.01 20.09 4.17 20.78 4.29 21.5 4.29 21.52 4.29 21.54 4.31 21.52"/>
+ <polygon class="cls-1" points="52.09 21.2 52.16 20.55 52.3 19.91 52.52 19.31 52.71 18.66 52.95 18.06 53.16 17.42 53.38 16.82 53.57 16.18 53.73 15.14 53.78 14.08 53.66 13.04 53.42 12.01 53.07 11.01 52.59 10.09 52.06 9.24 51.42 8.5 51.4 8.48 51.37 8.48 51.35 8.48 51.3 8.44 51.54 8.83 51.73 9.24 51.87 9.72 51.99 10.21 52.02 12.21 51.87 14.2 51.83 16.22 51.99 18.2 51.99 18.23 51.97 18.25 51.95 18.25 51.87 18.18 51.87 18.04 51.85 17.9 51.83 17.77 51.8 17.65 51.8 17.54 51.78 17.42 51.73 17.33 51.64 16.84 51.44 16.41 51.26 15.99 50.99 15.6 50.7 15.25 50.4 14.89 50.06 14.56 49.71 14.22 49.35 13.89 48.97 13.59 48.58 13.25 48.25 12.93 47.92 12.58 47.58 12.26 47.35 11.89 47.08 11.52 47.15 12.03 47.3 12.58 47.49 13.11 47.68 13.64 47.92 14.17 48.15 14.63 48.42 15.07 48.7 15.48 49.2 16.15 49.71 16.82 50.23 17.47 50.68 18.11 51.13 18.8 51.52 19.54 51.83 20.32 52.06 21.2 52.06 21.22 52.09 21.2"/>
+ <polygon class="cls-3" points="16.69 19.31 16.64 18.5 16.76 17.7 16.97 16.87 17.21 16.08 17.45 15.48 17.69 14.93 17.95 14.45 18.24 13.94 18.55 13.48 18.88 13.04 19.24 12.56 19.64 12.12 19.38 11.89 19.12 11.68 18.88 11.43 18.62 11.17 18.36 10.97 18.12 10.71 17.88 10.44 17.66 10.18 17.36 10.65 17.02 11.11 16.66 11.55 16.35 11.96 16.04 12.4 15.76 12.83 15.47 13.34 15.23 13.82 14.95 14.47 14.68 15.14 14.49 15.83 14.33 16.52 14.16 17.21 14.04 17.9 13.95 18.59 13.9 19.29 14.23 19.29 14.59 19.29 14.95 19.26 15.3 19.26 15.64 19.26 16.02 19.26 16.35 19.29 16.69 19.31"/>
+ <polygon class="cls-3" points="17.59 19.31 17.74 19.29 17.88 19.26 18.02 19.22 18.17 19.22 18.31 19.22 18.45 19.22 18.59 19.26 18.74 19.29 18.67 19.03 18.62 18.76 18.59 18.48 18.64 18.23 18.76 18.04 18.83 17.81 18.95 17.6 19.1 17.42 19.17 17.28 19.21 17.12 19.31 17.01 19.41 16.94 19.6 16.94 19.76 16.94 19.91 16.91 20.02 16.8 20.05 16.73 20.05 16.68 20.02 16.64 19.98 16.57 20.05 16.5 20.12 16.41 20.24 16.36 20.34 16.29 20.45 16.27 20.55 16.24 20.64 16.18 20.74 16.13 20.88 15.9 21.05 15.74 21.24 15.6 21.46 15.48 21.67 15.35 21.88 15.21 22.03 15.05 22.17 14.86 22.22 14.79 22.31 14.77 22.39 14.75 22.48 14.75 22.22 14.56 21.93 14.31 21.67 14.08 21.38 13.82 21.12 13.59 20.88 13.34 20.62 13.09 20.38 12.83 20.24 13 20.12 13.13 19.98 13.32 19.83 13.48 19.69 13.64 19.6 13.8 19.45 14.01 19.33 14.17 18.98 14.7 18.67 15.28 18.4 15.9 18.19 16.57 17.97 17.26 17.81 17.95 17.66 18.64 17.55 19.31 17.59 19.31"/>
+ <polygon class="cls-3" points="10.01 19.31 10.37 19.29 10.75 19.26 11.09 19.26 11.47 19.26 11.82 19.26 12.21 19.26 12.54 19.29 12.92 19.29 12.97 17.93 13.21 16.59 13.54 15.3 14.04 14.03 14.61 12.83 15.26 11.71 16.02 10.69 16.83 9.75 16.9 9.72 16.93 9.68 16.97 9.66 17.02 9.63 16.78 9.4 16.52 9.17 16.26 8.92 15.97 8.67 15.73 8.41 15.47 8.13 15.23 7.86 15.04 7.56 14.76 7.86 14.49 8.13 14.23 8.44 13.97 8.76 13.73 9.06 13.49 9.38 13.25 9.68 13.04 10 12.66 10.58 12.32 11.15 11.97 11.75 11.68 12.37 11.37 13.04 11.11 13.69 10.89 14.38 10.66 15.12 10.54 15.48 10.47 15.88 10.37 16.24 10.3 16.64 10.18 17.28 10.11 17.95 10.06 18.62 10.01 19.31"/>
+ <polygon class="cls-3" points="43.48 19.29 43.84 19.22 44.2 19.17 44.55 19.15 44.94 19.15 45.29 19.15 45.7 19.15 46.08 19.17 46.44 19.17 46.37 18.34 46.25 17.51 46.11 16.71 45.91 15.9 45.7 15.12 45.44 14.33 45.15 13.55 44.84 12.81 44.51 12.1 44.15 11.38 43.77 10.69 43.34 10.02 42.86 9.38 42.39 8.76 41.91 8.16 41.36 7.58 41.34 7.56 41.34 7.54 41.29 7.51 41.27 7.47 41.15 7.7 39.34 9.47 39.1 9.47 39.07 9.47 39.07 9.49 39.07 9.52 39.1 9.52 39.12 9.54 39.14 9.54 39.14 9.59 39.19 9.59 39.29 9.75 39.43 9.91 39.62 10.07 39.79 10.21 39.93 10.35 40.1 10.51 40.24 10.69 40.36 10.88 40.5 11.01 40.62 11.13 40.72 11.24 40.86 11.34 41 11.57 41.15 11.8 41.34 11.98 41.43 12.24 41.69 12.51 41.86 12.81 42.05 13.13 42.15 13.48 42.27 13.8 42.41 14.17 42.53 14.52 42.7 14.86 42.86 15.42 43.05 15.97 43.2 16.52 43.29 17.07 43.41 17.63 43.48 18.2 43.51 18.73 43.48 19.29"/>
+ <polygon class="cls-3" points="39.81 19.22 40.15 19.19 40.5 19.17 40.84 19.17 41.19 19.17 41.53 19.17 41.86 19.17 42.22 19.17 42.55 19.17 42.48 18.66 42.41 18.2 42.34 17.67 42.27 17.19 42.15 16.66 42.05 16.15 41.86 15.62 41.69 15.14 41.58 14.89 41.5 14.61 41.38 14.38 41.24 14.2 41.1 14.24 40.93 14.31 40.76 14.31 40.62 14.29 40.53 14.05 40.33 13.87 40.15 13.64 39.98 13.46 39.79 13.25 39.65 13.13 39.5 13.06 39.36 12.97 39.22 12.9 39.07 12.83 38.93 12.77 38.79 12.67 38.64 12.56 38.43 12.49 38.29 12.37 38.19 12.24 38.09 12.1 38.09 12.03 38.09 12.01 38.09 11.96 38.07 11.94 37.93 11.87 37.78 11.84 37.62 11.82 37.5 11.73 37.38 11.71 37.29 11.61 37.24 11.55 37.19 11.43 37.09 11.01 37 10.6 36.85 10.23 36.57 9.95 36.5 9.93 36.38 9.91 36.28 9.93 36.21 9.95 36.09 10.05 35.97 10.14 35.83 10.16 35.69 10.16 35.62 10 35.54 9.79 35.52 9.63 35.38 9.47 35.35 9.31 35.4 9.13 35.43 8.96 35.4 8.8 35.23 8.69 35.12 8.5 35.04 8.27 34.97 8.06 34.95 7.97 34.92 7.88 34.85 7.81 34.83 7.72 34.54 7.44 34.21 7.24 33.83 7.03 33.42 6.84 32.99 6.71 32.56 6.57 32.11 6.45 31.68 6.32 31.35 6.22 30.99 6.18 30.68 6.13 30.35 6.06 30.04 6.02 29.7 5.99 29.37 5.95 29.06 5.92 29.04 5.92 28.96 5.92 28.94 5.92 28.92 5.92 28.56 5.81 28.63 6.45 28.65 7.14 28.63 7.83 28.56 8.5 28.56 8.52 28.61 8.52 28.99 8.52 29.39 8.55 29.8 8.62 30.2 8.67 30.61 8.76 30.97 8.83 31.37 8.94 31.78 9.06 32.14 9.2 32.52 9.33 32.9 9.49 33.25 9.63 33.61 9.79 33.92 10 34.23 10.16 34.54 10.35 34.61 10.42 34.66 10.48 34.71 10.55 34.81 10.58 34.69 10.44 34.57 10.3 34.47 10.16 34.38 9.95 34.38 9.93 34.38 9.91 34.4 9.91 34.49 9.89 34.47 9.68 34.35 9.54 34.23 9.4 34.14 9.24 34.14 9.2 34.18 9.17 34.23 9.13 34.26 9.1 34.28 9.1 34.33 9.1 34.35 9.1 34.49 9.22 34.61 9.33 34.71 9.47 34.83 9.59 34.92 9.68 35 9.82 35.12 9.93 35.23 10.05 35.4 10.05 35.57 10.09 35.69 10.21 35.83 10.32 35.9 10.51 35.95 10.69 36 10.88 36.09 11.04 36.24 11.41 36.5 11.68 36.69 11.98 36.78 12.35 36.85 12.37 36.95 12.37 37 12.42 37.09 12.51 37.21 12.67 37.36 12.81 37.47 12.95 37.52 13.13 37.5 13.2 37.5 13.23 37.5 13.27 37.52 13.32 37.55 13.34 37.57 13.36 37.62 13.41 37.64 13.46 37.81 13.48 37.95 13.41 38.09 13.34 38.26 13.27 38.33 13.32 38.36 13.34 38.4 13.41 38.43 13.48 38.43 13.62 38.38 13.69 38.33 13.8 38.26 13.92 38.26 13.94 38.29 13.97 38.4 13.94 38.5 13.92 38.62 13.92 38.69 13.97 38.71 14.03 38.71 14.08 38.69 14.17 38.67 14.22 38.62 14.29 38.57 14.33 38.52 14.36 38.5 14.38 38.52 14.61 38.55 14.61 38.57 14.63 38.67 14.63 38.79 14.63 38.86 14.7 38.95 14.75 39 14.93 39.1 15.14 39.14 15.35 39.22 15.55 39.07 15.95 39.1 16.36 39.12 16.77 39.05 17.14 38.91 17.4 38.79 17.67 38.67 17.95 38.48 18.18 38.43 18.25 38.38 18.32 38.36 18.36 38.26 18.39 38.14 18.43 38.07 18.43 37.95 18.46 37.83 18.48 37.78 18.57 37.78 18.71 37.81 18.8 37.83 18.92 37.9 19.03 37.83 19.15 37.81 19.17 38.83 19.19 38.71 18.99 38.69 18.73 38.69 18.46 38.71 18.2 38.86 17.88 38.98 17.54 39.12 17.24 39.24 16.94 39.34 16.84 39.41 16.8 39.5 16.73 39.57 16.71 39.62 16.71 39.65 16.73 39.65 16.8 39.67 16.82 39.67 17.05 39.65 17.28 39.57 17.51 39.5 17.74 39.67 18.06 39.76 18.43 39.79 18.85 39.79 19.22 39.81 19.22"/>
+ <polygon class="cls-3" points="37.69 18.02 37.81 18.02 37.93 17.97 38.05 17.93 38.12 17.83 38.21 17.67 38.33 17.54 38.4 17.37 38.5 17.21 38.38 16.84 38.26 16.45 38.12 16.13 37.95 15.83 37.83 15.76 37.69 15.69 37.57 15.6 37.5 15.53 37.38 15.46 37.26 15.39 37.12 15.3 37 15.25 36.95 15.18 36.93 15.14 36.9 15.07 36.9 15 36.98 14.84 37.07 14.65 37.12 14.49 37.12 14.33 37 14.15 36.85 13.92 36.69 13.73 36.55 13.53 36.38 13.34 36.21 13.13 36.05 12.93 35.9 12.72 35.71 12.95 35.52 13.2 35.28 13.41 35.07 13.62 34.83 13.82 34.57 14.05 34.35 14.29 34.12 14.49 33.99 14.63 33.9 14.77 33.76 14.91 33.64 15.02 33.52 15.16 33.38 15.3 33.25 15.42 33.14 15.55 33.25 15.74 33.38 15.83 33.4 15.74 33.42 15.67 33.47 15.6 33.52 15.53 33.54 15.42 33.56 15.32 33.56 15.25 33.61 15.16 33.66 15.07 33.76 15.05 33.85 15 33.97 14.98 34.12 15.05 34.23 15.07 34.38 15.12 34.52 15.12 34.66 15.12 34.81 15.12 34.95 15.14 35.09 15.16 35.23 15.16 35.35 15.16 35.5 15.16 35.64 15.18 35.76 15.21 35.85 15.25 35.97 15.3 36.07 15.42 36.14 15.53 36.21 15.67 36.26 15.81 36.38 15.9 36.4 15.9 36.43 15.95 36.47 15.97 36.5 15.99 36.52 16.01 36.52 16.04 36.52 16.11 36.55 16.13 36.38 16.36 36.38 16.38 36.55 16.59 36.57 16.59 36.57 16.57 36.62 16.57 36.76 16.45 36.93 16.36 37.12 16.29 37.36 16.31 37.52 16.41 37.64 16.52 37.76 16.66 37.83 16.77 38.07 16.84 38.09 16.91 38.09 16.96 38.09 17.01 38.07 17.1 38 17.12 37.95 17.14 37.9 17.21 37.83 17.24 37.83 17.35 37.81 17.49 37.76 17.6 37.67 17.7 37.67 17.79 37.64 17.83 37.64 17.93 37.64 18.02 37.67 18.02 37.69 18.02"/>
+ <polygon class="cls-3" points="30.51 16.64 30.9 16.54 30.92 16.52 30.92 16.41 30.94 16.31 30.99 16.24 31.09 16.15 31.23 16.01 31.4 15.9 31.56 15.81 31.75 15.71 31.9 15.6 32.06 15.48 32.21 15.35 32.33 15.18 32.14 15.21 31.92 15.07 31.9 15.05 31.9 15 31.9 14.93 31.92 14.91 32.06 14.86 32.18 14.75 32.33 14.63 32.47 14.59 32.35 14.52 32.23 14.47 32.11 14.38 31.99 14.33 31.9 14.29 31.8 14.2 31.68 14.15 31.56 14.08 31.25 13.89 30.92 13.76 30.54 13.62 30.13 13.5 29.75 13.39 29.37 13.32 28.96 13.23 28.61 13.13 28.65 13.62 28.68 14.05 28.65 14.52 28.68 15 29.39 15.28 29.54 15.14 29.7 14.98 29.89 14.86 30.11 14.75 30.13 14.7 30.2 14.63 30.25 14.59 30.35 14.56 30.4 14.56 30.49 14.61 30.54 14.63 30.56 14.7 30.61 14.93 30.56 15.16 30.49 15.39 30.4 15.58 30.28 15.69 30.2 15.76 30.09 15.83 29.97 15.9 29.89 15.97 29.78 16.01 29.66 16.08 29.54 16.13 29.27 16.31 29.27 16.36 29.49 16.36 29.63 16.27 29.78 16.22 29.97 16.24 30.09 16.29 30.18 16.38 30.25 16.43 30.35 16.5 30.37 16.54 30.4 16.57 30.47 16.59 30.51 16.64"/>
+ <polygon class="cls-3" points="25.68 16.01 26.13 15.9 26.2 15.83 26.25 15.74 26.27 15.67 26.37 15.58 26.39 15.39 26.41 15.18 26.51 15.02 26.65 14.89 26.68 14.86 26.75 14.86 26.77 14.86 26.8 14.86 26.84 14.91 26.84 15 26.82 15.07 26.82 15.16 26.99 15.18 27.18 15.16 27.34 15.12 27.51 15.07 27.68 15.21 27.65 15.14 27.63 15.02 27.61 14.91 27.56 14.79 27.53 14.38 27.53 14.01 27.53 13.62 27.56 13.2 27.03 13.27 26.49 13.41 25.94 13.55 25.46 13.76 24.96 14.01 24.51 14.24 24.08 14.56 23.7 14.89 23.65 14.93 23.62 14.98 23.55 15.02 23.51 15.05 23.7 15.07 24.24 15.32 24.48 15.55 24.48 15.58 24.48 15.6 24.48 15.62 24.46 15.69 24.39 15.71 24.34 15.74 24.32 15.81 24.51 15.95 24.6 15.95 24.63 15.88 24.65 15.85 24.65 15.81 24.67 15.76 24.67 15.74 24.7 15.74 24.75 15.71 24.77 15.71 24.89 15.74 24.96 15.81 25.03 15.9 25.13 15.97 25.22 15.97 25.32 15.95 25.39 15.9 25.48 15.88 25.51 15.9 25.53 15.9 25.56 15.95 25.6 15.97 25.65 16.04 25.68 16.01"/>
+ <polygon class="cls-1" points="5.08 15.18 5.44 14.63 5.82 14.15 6.29 13.64 6.77 13.2 7.25 12.77 7.77 12.31 8.3 11.89 8.8 11.45 9.32 11.01 9.77 10.55 10.2 10.07 10.58 9.54 10.89 8.99 11.16 8.39 11.32 7.72 11.4 7.01 11.18 7.42 10.89 7.83 10.54 8.23 10.2 8.62 9.8 8.94 9.39 9.24 8.96 9.54 8.58 9.79 8.15 10.09 7.75 10.44 7.34 10.78 6.96 11.15 6.63 11.57 6.32 11.98 6.06 12.42 5.86 12.9 5.82 12.9 5.79 12.9 5.91 12.49 6.03 12.03 6.17 11.61 6.34 11.17 6.48 10.74 6.6 10.3 6.72 9.89 6.79 9.45 6.82 9.24 6.89 9.08 6.91 8.92 6.94 8.76 7.03 8.34 7.15 7.95 7.25 7.56 7.39 7.19 7.58 6.84 7.77 6.5 8.01 6.2 8.25 5.92 8.82 5.46 8.37 5.6 7.94 5.76 7.53 6.02 7.18 6.27 6.79 6.57 6.48 6.89 6.17 7.26 5.89 7.6 5.39 8.48 5.15 9.38 5.03 10.35 5.01 11.32 5.05 12.28 5.1 13.27 5.1 14.24 5.05 15.18 5.08 15.18"/>
+ <polygon class="cls-1" points="51.23 14.86 51.13 13.97 51.11 13.06 51.11 12.17 51.16 11.27 51.21 10.69 51.16 10.09 51.09 9.52 50.97 8.94 50.8 8.39 50.56 7.86 50.28 7.37 49.97 6.96 49.66 6.61 49.37 6.32 49.06 6.04 48.7 5.79 48.37 5.6 48.01 5.39 47.63 5.25 47.2 5.16 47.58 5.44 47.94 5.76 48.23 6.13 48.49 6.5 48.68 6.96 48.87 7.42 49.01 7.88 49.13 8.39 49.25 8.92 49.37 9.45 49.51 9.95 49.68 10.48 49.85 10.99 50.06 11.52 50.23 12.01 50.42 12.51 50.42 12.54 50.4 12.54 50.4 12.56 50.37 12.56 50.35 12.54 50.06 11.94 49.68 11.38 49.23 10.85 48.73 10.37 48.2 9.93 47.66 9.52 47.11 9.17 46.56 8.83 46.25 8.62 45.96 8.39 45.7 8.13 45.44 7.88 45.22 7.6 45.01 7.3 44.84 7.03 44.67 6.73 44.72 7.17 44.84 7.6 44.98 8.06 45.15 8.5 45.34 8.92 45.56 9.31 45.8 9.66 46.06 10 46.37 10.32 46.68 10.62 47.01 10.9 47.37 11.2 47.73 11.48 48.09 11.75 48.44 12.01 48.8 12.28 49.16 12.56 49.51 12.86 49.82 13.13 50.13 13.46 50.44 13.78 50.7 14.15 50.97 14.49 51.21 14.89 51.23 14.86"/>
+ <polygon class="cls-3" points="33.25 14.01 33.5 13.76 33.71 13.5 33.95 13.25 34.21 12.97 34.47 12.72 34.76 12.49 35 12.28 35.28 12.12 35.26 12.1 35.21 12.08 35.14 12.03 35.09 12.03 34.78 11.8 34.47 11.55 34.12 11.32 33.76 11.11 33.38 10.88 32.97 10.69 32.56 10.48 32.18 10.32 31.75 10.18 31.32 10.02 30.9 9.91 30.42 9.79 29.99 9.68 29.54 9.61 29.08 9.54 28.63 9.49 28.61 9.47 28.56 9.47 28.63 10.14 28.65 10.78 28.63 11.48 28.63 12.14 29.25 12.21 29.89 12.31 30.49 12.44 31.09 12.67 31.66 12.93 32.21 13.2 32.68 13.5 33.14 13.82 33.19 13.87 33.21 13.92 33.23 13.94 33.23 14.01 33.25 14.01"/>
+ <polygon class="cls-3" points="23.1 14.01 23.1 14.01 23.1 13.97 23.36 13.73 23.65 13.5 23.96 13.27 24.27 13.09 24.63 12.93 24.96 12.77 25.34 12.63 25.7 12.49 25.94 12.42 26.18 12.35 26.39 12.28 26.65 12.24 26.89 12.21 27.11 12.17 27.34 12.14 27.56 12.17 27.53 11.52 27.51 10.83 27.53 10.16 27.61 9.47 27.13 9.52 26.7 9.61 26.27 9.68 25.82 9.79 25.39 9.91 24.96 10.05 24.55 10.18 24.17 10.32 23.77 10.48 23.36 10.69 22.98 10.85 22.62 11.06 22.27 11.27 21.93 11.48 21.62 11.73 21.31 11.98 21.22 12.01 21.17 12.08 21.12 12.1 21.07 12.14 21.34 12.35 21.6 12.56 21.84 12.79 22.1 13.04 22.36 13.27 22.6 13.53 22.84 13.78 23.08 14.01 23.1 14.01"/>
+ <polygon class="cls-3" points="20.34 11.48 20.36 11.48 20.36 11.45 20.38 11.45 20.62 11.24 20.88 11.01 21.12 10.83 21.38 10.6 21.65 10.44 21.91 10.23 22.19 10.07 22.48 9.93 22.77 9.77 23.05 9.63 23.36 9.49 23.67 9.36 23.98 9.24 24.34 9.13 24.67 9.03 25.03 8.92 25.34 8.83 25.65 8.76 25.96 8.69 26.27 8.64 26.6 8.57 26.94 8.55 27.22 8.52 27.53 8.52 27.53 7.88 27.51 7.26 27.51 6.59 27.53 5.95 27.53 5.92 27.06 5.95 26.56 5.99 26.06 6.04 25.56 6.13 25.08 6.22 24.55 6.34 24.08 6.48 23.6 6.61 23.1 6.78 22.65 6.96 22.19 7.14 21.77 7.37 21.34 7.56 20.91 7.79 20.53 8 20.17 8.25 19.93 8.39 19.69 8.55 19.48 8.76 19.26 8.92 19.05 9.1 18.81 9.26 18.59 9.4 18.36 9.54 18.33 9.54 18.33 9.59 18.36 9.59 18.62 9.77 18.88 9.95 19.12 10.21 19.38 10.44 19.64 10.69 19.91 10.97 20.12 11.2 20.34 11.45 20.34 11.48"/>
+ <polygon class="cls-1" points="7.44 9.82 7.77 9.52 8.15 9.22 8.49 8.94 8.87 8.64 9.23 8.36 9.58 8.02 9.94 7.72 10.3 7.37 10.75 6.82 11.18 6.27 11.59 5.67 11.97 5.12 12.44 4.56 12.9 4.06 13.4 3.5 14.02 2.97 13.52 3.14 13.04 3.3 12.54 3.5 12.09 3.69 11.63 3.92 11.18 4.13 10.78 4.38 10.37 4.66 9.96 4.95 9.63 5.25 9.3 5.62 9.01 5.99 8.73 6.36 8.46 6.78 8.25 7.26 8.08 7.72 7.94 8.27 7.8 8.83 7.6 9.36 7.39 9.86 7.44 9.82"/>
+ <polygon class="cls-1" points="48.7 9.52 48.54 8.85 48.35 8.25 48.11 7.65 47.84 7.05 47.53 6.55 47.23 6.02 46.84 5.53 46.42 5.09 45.99 4.68 45.51 4.29 45.01 3.94 44.49 3.64 43.91 3.32 43.29 3.09 42.65 2.86 41.98 2.7 42.43 3.14 42.84 3.57 43.27 4.01 43.65 4.47 44.06 4.93 44.41 5.37 44.8 5.85 45.2 6.29 45.56 6.73 45.96 7.17 46.37 7.6 46.8 8.02 47.23 8.41 47.68 8.8 48.2 9.17 48.7 9.52"/>
+ <polygon class="cls-3" points="17.74 8.92 18.05 8.62 18.36 8.29 18.69 8.02 19.02 7.79 19.36 7.54 19.69 7.3 20.05 7.1 20.41 6.87 20.76 6.68 21.12 6.5 21.53 6.32 21.93 6.15 22.34 5.99 22.74 5.81 23.17 5.64 23.62 5.51 23.65 5.51 23.67 5.51 24.17 5.35 24.63 5.23 25.1 5.12 25.6 5.02 26.08 4.95 26.6 4.91 27.08 4.89 27.56 4.84 27.51 4.66 27.49 4.47 27.46 4.24 27.46 4.06 27.46 3.83 27.46 3.6 27.46 3.39 27.46 3.16 27.46 2.91 27.46 2.63 27.46 2.4 27.51 2.14 26.75 2.19 25.98 2.26 25.22 2.35 24.48 2.49 23.74 2.7 22.98 2.88 22.24 3.11 21.55 3.37 20.84 3.64 20.17 3.94 19.5 4.24 18.88 4.61 18.26 4.95 17.69 5.35 17.12 5.74 16.62 6.15 16.47 6.27 16.35 6.34 16.23 6.48 16.09 6.59 15.97 6.71 15.83 6.78 15.69 6.87 15.54 6.96 15.83 7.12 16.16 7.33 16.45 7.58 16.69 7.83 16.97 8.11 17.24 8.39 17.5 8.67 17.74 8.92"/>
+ <polygon class="cls-3" points="38.79 8.64 38.93 8.39 39.1 8.16 39.29 7.93 39.5 7.7 39.72 7.47 39.98 7.28 40.22 7.1 40.48 6.91 40.5 6.91 40.53 6.89 40.43 6.78 40.29 6.68 40.19 6.55 40.05 6.43 39.5 5.95 38.91 5.51 38.29 5.09 37.67 4.7 36.98 4.36 36.28 3.99 35.57 3.69 34.83 3.39 34.09 3.14 33.33 2.88 32.54 2.7 31.78 2.49 30.97 2.33 30.18 2.21 29.37 2.12 28.56 2.05 28.61 2.12 28.63 2.19 28.65 2.28 28.63 2.4 28.63 2.95 28.63 3.5 28.63 4.01 28.56 4.56 28.65 4.4 28.68 4.38 28.7 4.36 28.75 4.36 28.8 4.36 28.85 4.38 28.92 4.42 28.96 4.52 28.99 4.56 28.99 4.66 28.99 4.75 28.99 4.82 28.96 4.89 28.94 4.89 28.94 4.91 29.47 4.91 29.97 4.93 30.51 4.98 31.06 5.09 31.56 5.21 32.11 5.35 32.64 5.51 33.14 5.67 33.35 5.76 33.54 5.85 33.76 5.92 33.95 6.02 34.14 6.08 34.35 6.18 34.54 6.27 34.71 6.34 35.21 6.59 35.23 6.61 35.23 6.59 35.23 6.57 35.26 6.57 35.47 6.45 35.66 6.41 35.85 6.36 36.07 6.36 36.26 6.41 36.47 6.45 36.67 6.48 36.85 6.5 37 6.64 37.12 6.78 37.26 6.91 37.43 6.98 37.57 7.03 37.69 7.12 37.78 7.24 37.9 7.33 37.98 7.44 38.09 7.56 38.19 7.67 38.29 7.74 38.36 8.02 38.48 8.25 38.62 8.44 38.79 8.64"/>
+ <polygon class="cls-1" points="37.41 6.71 37.64 6.71 37.67 6.71 37.69 6.68 37.72 6.64 37.72 6.61 37.67 6.45 37.62 6.27 37.57 6.08 37.5 5.92 37.38 5.88 37.24 5.85 37.12 5.85 36.98 5.88 36.93 5.85 36.85 5.81 36.81 5.79 36.76 5.81 36.71 5.85 36.69 5.85 36.67 5.85 36.64 5.88 36.64 5.99 36.67 6.06 36.69 6.15 36.78 6.2 36.93 6.29 37.05 6.41 37.14 6.5 37.24 6.61 37.41 6.71"/>
+ <polygon class="cls-1" points="29.63 4.66 29.8 4.66 29.97 4.63 30.13 4.63 30.28 4.63 30.42 4.56 30.56 4.54 30.68 4.52 30.8 4.49 30.99 4.49 31.21 4.49 31.4 4.49 31.56 4.47 31.78 4.42 31.94 4.36 32.09 4.26 32.23 4.15 32.23 4.13 32.25 4.13 32.25 4.1 32.25 4.06 32.23 4.01 32.18 3.96 32.14 3.94 31.99 3.85 31.85 3.78 31.68 3.69 31.52 3.64 31.35 3.57 31.13 3.55 30.97 3.53 30.78 3.53 30.61 3.6 30.42 3.67 30.23 3.73 30.04 3.83 29.85 3.92 29.68 3.99 29.51 4.06 29.32 4.1 29.25 4.08 29.2 4.06 29.11 4.06 29.06 4.08 29.04 4.1 28.99 4.13 28.96 4.15 28.94 4.22 29.08 4.36 29.25 4.47 29.42 4.56 29.63 4.66"/>
+ </g>
+ </svg>
</xsl:variable>
<xsl:variable name="Image-Recycle">
<xsl:text>iVBORw0KGgoAAAANSUhEUgAAAJkAAAAmCAYAAADXwDkaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA+lpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJNaWNyb3NvZnTCriBXb3JkIDIwMTYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6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ZTt37mz3PliWCaHL5ubmlm7QhsvK9sMi/W48Holu2rQxfTIvEVlcrPTjqe4EZ7CgwBdra9uSmtcPt6eta6FynHEJKYGv2Jd90s86AQpAwNJsRuT5xUAHrKK4IkCd9g6NQAQPIi8vz4f5o72tANZVgO/GMpe59RvrtQvt7JMQLS0dAyI9sst1m7uTuL28gqwJBqfh8pTaWOTqTIvSblYxVtTe2RnbvHlzg/fsEofcLK4oasda9edCs9An49viDe3tm3sS2YHA/gAL39Le/tU2lGFS0mphWYsBlhI432690j5UQnnB0DjXjuv/Pkr/knwu5fQOx46PR+RzPKz5FG+vOtVFmJn08mQq/ix17K4bM722kS3f8O0J0IOnwddK6jo7zqrx5f7EdckzAOrK/5erFeIorlh4YH/pthHXfac7449A8DVAaRXYTgUQ4wdj/xgw8ytFk7xSqrdd135+AIqVLd+k6ICjZETxZhgY8HLnv3VGvTZa/+9kz/qlzuHctP4A89UE73L1sCJO8nXeWcqW3QOHeLyryF/Q4L3BoEhzW+fOO0A12vewbTZxj6/yWeCqz4J31WY1ny3/F6UYkeY68LIzhtsxa8myZailU1K6HlxN/x9kjcPp+HcBBgAS2JZd+kqHSQAAAABJRU5ErkJggg==</xsl:text>
</xsl:variable>
- <xsl:strip-space xmlns:redirect="http://xml.apache.org/xalan/redirect" elements="un:xref"/>
+ <xsl:strip-space elements="un:xref"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
+ <xsl:variable name="namespace_full" select="namespace-uri(/*)"/> <!-- example: https://www.metanorma.org/ns/iso -->
+ <xsl:variable name="root_element" select="local-name(/*)"/> <!-- example: iso-standard -->
+ <xsl:variable name="document_scheme" select="normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'document-scheme']/*[local-name() = 'value'])"/>
+
<!-- external parameters -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="svg_images"/> <!-- svg images array -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="images" select="document($svg_images)"/>
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="basepath"/> <!-- base path for images -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="inputxml_basepath"/> <!-- input xml file path -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="inputxml_filename"/> <!-- input xml file name -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="output_path"/> <!-- output PDF file name -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
+ <xsl:param name="svg_images"/> <!-- svg images array -->
+ <xsl:variable name="images" select="document($svg_images)"/>
+ <xsl:param name="basepath"/> <!-- base path for images -->
+ <xsl:param name="inputxml_basepath"/> <!-- input xml file path -->
+ <xsl:param name="inputxml_filename"/> <!-- input xml file name -->
+ <xsl:param name="output_path"/> <!-- output PDF file name -->
+ <xsl:param name="external_index"/><!-- path to index xml, generated on 1st pass, based on FOP Intermediate Format -->
+ <xsl:param name="syntax-highlight">false</xsl:param> <!-- syntax highlighting feature, default - off -->
+ <xsl:param name="add_math_as_text">true</xsl:param> <!-- add math in text behind svg formula, to copy-paste formula from PDF as text -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_if">false</xsl:param> <!-- generate extended table in IF for autolayout-algorithm -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_widths"/> <!-- (debug: path to) xml with table's widths, generated on 1st pass, based on FOP Intermediate Format -->
+ <xsl:param name="table_if">false</xsl:param> <!-- generate extended table in IF for autolayout-algorithm -->
+ <xsl:param name="table_widths"/> <!-- (debug: path to) xml with table's widths, generated on 1st pass, based on FOP Intermediate Format -->
<!-- Example: <tables>
<table page-width="509103" id="table1" width_max="223561" width_min="223560">
<column width_max="39354" width_min="39354"/>
<column width_max="75394" width_min="75394"/>
<column width_max="108813" width_min="108813"/>
@@ -774,44 +969,44 @@
<word_len>20</word_len>
...
-->
<!-- for command line debug: <xsl:variable name="table_widths_from_if" select="document($table_widths)"/> -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_widths_from_if" select="xalan:nodeset($table_widths)"/>
+ <xsl:variable name="table_widths_from_if" select="xalan:nodeset($table_widths)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_widths_from_if_calculated_">
+ <xsl:variable name="table_widths_from_if_calculated_">
<xsl:for-each select="$table_widths_from_if//table">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:call-template name="calculate-column-widths-autolayout-algorithm"/>
</xsl:copy>
</xsl:for-each>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_widths_from_if_calculated" select="xalan:nodeset($table_widths_from_if_calculated_)"/>
+ <xsl:variable name="table_widths_from_if_calculated" select="xalan:nodeset($table_widths_from_if_calculated_)"/>
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_if_debug">false</xsl:param> <!-- set 'true' to put debug width data before table or dl -->
+ <xsl:param name="table_if_debug">false</xsl:param> <!-- set 'true' to put debug width data before table or dl -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isApplyAutolayoutAlgorithm_">
+ <xsl:variable name="isApplyAutolayoutAlgorithm_">
true
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
+ <xsl:variable name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isGenerateTableIF_">
+ <xsl:variable name="isGenerateTableIF_">
<xsl:choose>
<xsl:when test="$isApplyAutolayoutAlgorithm = 'true'">
<xsl:value-of select="normalize-space($table_if) = 'true'"/>
</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
+ <xsl:variable name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="lang">
+ <xsl:variable name="lang">
<xsl:call-template name="getLang"/>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="inputxml_filename_prefix">
+ <xsl:variable name="inputxml_filename_prefix">
<xsl:choose>
<xsl:when test="contains($inputxml_filename, '.presentation.xml')">
<xsl:value-of select="substring-before($inputxml_filename, '.presentation.xml')"/>
</xsl:when>
<xsl:when test="contains($inputxml_filename, '.xml')">
@@ -833,74 +1028,74 @@
<papersize>letter</papersize>
</presentation-metadata>
</metanorma-extension>
-->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize_width_">
+ <xsl:variable name="papersize" select="java:toLowerCase(java:java.lang.String.new(normalize-space(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'papersize'])))"/>
+ <xsl:variable name="papersize_width_">
<xsl:choose>
<xsl:when test="$papersize = 'letter'">215.9</xsl:when>
<xsl:when test="$papersize = 'a4'">210</xsl:when>
</xsl:choose>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize_width" select="normalize-space($papersize_width_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize_height_">
+ <xsl:variable name="papersize_width" select="normalize-space($papersize_width_)"/>
+ <xsl:variable name="papersize_height_">
<xsl:choose>
<xsl:when test="$papersize = 'letter'">279.4</xsl:when>
<xsl:when test="$papersize = 'a4'">297</xsl:when>
</xsl:choose>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize_height" select="normalize-space($papersize_height_)"/>
+ <xsl:variable name="papersize_height" select="normalize-space($papersize_height_)"/>
<!-- page width in mm -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pageWidth_">
+ <xsl:variable name="pageWidth_">
<xsl:choose>
<xsl:when test="$papersize_width != ''"><xsl:value-of select="$papersize_width"/></xsl:when>
<xsl:otherwise>
210
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pageWidth" select="normalize-space($pageWidth_)"/>
+ <xsl:variable name="pageWidth" select="normalize-space($pageWidth_)"/>
<!-- page height in mm -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pageHeight_">
+ <xsl:variable name="pageHeight_">
<xsl:choose>
<xsl:when test="$papersize_height != ''"><xsl:value-of select="$papersize_height"/></xsl:when>
<xsl:otherwise>
297
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pageHeight" select="normalize-space($pageHeight_)"/>
+ <xsl:variable name="pageHeight" select="normalize-space($pageHeight_)"/>
<!-- Page margins in mm (just digits, without 'mm')-->
<!-- marginLeftRight1 and marginLeftRight2 - is left or right margin depends on odd/even page,
for example, left margin on odd page and right margin on even page -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight1_">
+ <xsl:variable name="marginLeftRight1_">
40
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
+ <xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight2_">
+ <xsl:variable name="marginLeftRight2_">
40
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
+ <xsl:variable name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginTop_">
+ <xsl:variable name="marginTop_">
30
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginTop" select="normalize-space($marginTop_)"/>
+ <xsl:variable name="marginTop" select="normalize-space($marginTop_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginBottom_">
+ <xsl:variable name="marginBottom_">
40
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginBottom" select="normalize-space($marginBottom_)"/>
+ <xsl:variable name="marginBottom" select="normalize-space($marginBottom_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="layout_columns_default">1</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="layout_columns_" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'layout-columns'])"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="layout_columns">
+ <xsl:variable name="layout_columns_default">1</xsl:variable>
+ <xsl:variable name="layout_columns_" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata']/*[local-name() = 'layout-columns'])"/>
+ <xsl:variable name="layout_columns">
<xsl:choose>
<xsl:when test="$layout_columns_ != ''"><xsl:value-of select="$layout_columns_"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$layout_columns_default"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -908,11 +1103,11 @@
<!-- Note 2: almost all localized string determined in the element //localized-strings in metanorma xml, but there are a few cases when:
- string didn't determined yet
- we need to put the string on two-languages (for instance, on English and French both), but xml contains only localized strings for one language
- there is a difference between localized string value and text that should be displayed in PDF
-->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="titles_">
+ <xsl:variable name="titles_">
<!-- These titles of Table of contents renders different than determined in localized-strings -->
<!-- <title-toc lang="en">
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
<xsl:text>Contents</xsl:text>
@@ -953,61 +1148,61 @@
<title-subpart lang="en">Sub-part #</title-subpart>
<title-subpart lang="fr">Partie de sub #</title-subpart>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="titles" select="xalan:nodeset($titles_)"/>
+ <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="title-list-tables">
+ <xsl:variable name="title-list-tables">
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
<xsl:value-of select="$toc_table_title"/>
<xsl:if test="normalize-space($toc_table_title) = ''">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">toc_tables</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="title-list-figures">
+ <xsl:variable name="title-list-figures">
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
<xsl:value-of select="$toc_figure_title"/>
<xsl:if test="normalize-space($toc_figure_title) = ''">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">toc_figures</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="title-list-recommendations">
+ <xsl:variable name="title-list-recommendations">
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
<xsl:value-of select="$toc_requirement_title"/>
<xsl:if test="normalize-space($toc_requirement_title) = ''">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibdata">
+ <xsl:variable name="bibdata">
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
</xsl:variable>
<!-- Characters -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="linebreak">
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tab_zh"> </xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="non_breaking_hyphen">‑</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="thin_space"> </xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="zero_width_space"></xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hair_space"> </xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="en_dash">–</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="em_dash">—</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="cr"> </xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="lf">
+ <xsl:variable name="linebreak">
</xsl:variable>
+ <xsl:variable name="tab_zh"> </xsl:variable>
+ <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
+ <xsl:variable name="thin_space"> </xsl:variable>
+ <xsl:variable name="zero_width_space"></xsl:variable>
+ <xsl:variable name="hair_space"> </xsl:variable>
+ <xsl:variable name="en_dash">–</xsl:variable>
+ <xsl:variable name="em_dash">—</xsl:variable>
+ <xsl:variable name="cr"> </xsl:variable>
+ <xsl:variable name="lf">
</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getTitle">
+ <xsl:template name="getTitle">
<xsl:param name="name"/>
<xsl:param name="lang"/>
<xsl:variable name="lang_">
<xsl:choose>
<xsl:when test="$lang != ''">
@@ -1028,30 +1223,30 @@
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
+ <xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
+ <xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/>
+ <xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/>
<!-- ====================================== -->
<!-- STYLES -->
<!-- ====================================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="root-style">
+ <xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable>
+ <xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable>
+ <xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable>
+ <xsl:attribute-set name="root-style">
<xsl:attribute name="font-family">Times New Roman, STIX Two Math, <xsl:value-of select="$font_noto_serif"/></xsl:attribute>
<xsl:attribute name="font-family-generic">Serif</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set> <!-- root-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertRootStyle">
+ <xsl:template name="insertRootStyle">
<xsl:param name="root-style"/>
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
<xsl:variable name="additional_fonts_">
<xsl:for-each select="//*[contains(local-name(), '-standard')][1]/*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value'] | //*[contains(local-name(), '-standard')][1]/*[local-name() = 'presentation-metadata'][*[local-name() = 'name'] = 'fonts']/*[local-name() = 'value']">
@@ -1131,258 +1326,258 @@
</xsl:choose> -->
</xsl:for-each>
</xsl:template> <!-- insertRootStyle -->
<!-- Preface sections styles -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-style">
+ <xsl:attribute-set name="copyright-statement-style">
</xsl:attribute-set> <!-- copyright-statement-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-title-style">
+ <xsl:attribute-set name="copyright-statement-title-style">
</xsl:attribute-set> <!-- copyright-statement-title-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-p-style">
+ <xsl:attribute-set name="copyright-statement-p-style">
</xsl:attribute-set> <!-- copyright-statement-p-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-style">
+ <xsl:attribute-set name="license-statement-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-title-style">
+ <xsl:attribute-set name="license-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- license-statement-title-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-p-style">
+ <xsl:attribute-set name="license-statement-p-style">
</xsl:attribute-set> <!-- license-statement-p-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-style">
+ <xsl:attribute-set name="legal-statement-style">
</xsl:attribute-set> <!-- legal-statement-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-title-style">
+ <xsl:attribute-set name="legal-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- legal-statement-title-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-p-style">
+ <xsl:attribute-set name="legal-statement-p-style">
</xsl:attribute-set> <!-- legal-statement-p-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-style">
+ <xsl:attribute-set name="feedback-statement-style">
</xsl:attribute-set> <!-- feedback-statement-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-title-style">
+ <xsl:attribute-set name="feedback-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- feedback-statement-title-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-p-style">
+ <xsl:attribute-set name="feedback-statement-p-style">
</xsl:attribute-set> <!-- feedback-statement-p-style -->
<!-- End Preface sections styles -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="link-style">
+ <xsl:attribute-set name="link-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_link-style">
+ <xsl:template name="refine_link-style">
</xsl:template> <!-- refine_link-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode-container-style">
+ <xsl:attribute-set name="sourcecode-container-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode-style">
+ <xsl:attribute-set name="sourcecode-style">
<xsl:attribute name="white-space">pre</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="role">Code</xsl:attribute>
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_sourcecode-style">
+ <xsl:template name="refine_sourcecode-style">
</xsl:template> <!-- refine_sourcecode-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pre-style">
+ <xsl:attribute-set name="pre-style">
<xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-style">
+ <xsl:attribute-set name="permission-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-name-style">
+ <xsl:attribute-set name="permission-name-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-label-style">
+ <xsl:attribute-set name="permission-label-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-style">
+ <xsl:attribute-set name="requirement-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-name-style">
+ <xsl:attribute-set name="requirement-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-label-style">
+ <xsl:attribute-set name="requirement-label-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="subject-style">
+ <xsl:attribute-set name="subject-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="inherit-style">
+ <xsl:attribute-set name="inherit-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="description-style">
+ <xsl:attribute-set name="description-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="specification-style">
+ <xsl:attribute-set name="specification-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="measurement-target-style">
+ <xsl:attribute-set name="measurement-target-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="verification-style">
+ <xsl:attribute-set name="verification-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="import-style">
+ <xsl:attribute-set name="import-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="component-style">
+ <xsl:attribute-set name="component-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-style">
+ <xsl:attribute-set name="recommendation-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-name-style">
+ <xsl:attribute-set name="recommendation-name-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-label-style">
+ <xsl:attribute-set name="recommendation-label-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termexample-style">
+ <xsl:attribute-set name="termexample-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termexample-style">
+ <xsl:template name="refine_termexample-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-style">
+ <xsl:attribute-set name="example-style">
</xsl:attribute-set> <!-- example-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_example-style">
+ <xsl:template name="refine_example-style">
</xsl:template> <!-- refine_example-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-body-style">
+ <xsl:attribute-set name="example-body-style">
</xsl:attribute-set> <!-- example-body-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-name-style">
+ <xsl:attribute-set name="example-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- example-name-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_example-name-style">
+ <xsl:template name="refine_example-name-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-p-style">
+ <xsl:attribute-set name="example-p-style">
<xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="margin-top">12pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="margin-left">15mm</xsl:attribute>
</xsl:attribute-set> <!-- example-p-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_example-p-style">
+ <xsl:template name="refine_example-p-style">
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:if test="$num = 1">
<xsl:attribute name="margin-left">5mm</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_example-p-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termexample-name-style">
+ <xsl:attribute-set name="termexample-name-style">
</xsl:attribute-set> <!-- termexample-name-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termexample-name-style">
+ <xsl:template name="refine_termexample-name-style">
</xsl:template>
<!-- ========================== -->
<!-- Table styles -->
<!-- ========================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-border_">
+ <xsl:variable name="table-border_">
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-border" select="normalize-space($table-border_)"/>
+ <xsl:variable name="table-border" select="normalize-space($table-border_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-cell-border_">
+ <xsl:variable name="table-cell-border_">
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-cell-border" select="normalize-space($table-cell-border_)"/>
+ <xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-container-style">
+ <xsl:attribute-set name="table-container-style">
<xsl:attribute name="margin-left">0mm</xsl:attribute>
<xsl:attribute name="margin-right">0mm</xsl:attribute>
<xsl:attribute name="margin-bottom">18pt</xsl:attribute>
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:attribute-set> <!-- table-container-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-container-style">
+ <xsl:template name="refine_table-container-style">
<xsl:param name="margin-side"/>
<xsl:attribute name="margin-left"><xsl:value-of select="-$margin-side"/>mm</xsl:attribute>
<xsl:attribute name="margin-right"><xsl:value-of select="-$margin-side"/>mm</xsl:attribute>
<!-- end table block-container attributes -->
</xsl:template> <!-- refine_table-container-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-style">
+ <xsl:attribute-set name="table-style">
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
<xsl:attribute name="table-layout">fixed</xsl:attribute>
<xsl:attribute name="border-top">0.5pt solid black</xsl:attribute>
</xsl:attribute-set><!-- table-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-style">
+ <xsl:template name="refine_table-style">
<xsl:param name="margin-side"/>
<xsl:if test="$margin-side != 0">
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
@@ -1390,11 +1585,11 @@
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-name-style">
+ <xsl:attribute-set name="table-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="font-style">italic</xsl:attribute>
@@ -1402,50 +1597,50 @@
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-name-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-name-style">
+ <xsl:template name="refine_table-name-style">
<xsl:param name="continued"/>
</xsl:template> <!-- refine_table-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-row-style">
+ <xsl:attribute-set name="table-row-style">
<xsl:attribute name="min-height">4mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-header-row-style" use-attribute-sets="table-row-style">
+ <xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-row-style">
+ <xsl:template name="refine_table-header-row-style">
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-header-row-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-footer-row-style" use-attribute-sets="table-row-style">
+ <xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-row-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-footer-row-style">
+ <xsl:template name="refine_table-footer-row-style">
</xsl:template> <!-- refine_table-footer-row-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-body-row-style" use-attribute-sets="table-row-style">
+ <xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-row-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-body-row-style">
+ <xsl:template name="refine_table-body-row-style">
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-body-row-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-header-cell-style">
+ <xsl:attribute-set name="table-header-cell-style">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="padding-left">1mm</xsl:attribute>
<xsl:attribute name="padding-right">1mm</xsl:attribute>
<xsl:attribute name="display-align">center</xsl:attribute>
@@ -1459,11 +1654,11 @@
<xsl:attribute name="border-bottom">solid black 1.5pt</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-header-cell-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-cell-style">
+ <xsl:template name="refine_table-header-cell-style">
<xsl:call-template name="setBordersTableArray"/>
<xsl:if test="$lang = 'ar'">
<xsl:attribute name="padding-right">1mm</xsl:attribute>
@@ -1471,11 +1666,11 @@
<xsl:call-template name="setTableCellAttributes"/>
</xsl:template> <!-- refine_table-header-cell-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-cell-style">
+ <xsl:attribute-set name="table-cell-style">
<xsl:attribute name="display-align">center</xsl:attribute>
<xsl:attribute name="padding-left">1mm</xsl:attribute>
<xsl:attribute name="padding-right">1mm</xsl:attribute>
<xsl:attribute name="display-align">before</xsl:attribute>
@@ -1486,11 +1681,11 @@
<xsl:attribute name="border-bottom">solid black 1.5pt</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-cell-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-cell-style">
+ <xsl:template name="refine_table-cell-style">
<xsl:if test="$lang = 'ar'">
<xsl:attribute name="padding-right">1mm</xsl:attribute>
</xsl:if>
@@ -1498,73 +1693,73 @@
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-cell-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-footer-cell-style">
+ <xsl:attribute-set name="table-footer-cell-style">
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
<xsl:attribute name="padding-left">1mm</xsl:attribute>
<xsl:attribute name="padding-right">1mm</xsl:attribute>
<xsl:attribute name="padding-top">1mm</xsl:attribute>
</xsl:attribute-set> <!-- table-footer-cell-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-footer-cell-style">
+ <xsl:template name="refine_table-footer-cell-style">
</xsl:template> <!-- refine_table-footer-cell-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-note-style">
+ <xsl:attribute-set name="table-note-style">
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set><!-- table-note-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-note-style">
+ <xsl:template name="refine_table-note-style">
</xsl:template> <!-- refine_table-note-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-fn-style">
+ <xsl:attribute-set name="table-fn-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- table-fn-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-fn-style">
+ <xsl:template name="refine_table-fn-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-fn-number-style">
+ <xsl:attribute-set name="table-fn-number-style">
<xsl:attribute name="font-size">80%</xsl:attribute>
<xsl:attribute name="padding-right">5mm</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set> <!-- table-fn-number-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-fn-number-style">
+ <xsl:template name="refine_table-fn-number-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-container-body-style">
+ <xsl:attribute-set name="fn-container-body-style">
<xsl:attribute name="text-indent">0</xsl:attribute>
<xsl:attribute name="start-indent">0</xsl:attribute>
<xsl:attribute name="margin-left">-8mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-fn-body-style">
+ <xsl:attribute-set name="table-fn-body-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-fn-number-style">
+ <xsl:attribute-set name="figure-fn-number-style">
<xsl:attribute name="font-size">80%</xsl:attribute>
<xsl:attribute name="padding-right">5mm</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-fn-body-style">
+ <xsl:attribute-set name="figure-fn-body-style">
<xsl:attribute name="text-align">justify</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set>
<!-- ========================== -->
@@ -1573,423 +1768,423 @@
<!-- ========================== -->
<!-- Definition's list styles -->
<!-- ========================== -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dl-block-style">
+ <xsl:attribute-set name="dl-block-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-row-style">
+ <xsl:attribute-set name="dt-row-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-cell-style">
+ <xsl:attribute-set name="dt-cell-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dt-cell-style">
+ <xsl:template name="refine_dt-cell-style">
</xsl:template> <!-- refine_dt-cell-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-block-style">
+ <xsl:attribute-set name="dt-block-style">
<xsl:attribute name="margin-top">0pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dt-block-style">
+ <xsl:template name="refine_dt-block-style">
</xsl:template> <!-- refine_dt-block-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dl-name-style">
+ <xsl:attribute-set name="dl-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
</xsl:attribute-set> <!-- dl-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dd-cell-style">
+ <xsl:attribute-set name="dd-cell-style">
<xsl:attribute name="padding-left">2mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dd-cell-style">
+ <xsl:template name="refine_dd-cell-style">
</xsl:template> <!-- refine_dd-cell-style -->
<!-- ========================== -->
<!-- END Definition's list styles -->
<!-- ========================== -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="appendix-style">
+ <xsl:attribute-set name="appendix-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="appendix-example-style">
+ <xsl:attribute-set name="appendix-example-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="xref-style">
+ <xsl:attribute-set name="xref-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="eref-style">
+ <xsl:attribute-set name="eref-style">
<xsl:attribute name="color">blue</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_eref-style">
+ <xsl:template name="refine_eref-style">
<xsl:variable name="citeas" select="java:replaceAll(java:java.lang.String.new(@citeas),'^\[?(.+?)\]?$','$1')"/> <!-- remove leading and trailing brackets -->
<xsl:variable name="text" select="normalize-space()"/>
</xsl:template> <!-- refine_eref-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-style">
+ <xsl:attribute-set name="note-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_note-style">
+ <xsl:template name="refine_note-style">
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-body-indent">10mm</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-body-indent-table">5mm</xsl:variable>
+ <xsl:variable name="note-body-indent">10mm</xsl:variable>
+ <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-name-style">
+ <xsl:attribute-set name="note-name-style">
<xsl:attribute name="padding-right">4mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_note-name-style">
+ <xsl:template name="refine_note-name-style">
</xsl:template> <!-- refine_note-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-note-name-style">
+ <xsl:attribute-set name="table-note-name-style">
<xsl:attribute name="padding-right">2mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-note-name-style">
+ <xsl:template name="refine_table-note-name-style">
<xsl:if test="@type = 'source' or @type = 'abbreviation'">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_table-note-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-p-style">
+ <xsl:attribute-set name="note-p-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="text-indent">0</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-style">
+ <xsl:attribute-set name="termnote-style">
<xsl:attribute name="margin-top">4pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termnote-style">
+ <xsl:template name="refine_termnote-style">
</xsl:template> <!-- refine_termnote-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-name-style">
+ <xsl:attribute-set name="termnote-name-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termnote-name-style">
+ <xsl:template name="refine_termnote-name-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-p-style">
+ <xsl:attribute-set name="termnote-p-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="quote-style">
+ <xsl:attribute-set name="quote-style">
<xsl:attribute name="margin-left">12mm</xsl:attribute>
<xsl:attribute name="margin-right">12mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_quote-style">
+ <xsl:template name="refine_quote-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="quote-source-style">
+ <xsl:attribute-set name="quote-source-style">
<xsl:attribute name="text-align">right</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termsource-style">
+ <xsl:attribute-set name="termsource-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termsource-style">
+ <xsl:template name="refine_termsource-style">
</xsl:template> <!-- refine_termsource-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termsource-text-style">
+ <xsl:attribute-set name="termsource-text-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="origin-style">
+ <xsl:attribute-set name="origin-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="term-style">
+ <xsl:attribute-set name="term-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="term-name-style">
+ <xsl:attribute-set name="term-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-block-style">
+ <xsl:attribute-set name="figure-block-style">
<xsl:attribute name="role">SKIP</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure-block-style">
+ <xsl:template name="refine_figure-block-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-style">
+ <xsl:attribute-set name="figure-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-name-style">
+ <xsl:attribute-set name="figure-name-style">
<xsl:attribute name="role">Caption</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="space-after">6pt</xsl:attribute>
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure-name-style">
+ <xsl:template name="refine_figure-name-style">
</xsl:template> <!-- refine_figure-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-source-style">
+ <xsl:attribute-set name="figure-source-style">
</xsl:attribute-set>
<!-- Formula's styles -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="formula-style">
+ <xsl:attribute-set name="formula-style">
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- formula-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="formula-stem-block-style">
+ <xsl:attribute-set name="formula-stem-block-style">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set> <!-- formula-stem-block-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_formula-stem-block-style">
+ <xsl:template name="refine_formula-stem-block-style">
<xsl:if test="ancestor::*[local-name() ='annex']">
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="margin-left">7mm</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_formula-stem-block-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="formula-stem-number-style">
+ <xsl:attribute-set name="formula-stem-number-style">
<xsl:attribute name="text-align">right</xsl:attribute>
</xsl:attribute-set> <!-- formula-stem-number-style -->
<!-- End Formula's styles -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_formula-stem-number-style">
+ <xsl:template name="refine_formula-stem-number-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="image-style">
+ <xsl:attribute-set name="image-style">
<xsl:attribute name="role">SKIP</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="border">2pt solid black</xsl:attribute>
<xsl:attribute name="text-indent">0</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_image-style">
+ <xsl:template name="refine_image-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-pseudocode-p-style">
+ <xsl:attribute-set name="figure-pseudocode-p-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="image-graphic-style">
+ <xsl:attribute-set name="image-graphic-style">
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="content-height">100%</xsl:attribute>
<xsl:attribute name="scaling">uniform</xsl:attribute>
<xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tt-style">
+ <xsl:attribute-set name="tt-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode-name-style">
+ <xsl:attribute-set name="sourcecode-name-style">
<xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="preferred-block-style">
+ <xsl:attribute-set name="preferred-block-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="preferred-term-style">
+ <xsl:attribute-set name="preferred-term-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="domain-style">
+ <xsl:attribute-set name="domain-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admitted-style">
+ <xsl:attribute-set name="admitted-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="deprecates-style">
+ <xsl:attribute-set name="deprecates-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="definition-style">
+ <xsl:attribute-set name="definition-style">
</xsl:attribute-set>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="color-added-text">
+ <xsl:variable name="color-added-text">
<xsl:text>rgb(0, 255, 0)</xsl:text>
</xsl:variable>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-style">
+ <xsl:attribute-set name="add-style">
<xsl:attribute name="color">red</xsl:attribute>
<xsl:attribute name="text-decoration">underline</xsl:attribute>
<!-- <xsl:attribute name="color">black</xsl:attribute>
<xsl:attribute name="background-color"><xsl:value-of select="$color-added-text"/></xsl:attribute>
<xsl:attribute name="padding-top">1mm</xsl:attribute>
<xsl:attribute name="padding-bottom">0.5mm</xsl:attribute> -->
</xsl:attribute-set>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-style">
+ <xsl:variable name="add-style">
<add-style xsl:use-attribute-sets="add-style"/>
</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="append_add-style">
+ <xsl:template name="append_add-style">
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="color-deleted-text">
+ <xsl:variable name="color-deleted-text">
<xsl:text>red</xsl:text>
</xsl:variable>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="del-style">
+ <xsl:attribute-set name="del-style">
<xsl:attribute name="color"><xsl:value-of select="$color-deleted-text"/></xsl:attribute>
<xsl:attribute name="text-decoration">line-through</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="mathml-style">
+ <xsl:attribute-set name="mathml-style">
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_mathml-style">
+ <xsl:template name="refine_mathml-style">
</xsl:template>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-style">
+ <xsl:attribute-set name="list-style">
<xsl:attribute name="provisional-distance-between-starts">4mm</xsl:attribute>
<xsl:attribute name="margin-left">-8mm</xsl:attribute>
</xsl:attribute-set> <!-- list-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-style">
+ <xsl:template name="refine_list-style">
</xsl:template> <!-- refine_list-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-name-style">
+ <xsl:attribute-set name="list-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
</xsl:attribute-set> <!-- list-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-style">
+ <xsl:attribute-set name="list-item-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-style">
+ <xsl:template name="refine_list-item-style">
</xsl:template> <!-- refine_list-item-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-label-style">
+ <xsl:attribute-set name="list-item-label-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-label-style">
+ <xsl:template name="refine_list-item-label-style">
</xsl:template> <!-- refine_list-item-label-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-body-style">
+ <xsl:attribute-set name="list-item-body-style">
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-body-style">
+ <xsl:template name="refine_list-item-body-style">
</xsl:template> <!-- refine_list-item-body-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="toc-style">
+ <xsl:attribute-set name="toc-style">
<xsl:attribute name="line-height">135%</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-reference-style">
+ <xsl:attribute-set name="fn-reference-style">
<xsl:attribute name="font-size">80%</xsl:attribute>
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-reference-style">
+ <xsl:template name="refine_fn-reference-style">
</xsl:template> <!-- refine_fn-reference-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-style">
+ <xsl:attribute-set name="fn-style">
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-num-style">
+ <xsl:attribute-set name="fn-num-style">
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
<xsl:attribute name="font-size">60%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-body-style">
+ <xsl:attribute-set name="fn-body-style">
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="text-indent">0</xsl:attribute>
<xsl:attribute name="start-indent">0</xsl:attribute>
@@ -1998,318 +2193,318 @@
<xsl:attribute name="line-height">125%</xsl:attribute>
<xsl:attribute name="margin-left">8mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-body-style">
+ <xsl:template name="refine_fn-body-style">
</xsl:template> <!-- refine_fn-body-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-body-num-style">
+ <xsl:attribute-set name="fn-body-num-style">
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
<xsl:attribute name="font-size">60%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
<xsl:attribute name="padding-right">8mm</xsl:attribute>
</xsl:attribute-set> <!-- fn-body-num-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-body-num-style">
+ <xsl:template name="refine_fn-body-num-style">
</xsl:template> <!-- refine_fn-body-num-style -->
<!-- admonition -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-style">
+ <xsl:attribute-set name="admonition-style">
<xsl:attribute name="border">0.25pt solid black</xsl:attribute>
<xsl:attribute name="margin-left">-3mm</xsl:attribute>
<xsl:attribute name="margin-right">-3mm</xsl:attribute>
<xsl:attribute name="padding-top">4mm</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- admonition-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-container-style">
+ <xsl:attribute-set name="admonition-container-style">
<xsl:attribute name="margin-left">0mm</xsl:attribute>
<xsl:attribute name="margin-right">0mm</xsl:attribute>
<xsl:attribute name="margin-left">2mm</xsl:attribute>
<xsl:attribute name="margin-right">2mm</xsl:attribute>
</xsl:attribute-set> <!-- admonition-container-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-name-style">
+ <xsl:attribute-set name="admonition-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="font-style">italic</xsl:attribute>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set> <!-- admonition-name-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-p-style">
+ <xsl:attribute-set name="admonition-p-style">
<xsl:attribute name="text-align">justify</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="line-height">122%</xsl:attribute>
</xsl:attribute-set> <!-- admonition-p-style -->
<!-- end admonition -->
<!-- bibitem in Normative References (references/@normative="true") -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-normative-style">
+ <xsl:attribute-set name="bibitem-normative-style">
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-left">14mm</xsl:attribute>
<xsl:attribute name="text-indent">-14mm</xsl:attribute>
</xsl:attribute-set> <!-- bibitem-normative-style -->
<!-- bibitem in Normative References (references/@normative="true"), renders as list -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-normative-list-style">
+ <xsl:attribute-set name="bibitem-normative-list-style">
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<!-- <xsl:if test="$namespace = 'ieee'">
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
</xsl:if> -->
</xsl:attribute-set> <!-- bibitem-normative-list-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-non-normative-style">
+ <xsl:attribute-set name="bibitem-non-normative-style">
</xsl:attribute-set> <!-- bibitem-non-normative-style -->
<!-- bibitem in bibliography section (references/@normative="false"), renders as list -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-non-normative-list-style">
+ <xsl:attribute-set name="bibitem-non-normative-list-style">
<xsl:attribute name="provisional-distance-between-starts">12mm</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- bibitem-non-normative-list-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-non-normative-list-item-style">
+ <xsl:attribute-set name="bibitem-non-normative-list-item-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set>
<!-- bibitem in bibliography section (references/@normative="false"), list body -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-normative-list-body-style">
+ <xsl:attribute-set name="bibitem-normative-list-body-style">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-non-normative-list-body-style">
+ <xsl:attribute-set name="bibitem-non-normative-list-body-style">
</xsl:attribute-set> <!-- bibitem-non-normative-list-body-style -->
<!-- footnote reference number for bibitem, in the text -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-note-fn-style">
+ <xsl:attribute-set name="bibitem-note-fn-style">
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
<xsl:attribute name="font-size">65%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
<!-- footnote number on the page bottom -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-note-fn-number-style">
+ <xsl:attribute-set name="bibitem-note-fn-number-style">
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
<xsl:attribute name="font-size">60%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
<!-- footnote body (text) on the page bottom -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-note-fn-body-style">
+ <xsl:attribute-set name="bibitem-note-fn-body-style">
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="start-indent">0pt</xsl:attribute>
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="references-non-normative-style">
+ <xsl:attribute-set name="references-non-normative-style">
</xsl:attribute-set> <!-- references-non-normative-style -->
<!-- Highlight.js syntax GitHub styles -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-doctag">
+ <xsl:attribute-set name="hljs-doctag">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-keyword">
+ <xsl:attribute-set name="hljs-keyword">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta_hljs-keyword">
+ <xsl:attribute-set name="hljs-meta_hljs-keyword">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-template-tag">
+ <xsl:attribute-set name="hljs-template-tag">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-template-variable">
+ <xsl:attribute-set name="hljs-template-variable">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-type">
+ <xsl:attribute-set name="hljs-type">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-variable_and_language_">
+ <xsl:attribute-set name="hljs-variable_and_language_">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title">
+ <xsl:attribute-set name="hljs-title">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_class_">
+ <xsl:attribute-set name="hljs-title_and_class_">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_class__and_inherited__">
+ <xsl:attribute-set name="hljs-title_and_class__and_inherited__">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_function_">
+ <xsl:attribute-set name="hljs-title_and_function_">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-attr">
+ <xsl:attribute-set name="hljs-attr">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-attribute">
+ <xsl:attribute-set name="hljs-attribute">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-literal">
+ <xsl:attribute-set name="hljs-literal">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta">
+ <xsl:attribute-set name="hljs-meta">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-number">
+ <xsl:attribute-set name="hljs-number">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-operator">
+ <xsl:attribute-set name="hljs-operator">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-variable">
+ <xsl:attribute-set name="hljs-variable">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-attr">
+ <xsl:attribute-set name="hljs-selector-attr">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-class">
+ <xsl:attribute-set name="hljs-selector-class">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-id">
+ <xsl:attribute-set name="hljs-selector-id">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-regexp">
+ <xsl:attribute-set name="hljs-regexp">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-string">
+ <xsl:attribute-set name="hljs-string">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta_hljs-string">
+ <xsl:attribute-set name="hljs-meta_hljs-string">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-built_in">
+ <xsl:attribute-set name="hljs-built_in">
<xsl:attribute name="color">#e36209</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-symbol">
+ <xsl:attribute-set name="hljs-symbol">
<xsl:attribute name="color">#e36209</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-comment">
+ <xsl:attribute-set name="hljs-comment">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-code">
+ <xsl:attribute-set name="hljs-code">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-formula">
+ <xsl:attribute-set name="hljs-formula">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-name">
+ <xsl:attribute-set name="hljs-name">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-quote">
+ <xsl:attribute-set name="hljs-quote">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-tag">
+ <xsl:attribute-set name="hljs-selector-tag">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-pseudo">
+ <xsl:attribute-set name="hljs-selector-pseudo">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-subst">
+ <xsl:attribute-set name="hljs-subst">
<xsl:attribute name="color">#24292e</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-section">
+ <xsl:attribute-set name="hljs-section">
<xsl:attribute name="color">#005cc5</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-bullet">
+ <xsl:attribute-set name="hljs-bullet">
<xsl:attribute name="color">#735c0f</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-emphasis">
+ <xsl:attribute-set name="hljs-emphasis">
<xsl:attribute name="color">#24292e</xsl:attribute>
<xsl:attribute name="font-style">italic</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-strong">
+ <xsl:attribute-set name="hljs-strong">
<xsl:attribute name="color">#24292e</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-addition">
+ <xsl:attribute-set name="hljs-addition">
<xsl:attribute name="color">#22863a</xsl:attribute>
<xsl:attribute name="background-color">#f0fff4</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-deletion">
+ <xsl:attribute-set name="hljs-deletion">
<xsl:attribute name="color">#b31d28</xsl:attribute>
<xsl:attribute name="background-color">#ffeef0</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-char_and_escape_">
+ <xsl:attribute-set name="hljs-char_and_escape_">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-link">
+ <xsl:attribute-set name="hljs-link">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-params">
+ <xsl:attribute-set name="hljs-params">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-property">
+ <xsl:attribute-set name="hljs-property">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-punctuation">
+ <xsl:attribute-set name="hljs-punctuation">
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-tag">
+ <xsl:attribute-set name="hljs-tag">
</xsl:attribute-set>
<!-- End Highlight syntax styles -->
<!-- Index section styles -->
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="indexsect-title-style">
+ <xsl:attribute-set name="indexsect-title-style">
<xsl:attribute name="role">H1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="indexsect-clause-title-style">
+ <xsl:attribute-set name="indexsect-clause-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set>
<!-- End Index section styles -->
<!-- ====================================== -->
<!-- END STYLES -->
<!-- ====================================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable>
+ <xsl:variable name="border-block-added">2.5pt solid rgb(0, 176, 80)</xsl:variable>
+ <xsl:variable name="border-block-deleted">2.5pt solid rgb(255, 0, 0)</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ace_tag">ace-tag_</xsl:variable>
+ <xsl:variable name="ace_tag">ace-tag_</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processPrefaceSectionsDefault_Contents">
+ <xsl:template name="processPrefaceSectionsDefault_Contents">
<xsl:variable name="nodes_preface_">
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition' or @type = 'toc')]">
<node id="{@id}"/>
</xsl:for-each>
</xsl:variable>
@@ -2326,11 +2521,11 @@
<xsl:apply-templates select="." mode="contents"/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault_Contents">
+ <xsl:template name="processMainSectionsDefault_Contents">
<xsl:variable name="nodes_sections_">
<xsl:for-each select="/*/*[local-name()='sections']/*">
<node id="{@id}"/>
</xsl:for-each>
@@ -2358,100 +2553,53 @@
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:apply-templates select="." mode="contents"/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processTablesFigures_Contents">
+ <xsl:template name="processTablesFigures_Contents">
<xsl:param name="always"/>
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
<xsl:call-template name="processTables_Contents"/>
</xsl:if>
<xsl:if test="(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']) or normalize-space($always) = 'true'">
<xsl:call-template name="processFigures_Contents"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processTables_Contents">
+ <xsl:template name="processTables_Contents">
<tables>
<xsl:for-each select="//*[local-name() = 'table'][not(ancestor::*[local-name() = 'metanorma-extension'])][@id and *[local-name() = 'name'] and normalize-space(@id) != '']">
<table id="{@id}" alt-text="{*[local-name() = 'name']}">
<xsl:copy-of select="*[local-name() = 'name']"/>
</table>
</xsl:for-each>
</tables>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processFigures_Contents">
+ <xsl:template name="processFigures_Contents">
<figures>
<xsl:for-each select="//*[local-name() = 'figure'][@id and *[local-name() = 'name'] and not(@unnumbered = 'true') and normalize-space(@id) != ''] | //*[@id and starts-with(*[local-name() = 'name'], 'Figure ') and normalize-space(@id) != '']">
<figure id="{@id}" alt-text="{*[local-name() = 'name']}">
<xsl:copy-of select="*[local-name() = 'name']"/>
</figure>
</xsl:for-each>
</figures>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processPrefaceSectionsDefault">
+ <xsl:template name="processPrefaceSectionsDefault">
<xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processPrefaceSectionsDefault_items">
-
- <xsl:variable name="updated_xml_step_move_pagebreak">
-
- <xsl:element name="{$root_element}" namespace="{$namespace_full}">
-
- <xsl:call-template name="copyCommonElements"/>
-
- <xsl:element name="preface" namespace="{$namespace_full}"> <!-- save context element -->
- <xsl:element name="page_sequence" namespace="{$namespace_full}">
- <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
- <xsl:sort select="@displayorder" data-type="number"/>
- <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
- </xsl:for-each>
- </xsl:element>
- </xsl:element>
- </xsl:element>
- </xsl:variable>
-
- <xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_preface_', java:getTime(java:java.util.Date.new()), '.xml')"/>
- <!-- <xsl:message>updated_xml_step_move_pagebreak_filename=<xsl:value-of select="$updated_xml_step_move_pagebreak_filename"/></xsl:message>
- <xsl:message>start write updated_xml_step_move_pagebreak_filename</xsl:message> -->
- <redirect:write file="{$updated_xml_step_move_pagebreak_filename}">
- <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
- </redirect:write>
- <!-- <xsl:message>end write updated_xml_step_move_pagebreak_filename</xsl:message> -->
-
- <xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
-
- <!-- TODO: instead of
- <xsl:for-each select=".//*[local-name() = 'page_sequence'][normalize-space() != '' or .//image or .//svg]">
- in each template, add removing empty page_sequence here
- -->
-
- <xsl:if test="$debug = 'true'">
- <redirect:write file="page_sequence_preface.xml">
- <xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
- </redirect:write>
- </xsl:if>
-
- <!-- <xsl:message>start delete updated_xml_step_move_pagebreak_filename</xsl:message> -->
- <xsl:call-template name="deleteFile">
- <xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
- </xsl:call-template>
- <!-- <xsl:message>end delete updated_xml_step_move_pagebreak_filename</xsl:message> -->
- </xsl:template> <!-- END: processPrefaceSectionsDefault_items -->
-
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyCommonElements">
+ <xsl:template name="copyCommonElements">
<!-- copy bibdata, localized-strings, metanorma-extension and boilerplate -->
- <xsl:copy-of select="/*/*[local-name() != 'preface' and local-name() != 'sections' and local-name() != 'annex' and local-name() != 'bibliography']"/>
+ <xsl:copy-of select="/*/*[local-name() != 'preface' and local-name() != 'sections' and local-name() != 'annex' and local-name() != 'bibliography' and local-name() != 'indexsect']"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault">
+ <xsl:template name="processMainSectionsDefault">
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
@@ -2465,12 +2613,20 @@
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:template><!-- END: processMainSectionsDefault -->
- <!-- Example:
+ <!-- Example:
<iso-standard>
+ <preface>
+ <page_sequence>
+ <clause...
+ </page_sequence>
+ <page_sequence>
+ <clause...
+ </page_sequence>
+ </preface>
<sections>
<page_sequence>
<clause...
</page_sequence>
<page_sequence>
@@ -2483,84 +2639,224 @@
<page_sequence>
<annex ..
</page_sequence>
</iso-standard>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault_items">
+ <xsl:template name="processPrefaceAndMainSectionsDefault_items">
<xsl:variable name="updated_xml_step_move_pagebreak">
-
<xsl:element name="{$root_element}" namespace="{$namespace_full}">
-
<xsl:call-template name="copyCommonElements"/>
+ <xsl:call-template name="insertPrefaceSectionsPageSequences"/>
+ <xsl:call-template name="insertMainSectionsPageSequences"/>
+ </xsl:element>
+ </xsl:variable>
- <xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
- <xsl:element name="page_sequence" namespace="{$namespace_full}">
- <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
- <xsl:sort select="@displayorder" data-type="number"/>
- <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ <xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_main_', java:getTime(java:java.util.Date.new()), '.xml')"/>
- </xsl:for-each>
- </xsl:element>
+ <redirect:write file="{$updated_xml_step_move_pagebreak_filename}">
+ <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
+ </redirect:write>
+
+ <xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
+
+ <xsl:if test="$debug = 'true'">
+ <redirect:write file="page_sequence_preface_and_main.xml">
+ <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
+ </redirect:write>
+ </xsl:if>
+
+ <xsl:call-template name="deleteFile">
+ <xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
+ </xsl:call-template>
+ </xsl:template> <!-- END: processPrefaceAndMainSectionsDefault_items -->
+
+ <xsl:template name="insertPrefaceSectionsPageSequences">
+ <xsl:element name="preface" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:element>
+ </xsl:template> <!-- END: insertPrefaceSectionsPageSequences -->
+
+ <xsl:template name="insertMainSectionsPageSequences">
+ <xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:element>
+
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:for-each select="/*/*[local-name()='annex']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ </xsl:for-each>
+ </xsl:element>
+
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:element>
+ </xsl:template> <!-- END: insertMainSectionsPageSequences -->
+
+ <xsl:template name="insertMainSectionsInSeparatePageSequences">
+ <xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:attribute name="main_page_sequence"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
</xsl:element>
+ </xsl:for-each>
+ </xsl:element>
+ <xsl:call-template name="insertAnnexInSeparatePageSequences"/>
+
+ <xsl:call-template name="insertBibliographyInSeparatePageSequences"/>
+
+ <!-- <xsl:call-template name="insertIndexInSeparatePageSequences"/> -->
+ </xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->
+
+ <xsl:template name="insertAnnexInSeparatePageSequences">
+ <xsl:for-each select="/*/*[local-name()='annex']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:attribute name="main_page_sequence"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:template>
+ <xsl:template name="insertBibliographyInSeparatePageSequences">
+ <xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
+ <xsl:sort select="@displayorder" data-type="number"/>
<xsl:element name="page_sequence" namespace="{$namespace_full}">
- <xsl:for-each select="/*/*[local-name()='annex']">
- <xsl:sort select="@displayorder" data-type="number"/>
- <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
- </xsl:for-each>
+ <xsl:attribute name="main_page_sequence"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
</xsl:element>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:template>
+ <xsl:template name="insertIndexInSeparatePageSequences">
+ <xsl:for-each select="/*/*[local-name()='indexsect']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:element name="page_sequence" namespace="{$namespace_full}">
+ <xsl:attribute name="main_page_sequence"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:template>
+ <xsl:template name="processAllSectionsDefault_items">
+ <xsl:variable name="updated_xml_step_move_pagebreak">
+ <xsl:element name="{$root_element}" namespace="{$namespace_full}">
+ <xsl:call-template name="copyCommonElements"/>
<xsl:element name="page_sequence" namespace="{$namespace_full}">
- <xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
- <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
- <xsl:sort select="@displayorder" data-type="number"/>
- <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
- </xsl:for-each>
- </xsl:element>
+ <xsl:call-template name="insertPrefaceSections"/>
+ <xsl:call-template name="insertMainSections"/>
</xsl:element>
</xsl:element>
</xsl:variable>
- <xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_main_', java:getTime(java:java.util.Date.new()), '.xml')"/>
-
+ <xsl:variable name="updated_xml_step_move_pagebreak_filename" select="concat($output_path,'_preface_and_main_', java:getTime(java:java.util.Date.new()), '.xml')"/>
+ <!-- <xsl:message>updated_xml_step_move_pagebreak_filename=<xsl:value-of select="$updated_xml_step_move_pagebreak_filename"/></xsl:message>
+ <xsl:message>start write updated_xml_step_move_pagebreak_filename</xsl:message> -->
<redirect:write file="{$updated_xml_step_move_pagebreak_filename}">
<xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
</redirect:write>
+ <!-- <xsl:message>end write updated_xml_step_move_pagebreak_filename</xsl:message> -->
<xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
+ <!-- TODO: instead of
+ <xsl:for-each select=".//*[local-name() = 'page_sequence'][normalize-space() != '' or .//image or .//svg]">
+ in each template, add removing empty page_sequence here
+ -->
+
<xsl:if test="$debug = 'true'">
- <redirect:write file="page_sequence_main.xml">
- <xsl:copy-of select="document($updated_xml_step_move_pagebreak_filename)"/>
+ <redirect:write file="page_sequence_preface_and_main.xml">
+ <xsl:copy-of select="$updated_xml_step_move_pagebreak"/>
</redirect:write>
</xsl:if>
+ <!-- <xsl:message>start delete updated_xml_step_move_pagebreak_filename</xsl:message> -->
<xsl:call-template name="deleteFile">
<xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
</xsl:call-template>
- </xsl:template> <!-- END: processMainSectionsDefault_items -->
+ <!-- <xsl:message>end delete updated_xml_step_move_pagebreak_filename</xsl:message> -->
+ </xsl:template> <!-- END: processAllSectionsDefault_items -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="deleteFile">
+ <xsl:template name="insertPrefaceSections">
+ <xsl:element name="preface" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:for-each select="/*/*[local-name()='preface']/*[not(local-name() = 'note' or local-name() = 'admonition')]">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
+ <xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template name="insertMainSections">
+ <xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
+
+ <xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
+ <xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
+ </xsl:apply-templates>
+
+ </xsl:for-each>
+ </xsl:element>
+
+ <xsl:for-each select="/*/*[local-name()='annex']">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
+ <xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
+ </xsl:apply-templates>
+ </xsl:for-each>
+
+ <xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
+ <xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
+ <xsl:sort select="@displayorder" data-type="number"/>
+ <xsl:apply-templates select="." mode="update_xml_step_move_pagebreak">
+ <xsl:with-param name="page_sequence_at_top">true</xsl:with-param>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template name="deleteFile">
<xsl:param name="filepath"/>
<xsl:variable name="xml_file" select="java:java.io.File.new($filepath)"/>
<xsl:variable name="xml_file_path" select="java:toPath($xml_file)"/>
<xsl:variable name="deletefile" select="java:java.nio.file.Files.deleteIfExists($xml_file_path)"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getPageSequenceOrientation">
+ <xsl:template name="getPageSequenceOrientation">
<xsl:variable name="previous_orientation" select="preceding-sibling::*[local-name() = 'page_sequence'][@orientation][1]/@orientation"/>
<xsl:choose>
<xsl:when test="@orientation = 'landscape'">-<xsl:value-of select="@orientation"/></xsl:when>
<xsl:when test="$previous_orientation = 'landscape' and not(@orientation = 'portrait')">-<xsl:value-of select="$previous_orientation"/></xsl:when>
</xsl:choose>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" name="text">
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
+ <xsl:variable name="tag_fo_inline_keep-together_within-line_open">###fo:inline keep-together_within-line###</xsl:variable>
+ <xsl:variable name="tag_fo_inline_keep-together_within-line_close">###/fo:inline keep-together_within-line###</xsl:variable>
+ <xsl:template match="text()" name="text">
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when>
<xsl:otherwise>
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_fo_inline_keep-together_within-line_open,'$1',$tag_fo_inline_keep-together_within-line_close))"/>
@@ -2572,22 +2868,29 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="replace_fo_inline_tags">
+ <xsl:template name="replace_fo_inline_tags">
<xsl:param name="tag_open"/>
<xsl:param name="tag_close"/>
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text, $tag_open)">
<xsl:value-of select="substring-before($text, $tag_open)"/>
<!-- <xsl:text disable-output-escaping="yes"><fo:inline keep-together.within-line="always"></xsl:text> -->
<xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
- <fo:inline keep-together.within-line="always">
- <xsl:value-of select="substring-before($text_after, $tag_close)"/>
- </fo:inline>
+ <xsl:choose>
+ <xsl:when test="local-name(..) = 'keep-together_within-line'"> <!-- prevent two nested <fo:inline keep-together.within-line="always"><fo:inline keep-together.within-line="always" -->
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:inline keep-together.within-line="always" role="SKIP">
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
+ </fo:inline>
+ </xsl:otherwise>
+ </xsl:choose>
<!-- <xsl:text disable-output-escaping="yes"></fo:inline></xsl:text> -->
<xsl:call-template name="replace_fo_inline_tags">
<xsl:with-param name="tag_open" select="$tag_open"/>
<xsl:with-param name="tag_close" select="$tag_close"/>
<xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
@@ -2595,16 +2898,16 @@
</xsl:when>
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='br']">
+ <xsl:template match="*[local-name()='br']">
<xsl:value-of select="$linebreak"/>
</xsl:template>
<!-- keep-together for standard's name (ISO 12345:2020) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'keep-together_within-line']">
+ <xsl:template match="*[local-name() = 'keep-together_within-line']">
<xsl:param name="split_keep-within-line"/>
<!-- <fo:inline>split_keep-within-line='<xsl:value-of select="$split_keep-within-line"/>'</fo:inline> -->
<xsl:choose>
@@ -2638,89 +2941,89 @@
</xsl:template>
<!-- ================================= -->
<!-- Preface boilerplate sections processing -->
<!-- ================================= -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='copyright-statement']">
+ <xsl:template match="*[local-name()='copyright-statement']">
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
<xsl:apply-templates/>
</fo:block>
</xsl:template> <!-- copyright-statement -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='copyright-statement']//*[local-name()='title']">
+ <xsl:template match="*[local-name()='copyright-statement']//*[local-name()='title']">
<!-- process in the template 'title' -->
<xsl:call-template name="title"/>
</xsl:template> <!-- copyright-statement//title -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='copyright-statement']//*[local-name()='p']">
+ <xsl:template match="*[local-name()='copyright-statement']//*[local-name()='p']">
<!-- process in the template 'paragraph' -->
<xsl:call-template name="paragraph"/>
</xsl:template> <!-- copyright-statement//p -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='license-statement']">
+ <xsl:template match="*[local-name()='license-statement']">
<fo:block xsl:use-attribute-sets="license-statement-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template> <!-- license-statement -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='license-statement']//*[local-name()='title']">
+ <xsl:template match="*[local-name()='license-statement']//*[local-name()='title']">
<!-- process in the template 'title' -->
<xsl:call-template name="title"/>
</xsl:template> <!-- license-statement/title -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='license-statement']//*[local-name()='p']">
+ <xsl:template match="*[local-name()='license-statement']//*[local-name()='p']">
<!-- process in the template 'paragraph' -->
<xsl:call-template name="paragraph"/>
</xsl:template> <!-- license-statement/p -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='legal-statement']">
+ <xsl:template match="*[local-name()='legal-statement']">
<xsl:param name="isLegacy">false</xsl:param>
<fo:block xsl:use-attribute-sets="legal-statement-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template> <!-- legal-statement -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='legal-statement']//*[local-name()='title']">
+ <xsl:template match="*[local-name()='legal-statement']//*[local-name()='title']">
<!-- process in the template 'title' -->
<xsl:call-template name="title"/>
</xsl:template> <!-- legal-statement/title -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='legal-statement']//*[local-name()='p']">
+ <xsl:template match="*[local-name()='legal-statement']//*[local-name()='p']">
<xsl:param name="margin"/>
<!-- process in the template 'paragraph' -->
<xsl:call-template name="paragraph">
<xsl:with-param name="margin" select="$margin"/>
</xsl:call-template>
</xsl:template> <!-- legal-statement/p -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='feedback-statement']">
+ <xsl:template match="*[local-name()='feedback-statement']">
<fo:block xsl:use-attribute-sets="feedback-statement-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template> <!-- feedback-statement -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='feedback-statement']//*[local-name()='title']">
+ <xsl:template match="*[local-name()='feedback-statement']//*[local-name()='title']">
<!-- process in the template 'title' -->
<xsl:call-template name="title"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='feedback-statement']//*[local-name()='p']">
+ <xsl:template match="*[local-name()='feedback-statement']//*[local-name()='p']">
<xsl:param name="margin"/>
<!-- process in the template 'paragraph' -->
<xsl:call-template name="paragraph">
<xsl:with-param name="margin" select="$margin"/>
@@ -2731,22 +3034,22 @@
<!-- ================================= -->
<!-- END Preface boilerplate sections processing -->
<!-- ================================= -->
<!-- add zero spaces into table cells text -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
+ <xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
<xsl:choose>
<xsl:when test="parent::*[local-name() = 'keep-together_within-line']">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="addZeroWidthSpacesToTextNodes"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="addZeroWidthSpacesToTextNodes">
+ <xsl:template name="addZeroWidthSpacesToTextNodes">
<xsl:variable name="text"><text><xsl:call-template name="text"/></text></xsl:variable>
<!-- <xsl:copy-of select="$text"/> -->
<xsl:for-each select="xalan:nodeset($text)/text/node()">
<xsl:choose>
<xsl:when test="self::text()"><xsl:call-template name="add-zero-spaces-java"/></xsl:when>
@@ -2754,14 +3057,14 @@
</xsl:choose>
</xsl:for-each>
</xsl:template>
<!-- for table auto-layout algorithm -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_only_with_id"/> <!-- Example: 'table1' -->
- <xsl:param xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_only_with_ids"/> <!-- Example: 'table1 table2 table3 ' -->
+ <xsl:param name="table_only_with_id"/> <!-- Example: 'table1' -->
+ <xsl:param name="table_only_with_ids"/> <!-- Example: 'table1 table2 table3 ' -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']" priority="2">
+ <xsl:template match="*[local-name()='table']" priority="2">
<xsl:choose>
<xsl:when test="$table_only_with_id != '' and @id = $table_only_with_id">
<xsl:call-template name="table"/>
</xsl:when>
<xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
@@ -2773,11 +3076,11 @@
<xsl:call-template name="table"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']" name="table">
+ <xsl:template match="*[local-name()='table']" name="table">
<xsl:variable name="table-preamble">
</xsl:variable>
@@ -3018,15 +3321,15 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setBordersTableArray">
+ <xsl:template name="setBordersTableArray">
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
<xsl:param name="continued"/>
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="table-name-style" role="SKIP">
@@ -3055,34 +3358,34 @@
</xsl:if>
</xsl:template> <!-- table/name -->
<!-- workaround solution for https://github.com/metanorma/metanorma-iso/issues/1151#issuecomment-2033087938 -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name() = 'note'][@type = 'units']/*[local-name() = 'p']/text()" priority="4">
+ <xsl:template match="*[local-name()='table']/*[local-name() = 'note'][@type = 'units']/*[local-name() = 'p']/text()" priority="4">
<xsl:choose>
<xsl:when test="preceding-sibling::*[local-name() = 'br']">
<!-- remove CR or LF at start -->
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'^( | | )', '')"/>
</xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- SOURCE: ... -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
+ <xsl:template match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
<xsl:call-template name="termsource"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="calculate-columns-numbers">
+ <xsl:template name="calculate-columns-numbers">
<xsl:param name="table-row"/>
<xsl:variable name="columns-count" select="count($table-row/*)"/>
<xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
<xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
<xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="calculate-column-widths">
+ <xsl:template name="calculate-column-widths">
<xsl:param name="table"/>
<xsl:param name="cols-count"/>
<xsl:choose>
<xsl:when test="$isApplyAutolayoutAlgorithm = 'true'">
<xsl:call-template name="get-calculated-column-widths-autolayout-algorithm"/>
@@ -3098,11 +3401,11 @@
</xsl:template>
<!-- ================================================== -->
<!-- Calculate column's width based on text string max widths -->
<!-- ================================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="calculate-column-widths-proportional">
+ <xsl:template name="calculate-column-widths-proportional">
<xsl:param name="table"/>
<xsl:param name="cols-count"/>
<xsl:param name="curr-col" select="1"/>
<xsl:param name="width" select="0"/>
@@ -3213,11 +3516,11 @@
<!-- ================================= -->
<!-- mode="td_text" -->
<!-- ================================= -->
<!-- replace each each char to 'X', just to process the tag 'keep-together_within-line' as whole word in longest word calculation -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[@keep-together.within-line or local-name() = 'keep-together_within-line']/text()" priority="2" mode="td_text">
+ <xsl:template match="*[@keep-together.within-line or local-name() = 'keep-together_within-line']/text()" priority="2" mode="td_text">
<!-- <xsl:message>DEBUG t1=<xsl:value-of select="."/></xsl:message>
<xsl:message>DEBUG t2=<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'.','X')"/></xsl:message> -->
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'.','X')"/>
<!-- if all capitals english letters or digits -->
@@ -3227,23 +3530,23 @@
<xsl:with-param name="count" select="string-length(normalize-space(.)) * 0.5"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="td_text">
+ <xsl:template match="text()" mode="td_text">
<xsl:value-of select="translate(., $zero_width_space, ' ')"/><xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='termsource']" mode="td_text">
+ <xsl:template match="*[local-name()='termsource']" mode="td_text">
<xsl:value-of select="*[local-name()='origin']/@citeas"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='link']" mode="td_text">
+ <xsl:template match="*[local-name()='link']" mode="td_text">
<xsl:value-of select="@target"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='math']" mode="td_text" name="math_length">
+ <xsl:template match="*[local-name()='math']" mode="td_text" name="math_length">
<xsl:if test="$isGenerateTableIF = 'false'">
<xsl:variable name="mathml_">
<xsl:for-each select="*">
<xsl:if test="local-name() != 'unit' and local-name() != 'prefix' and local-name() != 'dimension' and local-name() != 'quantity'">
<xsl:copy-of select="."/>
@@ -3271,11 +3574,11 @@
<!-- Calculate column's width based on HTML4 algorithm -->
<!-- (https://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.5.2) -->
<!-- ================================================== -->
<!-- INPUT: table with columns widths, generated by table_if.xsl -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="calculate-column-widths-autolayout-algorithm">
+ <xsl:template name="calculate-column-widths-autolayout-algorithm">
<xsl:param name="parent_table_page-width"/> <!-- for nested tables, in re-calculate step -->
<!-- via intermediate format -->
<!-- The algorithm uses two passes through the table data and scales linearly with the size of the table -->
@@ -3356,11 +3659,11 @@
<xsl:otherwise><unknown_case/></xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- calculate-column-widths-autolayout-algorithm -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="get-calculated-column-widths-autolayout-algorithm">
+ <xsl:template name="get-calculated-column-widths-autolayout-algorithm">
<!-- if nested 'dl' or 'table' -->
<xsl:variable name="parent_table_id" select="normalize-space(ancestor::*[local-name() = 'table' or local-name() = 'dl'][1]/@id)"/>
<parent_table_id><xsl:value-of select="$parent_table_id"/></parent_table_id>
@@ -3421,20 +3724,20 @@
<!-- ================================================== -->
<!-- Calculate column's width based on HTML4 algorithm -->
<!-- ================================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']">
+ <xsl:template match="*[local-name()='thead']">
<xsl:param name="cols-count"/>
<fo:table-header>
<xsl:apply-templates/>
</fo:table-header>
</xsl:template> <!-- thead -->
<!-- template is using for iec, iso, jcgm, bsi only -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-header-title">
+ <xsl:template name="table-header-title">
<xsl:param name="cols-count"/>
<!-- row for title -->
<fo:table-row role="SKIP">
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black" role="SKIP">
@@ -3450,34 +3753,34 @@
</fo:table-cell>
</fo:table-row>
</xsl:template> <!-- table-header-title -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-title-style">
+ <xsl:template name="refine_table-header-title-style">
</xsl:template> <!-- refine_table-header-title-style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']" mode="process_tbody">
+ <xsl:template match="*[local-name()='thead']" mode="process_tbody">
<fo:table-body>
<xsl:apply-templates/>
</fo:table-body>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tfoot']">
+ <xsl:template match="*[local-name()='tfoot']">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTableFooter">
+ <xsl:template name="insertTableFooter">
<xsl:param name="cols-count"/>
<xsl:if test="../*[local-name()='tfoot']">
<fo:table-footer>
<xsl:apply-templates select="../*[local-name()='tfoot']"/>
</fo:table-footer>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTableFooterInSeparateTable">
+ <xsl:template name="insertTableFooterInSeparateTable">
<xsl:param name="table_attributes"/>
<xsl:param name="colwidths"/>
<xsl:param name="colgroup"/>
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'][not(@type = 'units')] or ../*[local-name()='example'] or ../*[local-name()='dl'] or ..//*[local-name()='fn'][local-name(..) != 'name'] or ../*[local-name()='source'] or ../*[local-name()='p']"/>
@@ -3590,11 +3893,11 @@
</xsl:if>
</xsl:if>
</xsl:template> <!-- insertTableFooterInSeparateTable -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']">
+ <xsl:template match="*[local-name()='tbody']">
<xsl:variable name="cols-count">
<xsl:choose>
<xsl:when test="../*[local-name()='thead']">
<xsl:call-template name="calculate-columns-numbers">
@@ -3623,18 +3926,18 @@
</fo:table-body>
</xsl:template> <!-- tbody -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="/" mode="process_table-if">
+ <xsl:template match="/" mode="process_table-if">
<xsl:param name="table_or_dl">table</xsl:param>
<xsl:apply-templates mode="process_table-if">
<xsl:with-param name="table_or_dl" select="$table_or_dl"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']" mode="process_table-if">
+ <xsl:template match="*[local-name()='tbody']" mode="process_table-if">
<xsl:param name="table_or_dl">table</xsl:param>
<fo:table-body>
<xsl:for-each select="*[local-name() = 'tr']">
<xsl:variable name="col_count" select="count(*)"/>
@@ -3678,22 +3981,22 @@
<!-- ===================== -->
<!-- Table's row processing -->
<!-- ===================== -->
<!-- row in table header (thead) thead/tr -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
+ <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
<fo:table-row xsl:use-attribute-sets="table-header-row-style">
<xsl:call-template name="refine_table-header-row-style"/>
<xsl:call-template name="setTableRowAttributes"/>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setBorderUnderRow">
+ <xsl:template name="setBorderUnderRow">
<xsl:variable name="border_under_row_" select="normalize-space(ancestor::*[local-name() = 'table'][1]/@border-under-row)"/>
<xsl:choose>
<xsl:when test="$border_under_row_ != ''">
<xsl:variable name="table_id" select="ancestor::*[local-name() = 'table'][1]/@id"/>
<xsl:variable name="row_num_"><xsl:number level="any" count="*[local-name() = 'table'][@id = $table_id]//*[local-name() = 'tr']"/></xsl:variable>
@@ -3712,22 +4015,22 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- row in table footer (tfoot), tfoot/tr -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tfoot']/*[local-name()='tr']" priority="2">
+ <xsl:template match="*[local-name()='tfoot']/*[local-name()='tr']" priority="2">
<fo:table-row xsl:use-attribute-sets="table-footer-row-style">
<xsl:call-template name="refine_table-footer-row-style"/>
<xsl:call-template name="setTableRowAttributes"/>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
<!-- row in table's body (tbody) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tr']">
+ <xsl:template match="*[local-name()='tr']">
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
<xsl:if test="count(*) = count(*[local-name() = 'th'])"> <!-- row contains 'th' only -->
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:if>
@@ -3738,11 +4041,11 @@
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTableRowAttributes">
+ <xsl:template name="setTableRowAttributes">
<xsl:if test="not(*[local-name()='th'])">
<xsl:attribute name="min-height">8mm</xsl:attribute>
</xsl:if>
@@ -3750,16 +4053,18 @@
<!-- ===================== -->
<!-- END Table's row processing -->
<!-- ===================== -->
<!-- cell in table header row -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th']">
+ <xsl:template match="*[local-name()='th']">
<fo:table-cell xsl:use-attribute-sets="table-header-cell-style"> <!-- text-align="{@align}" -->
<xsl:call-template name="setTextAlignment">
<xsl:with-param name="default">center</xsl:with-param>
</xsl:call-template>
+ <xsl:copy-of select="@keep-together.within-line"/>
+
<xsl:call-template name="refine_table-header-cell-style"/>
<!-- experimental feature, see https://github.com/metanorma/metanorma-plateau/issues/30#issuecomment-2145461828 -->
<!-- <xsl:choose>
<xsl:when test="count(node()) = 1 and *[local-name() = 'span'][contains(@style, 'text-orientation')]">
@@ -3780,11 +4085,11 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template> <!-- cell in table header row - 'th' -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTableCellAttributes">
+ <xsl:template name="setTableCellAttributes">
<xsl:if test="@colspan">
<xsl:attribute name="number-columns-spanned">
<xsl:value-of select="@colspan"/>
</xsl:attribute>
</xsl:if>
@@ -3794,11 +4099,11 @@
</xsl:attribute>
</xsl:if>
<xsl:call-template name="display-align"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="display-align">
+ <xsl:template name="display-align">
<xsl:if test="@valign">
<xsl:attribute name="display-align">
<xsl:choose>
<xsl:when test="@valign = 'top'">before</xsl:when>
<xsl:when test="@valign = 'middle'">center</xsl:when>
@@ -3808,16 +4113,18 @@
</xsl:attribute>
</xsl:if>
</xsl:template>
<!-- cell in table body, footer -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='td']" name="td">
+ <xsl:template match="*[local-name()='td']" name="td">
<fo:table-cell xsl:use-attribute-sets="table-cell-style"> <!-- text-align="{@align}" -->
<xsl:call-template name="setTextAlignment">
<xsl:with-param name="default">left</xsl:with-param>
</xsl:call-template>
+ <xsl:copy-of select="@keep-together.within-line"/>
+
<xsl:call-template name="refine_table-cell-style"/>
<xsl:if test=".//*[local-name() = 'table']"> <!-- if there is nested table -->
<xsl:attribute name="padding-right">1mm</xsl:attribute>
</xsl:if>
@@ -3841,13 +4148,14 @@
</fo:block>
</fo:table-cell>
</xsl:template> <!-- td -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
<fo:block xsl:use-attribute-sets="table-note-style">
+ <xsl:copy-of select="@id"/>
<xsl:call-template name="refine_table-note-style"/>
<!-- Table's note/example name (NOTE, for example) -->
<fo:inline xsl:use-attribute-sets="table-note-name-style">
@@ -3861,11 +4169,11 @@
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template> <!-- table/note -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
+ <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
<xsl:apply-templates/>
</xsl:template>
<!-- ===================== -->
<!-- Footnotes processing -->
@@ -3874,11 +4182,11 @@
<fn reference="1">
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
</fn>
-->
<!-- footnotes in text (title, bibliography, main body, table's, figure's names), not for tables, figures -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))]" priority="2" name="fn">
+ <xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))]" priority="2" name="fn">
<!-- list of footnotes to calculate actual footnotes number -->
<xsl:variable name="p_fn_">
<xsl:call-template name="get_fn_list"/>
<!-- <xsl:choose>
@@ -3937,11 +4245,11 @@
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
<xsl:copy-of select="."/>
</xsl:for-each>
- <xsl:if test="following-sibling::*[1][local-name() = 'fn']">
+ <xsl:if test="following-sibling::node()[normalize-space() != ''][1][local-name() = 'fn']">
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
</xsl:if>
<xsl:call-template name="insert_basic_link">
<xsl:with-param name="element">
@@ -3984,11 +4292,11 @@
<xsl:copy-of select="$footnote_inline"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- fn in text -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="get_fn_list">
+ <xsl:template name="get_fn_list">
<xsl:choose>
<xsl:when test="@current_fn_number"> <!-- for BSI, footnote reference number calculated already -->
<fn gen_id="{generate-id(.)}">
<xsl:copy-of select="@*"/>
<xsl:copy-of select="node()"/>
@@ -4004,11 +4312,11 @@
<fn gen_id="{generate-id(.)}">
<xsl:copy-of select="@*"/>
<xsl:copy-of select="node()"/>
</fn>
</xsl:for-each>
- <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='boilerplate']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='bibliography']/*">
+ <xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='boilerplate']/* | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]//*[local-name()='bibliography']/*">
<xsl:sort select="@displayorder" data-type="number"/>
<!-- commented:
.//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] |
because 'fn' there is in biblio-tag -->
<xsl:for-each select=".//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
@@ -4021,11 +4329,11 @@
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="get_fn_list_for_element">
+ <xsl:template name="get_fn_list_for_element">
<xsl:choose>
<xsl:when test="@current_fn_number"> <!-- footnote reference number calculated already -->
<fn gen_id="{generate-id(.)}">
<xsl:copy-of select="@*"/>
<xsl:copy-of select="node()"/>
@@ -4046,11 +4354,11 @@
</xsl:choose>
</xsl:template>
<!-- ============================ -->
<!-- table's footnotes rendering -->
<!-- ============================ -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_fn_display">
+ <xsl:template name="table_fn_display">
<xsl:variable name="references">
<xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
<xsl:call-template name="create_fn"/>
</xsl:for-each>
@@ -4076,19 +4384,24 @@
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="create_fn">
+ <xsl:template name="create_fn">
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
+ <xsl:if test="ancestor::*[local-name()='table'][1]/@id"> <!-- for footnotes in tables -->
+ <xsl:attribute name="id">
+ <xsl:value-of select="concat(@reference, '_', ancestor::*[local-name()='table'][1]/@id)"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:apply-templates/>
</fn>
</xsl:template>
<!-- footnotes for table's name rendering -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table_name_fn_display">
+ <xsl:template name="table_name_fn_display">
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
<xsl:variable name="reference" select="@reference"/>
<fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
<fo:block margin-bottom="12pt">
<xsl:apply-templates/>
@@ -4098,11 +4411,11 @@
<!-- ============================ -->
<!-- EMD table's footnotes rendering -->
<!-- ============================ -->
<!-- figure's footnotes rendering -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn_display_figure">
+ <xsl:template name="fn_display_figure">
<!-- current figure id -->
<xsl:variable name="figure_id_">
<xsl:value-of select="@id"/>
<xsl:if test="not(@id)"><xsl:value-of select="generate-id()"/></xsl:if>
@@ -4215,28 +4528,33 @@
</xsl:if>
</xsl:template> <!-- fn_display_figure -->
<!-- fn reference in the text rendering (for instance, 'some text 1) some text' ) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']">
+ <xsl:template match="*[local-name()='fn']">
<fo:inline xsl:use-attribute-sets="fn-reference-style">
<xsl:call-template name="refine_fn-reference-style"/>
<fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
+ <xsl:if test="ancestor::*[local-name()='table'][1]/@id"> <!-- for footnotes in tables -->
+ <xsl:attribute name="internal-destination">
+ <xsl:value-of select="concat(@reference, '_', ancestor::*[local-name()='table'][1]/@id)"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:value-of select="@reference"/>
</fo:basic-link>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']/text()[normalize-space() != '']">
+ <xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
<fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']//*[local-name()='p']">
+ <xsl:template match="*[local-name()='fn']//*[local-name()='p']">
<fo:inline role="P">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!-- ===================== -->
@@ -4246,11 +4564,11 @@
<!-- ===================== -->
<!-- Definition List -->
<!-- ===================== -->
<!-- for table auto-layout algorithm -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dl']" priority="2">
+ <xsl:template match="*[local-name()='dl']" priority="2">
<xsl:choose>
<xsl:when test="$table_only_with_id != '' and @id = $table_only_with_id">
<xsl:call-template name="dl"/>
</xsl:when>
<xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
@@ -4262,11 +4580,11 @@
<xsl:call-template name="dl"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dl']" name="dl">
+ <xsl:template match="*[local-name()='dl']" name="dl">
<xsl:variable name="isAdded" select="@added"/>
<xsl:variable name="isDeleted" select="@deleted"/>
<!-- <dl><xsl:copy-of select="."/></dl> -->
<fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
@@ -4546,41 +4864,41 @@
<xsl:apply-templates select="*[local-name() = 'dd']/*[local-name() = 'dl']"/>
</xsl:if>
</xsl:template> <!-- END: dl -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dl_formula_where_style">
+ <xsl:template name="refine_dl_formula_where_style">
</xsl:template> <!-- refine_dl_formula_where_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure_key_style">
+ <xsl:template name="refine_figure_key_style">
</xsl:template> <!-- refine_figure_key_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_multicomponent_style">
+ <xsl:template name="refine_multicomponent_style">
<xsl:variable name="parent" select="local-name(..)"/>
</xsl:template> <!-- refine_multicomponent_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_multicomponent_block_style">
+ <xsl:template name="refine_multicomponent_block_style">
<xsl:variable name="parent" select="local-name(..)"/>
</xsl:template> <!-- refine_multicomponent_block_style -->
<!-- ignore 'p' with 'where' in formula, before 'dl' -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula']/*[local-name() = 'p' and @keep-with-next = 'true' and following-sibling::*[1][local-name() = 'dl']]"/>
+ <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'p' and @keep-with-next = 'true' and following-sibling::*[1][local-name() = 'dl']]"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'dl']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'dl']/*[local-name() = 'name']">
<xsl:param name="process">false</xsl:param>
<xsl:if test="$process = 'true'">
<fo:block xsl:use-attribute-sets="dl-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setColumnWidth_dl">
+ <xsl:template name="setColumnWidth_dl">
<xsl:param name="colwidths"/>
<xsl:param name="maxlength_dt"/>
<xsl:param name="isContainsKeepTogetherTag"/>
<!-- <colwidths><xsl:copy-of select="$colwidths"/></colwidths> -->
@@ -4644,11 +4962,11 @@
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTableColumnWidth">
+ <xsl:template name="insertTableColumnWidth">
<xsl:param name="colwidths"/>
<xsl:for-each select="xalan:nodeset($colwidths)//column">
<xsl:choose>
<xsl:when test=". = 1 or . = 0">
@@ -4664,11 +4982,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMaxLength_dt">
+ <xsl:template name="getMaxLength_dt">
<xsl:variable name="lengths">
<xsl:for-each select="*[local-name()='dt']">
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
<xsl:variable name="attributes">
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
@@ -4689,11 +5007,11 @@
<xsl:value-of select="$maxLength"/>
</xsl:template>
<!-- note in definition list: dl/note -->
<!-- renders in the 2-column spanned table row -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dl']/*[local-name()='note']" priority="2">
+ <xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
<xsl:param name="key_iso"/>
<!-- <tr>
<td>NOTE</td>
<td>
<xsl:apply-templates />
@@ -4728,11 +5046,11 @@
</fo:table-cell>
</fo:table-row>
</xsl:template> <!-- END: dl/note -->
<!-- virtual html table for dl/[dt and dd] -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dt']" mode="dl">
+ <xsl:template match="*[local-name()='dt']" mode="dl">
<xsl:param name="id"/>
<xsl:variable name="row_number" select="count(preceding-sibling::*[local-name()='dt']) + 1"/>
<tr>
<td>
<xsl:attribute name="id">
@@ -4753,11 +5071,11 @@
</tr>
</xsl:template>
<!-- Definition's term -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dt']">
+ <xsl:template match="*[local-name()='dt']">
<xsl:param name="key_iso"/>
<xsl:param name="split_keep-within-line"/>
<fo:table-row xsl:use-attribute-sets="dt-row-style">
@@ -4771,11 +5089,11 @@
</xsl:call-template>
</xsl:for-each>
</fo:table-row>
</xsl:template> <!-- END: dt -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insert_dt_cell">
+ <xsl:template name="insert_dt_cell">
<xsl:param name="key_iso"/>
<xsl:param name="split_keep-within-line"/>
<fo:table-cell xsl:use-attribute-sets="dt-cell-style">
<xsl:if test="$isGenerateTableIF = 'true'">
@@ -4804,11 +5122,11 @@
</fo:block>
</fo:table-cell>
</xsl:template> <!-- insert_dt_cell -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insert_dd_cell">
+ <xsl:template name="insert_dd_cell">
<xsl:param name="split_keep-within-line"/>
<fo:table-cell xsl:use-attribute-sets="dd-cell-style">
<xsl:if test="$isGenerateTableIF = 'true'">
<!-- border is mandatory, to calculate real width -->
@@ -4844,27 +5162,27 @@
</fo:table-cell>
</xsl:template> <!-- insert_dd_cell -->
<!-- END Definition's term -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl_process">
+ <xsl:template match="*[local-name()='dd']" mode="dl"/>
+ <xsl:template match="*[local-name()='dd']" mode="dl_process">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']">
+ <xsl:template match="*[local-name()='dd']">
<xsl:param name="process">false</xsl:param>
<xsl:param name="split_keep-within-line"/>
<xsl:if test="$process = 'true'">
<xsl:apply-templates select="@language"/>
<xsl:apply-templates>
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']/*" mode="inline">
+ <xsl:template match="*[local-name()='dd']/*" mode="inline">
<xsl:variable name="is_inline_element_after_where">
<xsl:if test="(local-name() = 'p') and not(preceding-sibling::node()[normalize-space() != ''])">true</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="$is_inline_element_after_where = 'true'">
@@ -4875,11 +5193,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- virtual html table for dl/[dt and dd] for IF (Intermediate Format) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dt']" mode="dl_if">
+ <xsl:template match="*[local-name()='dt']" mode="dl_if">
<xsl:param name="id"/>
<tr>
<td>
<xsl:copy-of select="node()"/>
</td>
@@ -4889,27 +5207,27 @@
<!-- get paragraphs from nested 'dl' -->
<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'dl']" mode="dl_if_nested"/>
</td>
</tr>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl_if"/>
+ <xsl:template match="*[local-name()='dd']" mode="dl_if"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="dl_if">
+ <xsl:template match="*" mode="dl_if">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p']" mode="dl_if">
+ <xsl:template match="*[local-name() = 'p']" mode="dl_if">
<xsl:param name="indent"/>
<p>
<xsl:copy-of select="@*"/>
<xsl:value-of select="$indent"/>
<xsl:copy-of select="node()"/>
</p>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'ul' or local-name() = 'ol']" mode="dl_if">
+ <xsl:template match="*[local-name() = 'ul' or local-name() = 'ol']" mode="dl_if">
<xsl:variable name="list_rendered_">
<xsl:apply-templates select="."/>
</xsl:variable>
<xsl:variable name="list_rendered" select="xalan:nodeset($list_rendered_)"/>
@@ -4922,58 +5240,58 @@
<xsl:apply-templates mode="dl_if">
<xsl:with-param name="indent" select="$indent"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'li']" mode="dl_if">
+ <xsl:template match="*[local-name() = 'li']" mode="dl_if">
<xsl:param name="indent"/>
<xsl:apply-templates mode="dl_if">
<xsl:with-param name="indent" select="$indent"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@provisional-distance-between-starts" mode="dl_if">
+ <xsl:template match="@provisional-distance-between-starts" mode="dl_if">
<xsl:variable name="value" select="round(substring-before(.,'mm'))"/>
<!-- emulate left indent for list item -->
<xsl:call-template name="repeat">
<xsl:with-param name="char" select="'x'"/>
<xsl:with-param name="count" select="$value"/>
</xsl:call-template>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dl']" mode="dl_if_nested">
+ <xsl:template match="*[local-name()='dl']" mode="dl_if_nested">
<xsl:for-each select="*[local-name() = 'dt']">
<p>
<xsl:copy-of select="node()"/>
<xsl:text> </xsl:text>
<xsl:copy-of select="following-sibling::*[local-name()='dd'][1]/*[local-name() = 'p']/node()"/>
</p>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl_if_nested"/>
+ <xsl:template match="*[local-name()='dd']" mode="dl_if_nested"/>
<!-- ===================== -->
<!-- END Definition List -->
<!-- ===================== -->
<!-- default: ignore title in sections/p -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>
+ <xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>
<!-- ========================= -->
<!-- Rich text formatting -->
<!-- ========================= -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='em']">
+ <xsl:template match="*[local-name()='em']">
<fo:inline font-style="italic">
<xsl:call-template name="refine_italic_style"/>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_italic_style">
+ <xsl:template name="refine_italic_style">
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='strong'] | *[local-name()='b']">
+ <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
<xsl:param name="split_keep-within-line"/>
<fo:inline font-weight="bold">
<xsl:call-template name="refine_strong_style"/>
@@ -4981,34 +5299,34 @@
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
</xsl:apply-templates>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_strong_style">
+ <xsl:template name="refine_strong_style">
<xsl:if test="ancestor::*['preferred']">
<xsl:attribute name="role">SKIP</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='padding']">
+ <xsl:template match="*[local-name()='padding']">
<fo:inline padding-right="{@value}"> </fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sup']">
+ <xsl:template match="*[local-name()='sup']">
<fo:inline font-size="80%" vertical-align="super">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sub']">
+ <xsl:template match="*[local-name()='sub']">
<fo:inline font-size="80%" vertical-align="sub">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tt']">
+ <xsl:template match="*[local-name()='tt']">
<fo:inline xsl:use-attribute-sets="tt-style">
<xsl:variable name="_font-size">
<!-- inherit -->
@@ -5027,12 +5345,12 @@
</xsl:if>
<xsl:apply-templates/>
</fo:inline>
</xsl:template> <!-- tt -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tt']/text()" priority="2">
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
+ <xsl:template match="*[local-name()='tt']/text()" priority="2">
<xsl:choose>
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), $regex_url_start, '$2') != ''">
<!-- url -->
<xsl:call-template name="add-zero-spaces-link-java"/>
</xsl:when>
@@ -5040,20 +5358,20 @@
<xsl:call-template name="add_spaces_to_sourcecode"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='underline']">
+ <xsl:template match="*[local-name()='underline']">
<fo:inline text-decoration="underline">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!-- ================= -->
<!-- Added,deleted text -->
<!-- ================= -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
+ <xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
<xsl:param name="skip">true</xsl:param>
<xsl:param name="block">false</xsl:param>
<xsl:param name="type"/>
<xsl:param name="text-align"/>
<xsl:choose>
@@ -5147,11 +5465,11 @@
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- add -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTag">
+ <xsl:template name="insertTag">
<xsl:param name="type"/>
<xsl:param name="kind"/>
<xsl:param name="value"/>
<xsl:variable name="add_width" select="string-length($value) * 20"/>
<xsl:variable name="maxwidth" select="60 + $add_width"/>
@@ -5197,27 +5515,27 @@
</text>
</svg>
</fo:instream-foreign-object>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='del']">
+ <xsl:template match="*[local-name()='del']">
<fo:inline xsl:use-attribute-sets="del-style">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!-- ================= -->
<!-- END Added,deleted text -->
<!-- ================= -->
<!-- highlight text -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='hi']">
+ <xsl:template match="*[local-name()='hi']">
<fo:inline background-color="yellow">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()[ancestor::*[local-name()='smallcap']]">
+ <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
<!-- <xsl:variable name="text" select="normalize-space(.)"/> --> <!-- https://github.com/metanorma/metanorma-iso/issues/1115 -->
<xsl:variable name="text" select="."/>
<xsl:variable name="ratio_">
0.75
</xsl:variable>
@@ -5260,13 +5578,13 @@
</xsl:for-each>
</xsl:if>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recursiveSmallCaps">
+ <xsl:template name="recursiveSmallCaps">
<xsl:param name="text"/>
- <xsl:param name="ratio"/>
+ <xsl:param name="ratio">0.75</xsl:param>
<xsl:variable name="char" select="substring($text,1,1)"/>
<!-- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/> -->
<xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
<xsl:choose>
<xsl:when test="$char=$upperCase">
@@ -5284,18 +5602,18 @@
<xsl:with-param name="ratio" select="$ratio"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'pagebreak']">
+ <xsl:template match="*[local-name() = 'pagebreak']">
<fo:block break-after="page"/>
<fo:block> </fo:block>
<fo:block break-after="page"/>
</xsl:template>
<!-- Example: <span style="font-family:"Noto Sans JP"">styled text</span> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span'][@style]" priority="2">
+ <xsl:template match="*[local-name() = 'span'][@style]" priority="2">
<xsl:variable name="styles__">
<xsl:call-template name="split">
<xsl:with-param name="pText" select="concat(@style,';')"/>
<xsl:with-param name="sep" select="';'"/>
</xsl:call-template>
@@ -5339,41 +5657,41 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- END: span[@style] -->
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']">
+ <xsl:template match="*[local-name() = 'span']">
<xsl:apply-templates/>
</xsl:template>
<!-- Don't break standard's numbers -->
<!-- Example : <span class="stdpublisher">ISO</span> <span class="stddocNumber">10303</span>-<span class="stddocPartNumber">1</span>:<span class="stdyear">1994</span> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']" priority="2">
+ <xsl:template match="*[local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']" priority="2">
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'table']"><xsl:apply-templates/></xsl:when>
<xsl:when test="following-sibling::*[2][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']">
<fo:inline keep-with-next.within-line="always"><xsl:apply-templates/></fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()[not(ancestor::*[local-name() = 'table']) and preceding-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear'] and following-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']]" priority="2">
+ <xsl:template match="text()[not(ancestor::*[local-name() = 'table']) and preceding-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear'] and following-sibling::*[1][local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']]" priority="2">
<fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
+ <xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
<xsl:value-of select="."/>
</xsl:template>
<!-- ========================= -->
<!-- END Rich text formatting -->
<!-- ========================= -->
<!-- split string 'text' by 'separator' -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tokenize">
+ <xsl:template name="tokenize">
<xsl:param name="text"/>
<xsl:param name="separator" select="' '"/>
<xsl:choose>
<xsl:when test="$isGenerateTableIF = 'true' and not(contains($text, $separator))">
@@ -5439,11 +5757,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- split string 'text' by 'separator', enclosing in formatting tags -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tokenize_with_tags">
+ <xsl:template name="tokenize_with_tags">
<xsl:param name="tags"/>
<xsl:param name="text"/>
<xsl:param name="separator" select="' '"/>
<xsl:choose>
@@ -5476,11 +5794,11 @@
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="enclose_text_in_tags">
+ <xsl:template name="enclose_text_in_tags">
<xsl:param name="text"/>
<xsl:param name="tags"/>
<xsl:param name="num">1</xsl:param> <!-- default (start) value -->
<xsl:variable name="tag_name" select="normalize-space(xalan:nodeset($tags)//tag[$num])"/>
@@ -5498,21 +5816,21 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- get max value in array -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="max_length">
+ <xsl:template name="max_length">
<xsl:param name="words"/>
<xsl:for-each select="$words//word">
<xsl:sort select="." data-type="number" order="descending"/>
<xsl:if test="position()=1">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-zero-spaces-java">
+ <xsl:template name="add-zero-spaces-java">
<xsl:param name="text" select="."/>
<!-- add zero-width space (#x200B) after dot with next non-digit -->
<xsl:variable name="text1" select="java:replaceAll(java:java.lang.String.new($text),'(\.)([^\d\s])','$1$2')"/>
<!-- add zero-width space (#x200B) after characters: dash, equal, underscore, em dash, thin space, arrow right, ; -->
@@ -5546,11 +5864,11 @@
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
<xsl:value-of select="$text11"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-zero-spaces-link-java">
+ <xsl:template name="add-zero-spaces-link-java">
<xsl:param name="text" select="."/>
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space, comma, slash, @ -->
@@ -5562,11 +5880,11 @@
<!-- remove zero-width space at the end -->
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url2), '$', '')"/>
</xsl:template>
<!-- add zero space after dash character (for table's entries) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-zero-spaces">
+ <xsl:template name="add-zero-spaces">
<xsl:param name="text" select="."/>
<xsl:variable name="zero-space-after-chars">-</xsl:variable>
<xsl:variable name="zero-space-after-dot">.</xsl:variable>
<xsl:variable name="zero-space-after-colon">:</xsl:variable>
<xsl:variable name="zero-space-after-equal">=</xsl:variable>
@@ -5617,11 +5935,11 @@
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-zero-spaces-equal">
+ <xsl:template name="add-zero-spaces-equal">
<xsl:param name="text" select="."/>
<xsl:variable name="zero-space-after-equals">==========</xsl:variable>
<xsl:variable name="regex_zero-space-after-equals">(==========)</xsl:variable>
<xsl:variable name="zero-space-after-equal">=</xsl:variable>
<xsl:variable name="regex_zero-space-after-equal">(=)</xsl:variable>
@@ -5650,11 +5968,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Table normalization (colspan,rowspan processing for adding TDs) for column width calculation -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getSimpleTable">
+ <xsl:template name="getSimpleTable">
<xsl:param name="id"/>
<!-- <test0>
<xsl:copy-of select="."/>
</test0> -->
@@ -5693,26 +6011,26 @@
</xsl:template>
<!-- ================================== -->
<!-- Step 0. replace <br/> to <p>...</p> -->
<!-- ================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="table-without-br">
+ <xsl:template match="@*|node()" mode="table-without-br">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="table-without-br"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode']) and not(*[local-name()='ul']) and not(*[local-name()='ol'])]" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name() = 'td'][not(*[local-name()='br']) and not(*[local-name()='p']) and not(*[local-name()='sourcecode']) and not(*[local-name()='ul']) and not(*[local-name()='ol'])]" mode="table-without-br">
<xsl:copy>
<xsl:copy-of select="@*"/>
<p>
<xsl:copy-of select="node()"/>
</p>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td'][*[local-name()='br']]" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td'][*[local-name()='br']]" mode="table-without-br">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:for-each select="*[local-name()='br']">
<xsl:variable name="current_id" select="generate-id()"/>
<p>
@@ -5729,11 +6047,11 @@
</xsl:if>
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p'][*[local-name()='br']]" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p'][*[local-name()='br']]" mode="table-without-br">
<xsl:for-each select="*[local-name()='br']">
<xsl:variable name="current_id" select="generate-id()"/>
<p>
<xsl:for-each select="preceding-sibling::node()[following-sibling::*[local-name() = 'br'][1][generate-id() = $current_id]][not(local-name() = 'br')]">
<xsl:copy-of select="."/>
@@ -5747,15 +6065,15 @@
</p>
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']" mode="table-without-br">
<xsl:apply-templates mode="table-without-br"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']/text()[contains(., ' ') or contains(., ' ')]" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']/text()[contains(., ' ') or contains(., ' ')]" mode="table-without-br">
<xsl:variable name="sep">###SOURCECODE_NEWLINE###</xsl:variable>
<xsl:variable name="sourcecode_text" select="java:replaceAll(java:java.lang.String.new(.),'( | | )', $sep)"/>
<xsl:variable name="items">
<xsl:call-template name="split">
@@ -5770,20 +6088,20 @@
</p>
</xsl:for-each>
</xsl:template>
<!-- remove redundant white spaces -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()[not(ancestor::*[local-name() = 'sourcecode'])]" mode="table-without-br">
+ <xsl:template match="text()[not(ancestor::*[local-name() = 'sourcecode'])]" mode="table-without-br">
<xsl:variable name="text" select="translate(.,'	 ','')"/>
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),' {2,}',' ')"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']//*[local-name() = 'ol' or local-name() = 'ul']" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'ol' or local-name() = 'ul']" mode="table-without-br">
<xsl:apply-templates mode="table-without-br"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']//*[local-name() = 'li']" mode="table-without-br">
+ <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'li']" mode="table-without-br">
<xsl:apply-templates mode="table-without-br"/>
</xsl:template>
<!-- mode="table-without-br" -->
<!-- ================================== -->
@@ -5798,16 +6116,16 @@
1.4. remove namespace
1.5. remove @colspan attribute
1.6. add @divide attribute for divide text width in further processing
-->
<!-- ===================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
+ <xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
<xsl:apply-templates mode="simple-table-colspan"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']" mode="simple-table-colspan"/>
+ <xsl:template match="*[local-name()='fn']" mode="simple-table-colspan"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th'] | *[local-name()='td']" mode="simple-table-colspan">
+ <xsl:template match="*[local-name()='th'] | *[local-name()='td']" mode="simple-table-colspan">
<xsl:choose>
<xsl:when test="@colspan">
<xsl:variable name="td">
<xsl:element name="{local-name()}">
<xsl:attribute name="divide"><xsl:value-of select="@colspan"/></xsl:attribute>
@@ -5833,27 +6151,27 @@
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@colspan" mode="simple-table-colspan"/>
+ <xsl:template match="@colspan" mode="simple-table-colspan"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tr']" mode="simple-table-colspan">
+ <xsl:template match="*[local-name()='tr']" mode="simple-table-colspan">
<xsl:element name="tr">
<xsl:apply-templates select="@*" mode="simple-table-colspan"/>
<xsl:apply-templates mode="simple-table-colspan"/>
</xsl:element>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="simple-table-colspan">
+ <xsl:template match="@*|node()" mode="simple-table-colspan">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="simple-table-colspan"/>
</xsl:copy>
</xsl:template>
<!-- repeat node 'count' times -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="repeatNode">
+ <xsl:template name="repeatNode">
<xsl:param name="count"/>
<xsl:param name="node"/>
<xsl:if test="$count > 0">
<xsl:call-template name="repeatNode">
@@ -5869,26 +6187,26 @@
<!-- ===================== -->
<!-- 2. mode "simple-table-rowspan"
Row span processing, more information http://andrewjwelch.com/code/xslt/table/table-normalization.html -->
<!-- ===================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="simple-table-rowspan">
+ <xsl:template match="@*|node()" mode="simple-table-rowspan">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="simple-table-rowspan"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="tbody" mode="simple-table-rowspan">
+ <xsl:template match="tbody" mode="simple-table-rowspan">
<xsl:copy>
<xsl:copy-of select="tr[1]"/>
<xsl:apply-templates select="tr[2]" mode="simple-table-rowspan">
<xsl:with-param name="previousRow" select="tr[1]"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="tr" mode="simple-table-rowspan">
+ <xsl:template match="tr" mode="simple-table-rowspan">
<xsl:param name="previousRow"/>
<xsl:variable name="currentRow" select="."/>
<xsl:variable name="normalizedTDs">
<xsl:for-each select="xalan:nodeset($previousRow)//*[self::td or self::th]">
@@ -5942,50 +6260,50 @@
</xsl:template>
<!-- End mode simple-table-rowspan -->
<!-- Step 3: add id for each cell -->
<!-- mode: simple-table-id -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="/" mode="simple-table-id">
+ <xsl:template match="/" mode="simple-table-id">
<xsl:param name="id"/>
<xsl:variable name="id_prefixed" select="concat('table_if_',$id)"/> <!-- table id prefixed by 'table_if_' to simple search in IF -->
<xsl:apply-templates select="@*|node()" mode="simple-table-id">
<xsl:with-param name="id" select="$id_prefixed"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="simple-table-id">
+ <xsl:template match="@*|node()" mode="simple-table-id">
<xsl:param name="id"/>
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="simple-table-id">
<xsl:with-param name="id" select="$id"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']" mode="simple-table-id">
+ <xsl:template match="*[local-name()='tbody']" mode="simple-table-id">
<xsl:param name="id"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
<xsl:apply-templates select="node()" mode="simple-table-id">
<xsl:with-param name="id" select="$id"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_main_root_style">
+ <xsl:variable name="font_main_root_style">
<root-style xsl:use-attribute-sets="root-style">
</root-style>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_main">
+ <xsl:variable name="font_main_root_style_font_family" select="xalan:nodeset($font_main_root_style)/root-style/@font-family"/>
+ <xsl:variable name="font_main">
<xsl:choose>
<xsl:when test="contains($font_main_root_style_font_family, ',')"><xsl:value-of select="substring-before($font_main_root_style_font_family, ',')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$font_main_root_style_font_family"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
+ <xsl:template match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
<xsl:param name="id"/>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="row_number" select="count(../preceding-sibling::*) + 1"/>
<xsl:variable name="col_number" select="count(preceding-sibling::*) + 1"/>
@@ -6076,11 +6394,11 @@
</xsl:if>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p']//*" mode="simple-table-noid">
+ <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p']//*" mode="simple-table-noid">
<xsl:copy>
<xsl:choose>
<xsl:when test="$isGenerateTableIF = 'true'">
<xsl:copy-of select="@*[local-name() != 'id']"/> <!-- to prevent repeat id in colspan/rowspan cells -->
<!-- <xsl:if test="local-name() = 'dl' or local-name() = 'table'">
@@ -6100,19 +6418,19 @@
<!-- ===================== -->
<!-- =============================== -->
<!-- mode="td_text_with_formatting" -->
<!-- =============================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="td_text_with_formatting">
+ <xsl:template match="@*|node()" mode="td_text_with_formatting">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="td_text_with_formatting"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem' or local-name() = 'image']" mode="td_text_with_formatting"/>
+ <xsl:template match="*[local-name() = 'stem' or local-name() = 'image']" mode="td_text_with_formatting"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'keep-together_within-line']/text()" mode="td_text_with_formatting">
+ <xsl:template match="*[local-name() = 'keep-together_within-line']/text()" mode="td_text_with_formatting">
<xsl:variable name="formatting_tags">
<xsl:call-template name="getFormattingTags"/>
</xsl:variable>
<word>
<xsl:call-template name="enclose_text_in_tags">
@@ -6120,11 +6438,11 @@
<xsl:with-param name="tags" select="$formatting_tags"/>
</xsl:call-template>
</word>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() != 'keep-together_within-line']/text()" mode="td_text_with_formatting">
+ <xsl:template match="*[local-name() != 'keep-together_within-line']/text()" mode="td_text_with_formatting">
<xsl:variable name="td_text" select="."/>
<xsl:variable name="string_with_added_zerospaces">
<xsl:call-template name="add-zero-spaces-java">
@@ -6141,11 +6459,11 @@
<xsl:with-param name="tags" select="$formatting_tags"/>
<xsl:with-param name="text" select="normalize-space(translate($string_with_added_zerospaces, '', ' '))"/> <!-- replace zero-width-space and soft-hyphen to space -->
</xsl:call-template>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'link'][normalize-space() = '']" mode="td_text_with_formatting">
+ <xsl:template match="*[local-name() = 'link'][normalize-space() = '']" mode="td_text_with_formatting">
<xsl:variable name="link">
<link_updated>
<xsl:variable name="target_text">
<xsl:choose>
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
@@ -6162,11 +6480,11 @@
<xsl:for-each select="xalan:nodeset($link)/*">
<xsl:apply-templates mode="td_text_with_formatting"/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getFormattingTags">
+ <xsl:template name="getFormattingTags">
<tags>
<xsl:if test="ancestor::*[local-name() = 'strong']"><tag>strong</tag></xsl:if>
<xsl:if test="ancestor::*[local-name() = 'em']"><tag>em</tag></xsl:if>
<xsl:if test="ancestor::*[local-name() = 'sub']"><tag>sub</tag></xsl:if>
<xsl:if test="ancestor::*[local-name() = 'sup']"><tag>sup</tag></xsl:if>
@@ -6177,11 +6495,11 @@
</xsl:template>
<!-- =============================== -->
<!-- END mode="td_text_with_formatting" -->
<!-- =============================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLang">
+ <xsl:template name="getLang">
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
<xsl:variable name="language">
<xsl:choose>
<xsl:when test="$language_current != ''">
<xsl:value-of select="$language_current"/>
@@ -6210,11 +6528,11 @@
<xsl:when test="$language = 'English'">en</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLang_fromCurrentNode">
+ <xsl:template name="getLang_fromCurrentNode">
<xsl:variable name="language_current" select="normalize-space(.//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
<xsl:variable name="language">
<xsl:choose>
<xsl:when test="$language_current != ''">
<xsl:value-of select="$language_current"/>
@@ -6237,11 +6555,11 @@
<xsl:when test="$language = 'English'">en</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="capitalizeWords">
+ <xsl:template name="capitalizeWords">
<xsl:param name="str"/>
<xsl:variable name="str2" select="translate($str, '-', ' ')"/>
<xsl:choose>
<xsl:when test="contains($str2, ' ')">
<xsl:variable name="substr" select="substring-before($str2, ' ')"/>
@@ -6259,20 +6577,20 @@
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="capitalize">
+ <xsl:template name="capitalize">
<xsl:param name="str"/>
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
<xsl:value-of select="substring($str, 2)"/>
</xsl:template>
<!-- ======================================= -->
<!-- math -->
<!-- ======================================= -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math">
+ <xsl:template match="mathml:math">
<xsl:variable name="isAdded" select="@added"/>
<xsl:variable name="isDeleted" select="@deleted"/>
<fo:inline xsl:use-attribute-sets="mathml-style">
@@ -6306,11 +6624,11 @@
</xsl:call-template>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMathml_comment_text">
+ <xsl:template name="getMathml_comment_text">
<xsl:variable name="comment_text_following" select="following-sibling::node()[1][self::comment()]"/>
<xsl:variable name="comment_text_">
<xsl:choose>
<xsl:when test="normalize-space($comment_text_following) != ''">
<xsl:value-of select="$comment_text_following"/>
@@ -6323,20 +6641,20 @@
<xsl:variable name="comment_text_2" select="java:org.metanorma.fop.Util.unescape($comment_text_)"/>
<xsl:variable name="comment_text" select="java:trim(java:java.lang.String.new($comment_text_2))"/>
<xsl:value-of select="$comment_text"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'asciimath']">
+ <xsl:template match="*[local-name() = 'asciimath']">
<xsl:param name="process" select="'false'"/>
<xsl:if test="$process = 'true'">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'latexmath']"/>
+ <xsl:template match="*[local-name() = 'latexmath']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMathml_asciimath_text">
+ <xsl:template name="getMathml_asciimath_text">
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
<xsl:variable name="latexmath">
</xsl:variable>
<xsl:variable name="asciimath_text_following">
@@ -6365,11 +6683,11 @@
<xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
<xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
<xsl:value-of select="$asciimath_text"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="mathml_instream_object">
+ <xsl:template name="mathml_instream_object">
<xsl:param name="asciimath_text"/>
<xsl:param name="mathml_content"/>
<xsl:variable name="asciimath_text_">
<xsl:choose>
@@ -6405,15 +6723,15 @@
<xsl:copy-of select="xalan:nodeset($mathml)"/>
</fo:instream-foreign-object>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_mathml_insteam_object_style">
+ <xsl:template name="refine_mathml_insteam_object_style">
</xsl:template> <!-- refine_mathml_insteam_object_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:*" mode="mathml_actual_text">
+ <xsl:template match="mathml:*" mode="mathml_actual_text">
<!-- <xsl:text>a+b</xsl:text> -->
<xsl:text><</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:if test="local-name() = 'math'">
<xsl:text> xmlns="http://www.w3.org/1998/Math/MathML"</xsl:text>
@@ -6430,21 +6748,21 @@
<xsl:text></</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>></xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="mathml_actual_text">
+ <xsl:template match="text()" mode="mathml_actual_text">
<xsl:value-of select="normalize-space()"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="mathml">
+ <xsl:template match="@*|node()" mode="mathml">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="mathml"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:mtext" mode="mathml">
+ <xsl:template match="mathml:mtext" mode="mathml">
<xsl:copy>
<!-- replace start and end spaces to non-break space -->
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
</xsl:copy>
</xsl:template>
@@ -6462,17 +6780,17 @@
<mathml:mspace width="0.5ex"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math/*[local-name()='unit']" mode="mathml"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math/*[local-name()='prefix']" mode="mathml"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math/*[local-name()='dimension']" mode="mathml"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math/*[local-name()='quantity']" mode="mathml"/>
+ <xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/>
+ <xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/>
+ <xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/>
+ <xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/>
<!-- patch: slash in the mtd wrong rendering -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:mtd/mathml:mo/text()[. = '/']" mode="mathml">
+ <xsl:template match="mathml:mtd/mathml:mo/text()[. = '/']" mode="mathml">
<xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
</xsl:template>
<!-- special case for:
<math xmlns="http://www.w3.org/1998/Math/MathML">
@@ -6487,11 +6805,11 @@
<mi>k</mi>
</msubsup>
</mstyle>
</math>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:msup/mathml:mi[. = '' or . = ''][not(preceding-sibling::*)][following-sibling::mathml:mtext]" mode="mathml">
+ <xsl:template match="mathml:msup/mathml:mi[. = '' or . = ''][not(preceding-sibling::*)][following-sibling::mathml:mtext]" mode="mathml">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="next_mtext" select="ancestor::mathml:msup/following-sibling::*[1][self::mathml:msubsup or self::mathml:msub or self::mathml:msup]/mathml:mtext"/>
<xsl:if test="string-length($next_mtext) != ''">
<xsl:attribute name="color">#00000000</xsl:attribute>
@@ -6513,19 +6831,19 @@
<mspace height="1.47ex"/>
</mrow>
<mn>1</mn>
</msup>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:msup/mathml:mtext[not(preceding-sibling::*)]" mode="mathml">
+ <xsl:template match="mathml:msup/mathml:mtext[not(preceding-sibling::*)]" mode="mathml">
<mathml:mrow>
<xsl:copy-of select="."/>
<mathml:mspace height="1.47ex"/>
</mathml:mrow>
</xsl:template>
<!-- add space around vertical line -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:mo[normalize-space(text()) = '|']" mode="mathml">
+ <xsl:template match="mathml:mo[normalize-space(text()) = '|']" mode="mathml">
<xsl:copy>
<xsl:apply-templates select="@*" mode="mathml"/>
<xsl:if test="not(@lspace)">
<xsl:attribute name="lspace">0.2em</xsl:attribute>
</xsl:if>
@@ -6535,22 +6853,22 @@
<xsl:apply-templates mode="mathml"/>
</xsl:copy>
</xsl:template>
<!-- decrease fontsize for 'Circled Times' char -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:mo[normalize-space(text()) = '⊗']" mode="mathml">
+ <xsl:template match="mathml:mo[normalize-space(text()) = '⊗']" mode="mathml">
<xsl:copy>
<xsl:apply-templates select="@*" mode="mathml"/>
<xsl:if test="not(@fontsize)">
<xsl:attribute name="fontsize">55%</xsl:attribute>
</xsl:if>
<xsl:apply-templates mode="mathml"/>
</xsl:copy>
</xsl:template>
<!-- increase space before '(' -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
+ <xsl:template match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
<xsl:copy>
<xsl:apply-templates select="@*" mode="mathml"/>
<xsl:if test="(preceding-sibling::* and not(preceding-sibling::*[1][self::mathml:mo])) or (../preceding-sibling::* and not(../preceding-sibling::*[1][self::mathml:mo]))">
<xsl:if test="not(@lspace)">
<xsl:attribute name="lspace">0.4em</xsl:attribute>
@@ -6571,11 +6889,11 @@
<!-- Examples:
<stem type="AsciiMath">x = 1</stem>
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
+ <xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
<fo:inline xsl:use-attribute-sets="mathml-style">
<xsl:call-template name="refine_mathml-style"/>
<xsl:choose>
@@ -6591,13 +6909,13 @@
</xsl:template>
<!-- ======================================= -->
<!-- END: math -->
<!-- ======================================= -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='localityStack']"/>
+ <xsl:template match="*[local-name()='localityStack']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='link']" name="link">
+ <xsl:template match="*[local-name()='link']" name="link">
<xsl:variable name="target">
<xsl:choose>
<xsl:when test="@updatetype = 'true'">
<xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
</xsl:when>
@@ -6658,42 +6976,42 @@
</xsl:template> <!-- link -->
<!-- ======================== -->
<!-- Appendix processing -->
<!-- ======================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='appendix']">
+ <xsl:template match="*[local-name()='appendix']">
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
<xsl:apply-templates select="*[local-name()='title']"/>
</fo:block>
<xsl:apply-templates select="node()[not(local-name()='title')]"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='appendix']/*[local-name()='title']" priority="2">
+ <xsl:template match="*[local-name()='appendix']/*[local-name()='title']" priority="2">
<xsl:variable name="level">
<xsl:call-template name="getLevel"/>
</xsl:variable>
<fo:inline role="H{$level}"><xsl:apply-templates/></fo:inline>
</xsl:template>
<!-- ======================== -->
<!-- END Appendix processing -->
<!-- ======================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
+ <xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
<xsl:apply-templates select="*[local-name()='name']"/>
</fo:block>
<xsl:apply-templates select="node()[not(local-name()='name')]"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'callout']">
+ <xsl:template match="*[local-name() = 'callout']">
<xsl:choose>
<xsl:when test="normalize-space(@target) = ''"><<xsl:apply-templates/>></xsl:when>
<xsl:otherwise><fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}"><<xsl:apply-templates/>></fo:basic-link></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'annotation']">
+ <xsl:template match="*[local-name() = 'annotation']">
<xsl:variable name="annotation-id" select="@id"/>
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
<fo:block id="{$annotation-id}" white-space="nowrap">
<fo:inline>
@@ -6702,20 +7020,20 @@
</xsl:apply-templates>
</fo:inline>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'annotation']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
<xsl:param name="callout"/>
<fo:inline id="{@id}">
<!-- for first p in annotation, put <x> -->
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref']">
+ <xsl:template match="*[local-name() = 'xref']">
<xsl:call-template name="insert_basic_link">
<xsl:with-param name="element">
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
<xsl:if test="string-length(normalize-space()) < 30 and not(contains(normalize-space(), 'http://')) and not(contains(normalize-space(), 'https://')) and not(ancestor::*[local-name() = 'table' or local-name() = 'dl'])">
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
@@ -6728,18 +7046,18 @@
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- command between two xref points to non-standard bibitem -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()[. = ','][preceding-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']] and following-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']]]">
+ <xsl:template match="text()[. = ','][preceding-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']] and following-sibling::node()[1][local-name() = 'sup'][*[local-name() = 'xref'][@type = 'footnote']]]">
<xsl:value-of select="."/>
</xsl:template>
<!-- ====== -->
<!-- formula -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula']" name="formula">
+ <xsl:template match="*[local-name() = 'formula']" name="formula">
<fo:block-container margin-left="0mm" role="SKIP">
<xsl:if test="parent::*[local-name() = 'note']">
<xsl:attribute name="margin-left">
<xsl:choose>
<xsl:when test="not(ancestor::*[local-name() = 'table'])"><xsl:value-of select="$note-body-indent"/></xsl:when>
@@ -6754,30 +7072,30 @@
</fo:block>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
+ <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
<fo:inline>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
+ <xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
<fo:inline>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula']/*[local-name() = 'name']"> <!-- show in 'stem' template -->
+ <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"> <!-- show in 'stem' template -->
<xsl:if test="normalize-space() != ''">
<xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
</xsl:if>
</xsl:template>
<!-- stem inside formula with name (with formula's number) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula'][*[local-name() = 'name']]/*[local-name() = 'stem']">
+ <xsl:template match="*[local-name() = 'formula'][*[local-name() = 'name']]/*[local-name() = 'stem']">
<fo:block xsl:use-attribute-sets="formula-style">
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="95%"/>
<fo:table-column column-width="5%"/>
@@ -6804,31 +7122,31 @@
</fo:table>
</fo:block>
</xsl:template>
<!-- stem inside formula without name (without formula's number) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula'][not(*[local-name() = 'name'])]/*[local-name() = 'stem']">
+ <xsl:template match="*[local-name() = 'formula'][not(*[local-name() = 'name'])]/*[local-name() = 'stem']">
<fo:block xsl:use-attribute-sets="formula-style">
<fo:block xsl:use-attribute-sets="formula-stem-block-style">
<xsl:apply-templates/>
</fo:block>
</fo:block>
</xsl:template>
<!-- ====== -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setBlockSpanAll">
+ <xsl:template name="setBlockSpanAll">
<xsl:if test="@columns = 1 or (local-name() = 'p' and *[@columns = 1])"><xsl:attribute name="span">all</xsl:attribute></xsl:if>
</xsl:template>
<!-- ====== -->
<!-- note -->
<!-- termnote -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'note']" name="note">
+ <xsl:template match="*[local-name() = 'note']" name="note">
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
@@ -6867,11 +7185,11 @@
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_note_block_style">
+ <xsl:template name="refine_note_block_style">
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="text-indent">0</xsl:attribute>
<xsl:attribute name="padding-top">1.5mm</xsl:attribute>
<xsl:if test="../@type = 'source' or ../@type = 'abbreviation'">
@@ -6880,11 +7198,11 @@
<xsl:attribute name="padding-top">0mm</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'note']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:choose>
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
<xsl:apply-templates/>
@@ -6896,11 +7214,11 @@
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termnote']">
+ <xsl:template match="*[local-name() = 'termnote']">
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
<xsl:call-template name="setBlockSpanAll"/>
<xsl:call-template name="refine_termnote-style"/>
@@ -6925,11 +7243,11 @@
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'note']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']">
<xsl:param name="sfx"/>
<xsl:variable name="suffix">
<xsl:choose>
<xsl:when test="$sfx != ''">
<xsl:value-of select="$sfx"/>
@@ -6945,11 +7263,11 @@
<xsl:apply-templates/>
<xsl:value-of select="$suffix"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termnote']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']">
<xsl:param name="sfx"/>
<xsl:variable name="suffix">
<xsl:choose>
<xsl:when test="$sfx != ''">
<xsl:value-of select="$sfx"/>
@@ -6965,11 +7283,11 @@
<xsl:apply-templates/>
<xsl:value-of select="$suffix"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termnote']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:choose>
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
<fo:inline xsl:use-attribute-sets="termnote-p-style">
<xsl:apply-templates/>
@@ -6988,28 +7306,28 @@
<!-- ====== -->
<!-- term -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'terms']">
+ <xsl:template match="*[local-name() = 'terms']">
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
<fo:block id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'term']">
+ <xsl:template match="*[local-name() = 'term']">
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
</xsl:if>
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'term']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<!-- <xsl:variable name="level">
<xsl:call-template name="getLevelTermName"/>
</xsl:variable>
<fo:inline role="H{$level}">
@@ -7024,11 +7342,11 @@
<!-- ====== -->
<!-- figure -->
<!-- image -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']" name="figure">
+ <xsl:template match="*[local-name() = 'figure']" name="figure">
<xsl:variable name="isAdded" select="@added"/>
<xsl:variable name="isDeleted" select="@deleted"/>
<fo:block-container id="{@id}" xsl:use-attribute-sets="figure-block-style">
<xsl:call-template name="refine_figure-block-style"/>
@@ -7051,31 +7369,31 @@
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure'][@class = 'pseudocode']">
+ <xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
<fo:block id="{@id}">
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
<xsl:apply-templates select="*[local-name() = 'name']"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- SOURCE: ... -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
<xsl:call-template name="termsource"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'image']">
+ <xsl:template match="*[local-name() = 'image']">
<xsl:param name="indent">0</xsl:param>
<xsl:variable name="isAdded" select="../@added"/>
<xsl:variable name="isDeleted" select="../@deleted"/>
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'title'] or not(parent::*[local-name() = 'figure']) or parent::*[local-name() = 'p']"> <!-- inline image ( 'image:path' in adoc, with one colon after image) -->
@@ -7215,21 +7533,21 @@
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setImageWidth">
+ <xsl:template name="setImageWidth">
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
<xsl:value-of select="@width"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setImageHeight">
+ <xsl:template name="setImageHeight">
<xsl:if test="@height != '' and @height != 'auto'">
<xsl:value-of select="@height"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setImageWidthHeight">
+ <xsl:template name="setImageWidthHeight">
<xsl:variable name="width">
<xsl:call-template name="setImageWidth"/>
</xsl:variable>
<xsl:if test="$width != ''">
<xsl:attribute name="content-width">
@@ -7244,11 +7562,11 @@
<xsl:value-of select="$height"/>
</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getImageScale">
+ <xsl:template name="getImageScale">
<xsl:param name="indent"/>
<xsl:variable name="indent_left">
<xsl:choose>
<xsl:when test="$indent != ''"><xsl:value-of select="$indent"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
@@ -7271,11 +7589,11 @@
<xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
<xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
<xsl:value-of select="$scale"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="image_src">
+ <xsl:template name="image_src">
<xsl:choose>
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
</xsl:when>
<!-- in WebP format, then convert image into PNG -->
@@ -7294,11 +7612,11 @@
<xsl:value-of select="@src"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'image']" mode="cross_image">
+ <xsl:template match="*[local-name() = 'image']" mode="cross_image">
<xsl:choose>
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
<xsl:variable name="src">
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
</xsl:variable>
@@ -7338,29 +7656,29 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="svg_cross">
+ <xsl:template name="svg_cross">
<xsl:param name="width"/>
<xsl:param name="height"/>
<line xmlns="http://www.w3.org/2000/svg" x1="0" y1="0" x2="{$width}" y2="{$height}" style="stroke: rgb(255, 0, 0); stroke-width:4px; "/>
<line xmlns="http://www.w3.org/2000/svg" x1="0" y1="{$height}" x2="{$width}" y2="0" style="stroke: rgb(255, 0, 0); stroke-width:4px; "/>
</xsl:template>
<!-- =================== -->
<!-- SVG images processing -->
<!-- =================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure_name_height">14</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="width_effective" select="$pageWidth - $marginLeftRight1 - $marginLeftRight2"/><!-- paper width minus margins -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="height_effective" select="$pageHeight - $marginTop - $marginBottom - $figure_name_height"/><!-- paper height minus margins and title height -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="image_dpi" select="96"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="width_effective_px" select="$width_effective div 25.4 * $image_dpi"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="height_effective_px" select="$height_effective div 25.4 * $image_dpi"/>
+ <xsl:variable name="figure_name_height">14</xsl:variable>
+ <xsl:variable name="width_effective" select="$pageWidth - $marginLeftRight1 - $marginLeftRight2"/><!-- paper width minus margins -->
+ <xsl:variable name="height_effective" select="$pageHeight - $marginTop - $marginBottom - $figure_name_height"/><!-- paper height minus margins and title height -->
+ <xsl:variable name="image_dpi" select="96"/>
+ <xsl:variable name="width_effective_px" select="$width_effective div 25.4 * $image_dpi"/>
+ <xsl:variable name="height_effective_px" select="$height_effective div 25.4 * $image_dpi"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure'][not(*[local-name() = 'image']) and *[local-name() = 'svg']]/*[local-name() = 'name']/*[local-name() = 'bookmark']" priority="2"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure'][not(*[local-name() = 'image'])]/*[local-name() = 'svg']" priority="2" name="image_svg">
+ <xsl:template match="*[local-name() = 'figure'][not(*[local-name() = 'image']) and *[local-name() = 'svg']]/*[local-name() = 'name']/*[local-name() = 'bookmark']" priority="2"/>
+ <xsl:template match="*[local-name() = 'figure'][not(*[local-name() = 'image'])]/*[local-name() = 'svg']" priority="2" name="image_svg">
<xsl:param name="name"/>
<xsl:variable name="svg_content">
<xsl:apply-templates select="." mode="svg_update"/>
</xsl:variable>
@@ -7375,10 +7693,12 @@
</xsl:when>
<xsl:otherwise>Figure</xsl:otherwise>
</xsl:choose>
</xsl:variable>
+ <xsl:variable name="isPrecedingTitle" select="normalize-space(ancestor::*[local-name() = 'figure']/preceding-sibling::*[1][local-name() = 'title'] and 1 = 1)"/>
+
<xsl:choose>
<xsl:when test=".//*[local-name() = 'a'][*[local-name() = 'rect'] or *[local-name() = 'polygon'] or *[local-name() = 'circle'] or *[local-name() = 'ellipse']]">
<fo:block>
<xsl:variable name="width" select="@width"/>
<xsl:variable name="height" select="@height"/>
@@ -7521,11 +7841,18 @@
</xsl:choose>
</xsl:variable>
<xsl:variable name="scale_y">
<xsl:choose>
<xsl:when test="$svg_height * $scale_x > $height_effective_px">
- <xsl:value-of select="$height_effective_px div ($svg_height * $scale_x)"/>
+ <xsl:variable name="height_effective_px_">
+ <xsl:choose>
+ <!-- title is 'keep-with-next' with following figure -->
+ <xsl:when test="$isPrecedingTitle = 'true'"><xsl:value-of select="$height_effective_px - 80"/></xsl:when>
+ <xsl:otherwise><xsl:value-of select="$height_effective_px"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:value-of select="$height_effective_px_ div ($svg_height * $scale_x)"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -7550,25 +7877,25 @@
</xsl:template>
<!-- ============== -->
<!-- svg_update -->
<!-- ============== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="svg_update">
+ <xsl:template match="@*|node()" mode="svg_update">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="svg_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'image']/@href" mode="svg_update">
+ <xsl:template match="*[local-name() = 'image']/@href" mode="svg_update">
<xsl:attribute name="href" namespace="http://www.w3.org/1999/xlink">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="regex_starts_with_digit">^[0-9].*</xsl:variable>
+ <xsl:variable name="regex_starts_with_digit">^[0-9].*</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
+ <xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
<xsl:copy>
<xsl:apply-templates select="@*" mode="svg_update"/>
<xsl:variable name="viewbox_">
<xsl:call-template name="split">
<xsl:with-param name="pText" select="@viewBox"/>
@@ -7605,22 +7932,22 @@
<xsl:apply-templates mode="svg_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'svg']/@width" mode="svg_update">
+ <xsl:template match="*[local-name() = 'svg']/@width" mode="svg_update">
<!-- image[@width]/svg -->
<xsl:variable name="parent_image_width" select="normalize-space(ancestor::*[2][local-name() = 'image']/@width)"/>
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="$parent_image_width != '' and normalize-space(java:matches(java:java.lang.String.new($parent_image_width), $regex_starts_with_digit)) = 'true'"><xsl:value-of select="$parent_image_width"/></xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'svg']/@height" mode="svg_update">
+ <xsl:template match="*[local-name() = 'svg']/@height" mode="svg_update">
<!-- image[@height]/svg -->
<xsl:variable name="parent_image_height" select="normalize-space(ancestor::*[2][local-name() = 'image']/@height)"/>
<xsl:attribute name="height">
<xsl:choose>
<xsl:when test="$parent_image_height != '' and normalize-space(java:matches(java:java.lang.String.new($parent_image_height), $regex_starts_with_digit)) = 'true'"><xsl:value-of select="$parent_image_height"/></xsl:when>
@@ -7628,21 +7955,21 @@
</xsl:choose>
</xsl:attribute>
</xsl:template>
<!-- regex for 'display: inline-block;' -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="regex_svg_style_notsupported">display(\s|\h)*:(\s|\h)*inline-block(\s|\h)*;</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'svg']//*[local-name() = 'style']/text()" mode="svg_update">
+ <xsl:variable name="regex_svg_style_notsupported">display(\s|\h)*:(\s|\h)*inline-block(\s|\h)*;</xsl:variable>
+ <xsl:template match="*[local-name() = 'svg']//*[local-name() = 'style']/text()" mode="svg_update">
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.), $regex_svg_style_notsupported, '')"/>
</xsl:template>
<!-- replace
stroke="rgba(r, g, b, alpha)" to
stroke="rgb(r,g,b)" stroke-opacity="alpha", and
fill="rgba(r, g, b, alpha)" to
fill="rgb(r,g,b)" fill-opacity="alpha" -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*[local-name() = 'stroke' or local-name() = 'fill'][starts-with(normalize-space(.), 'rgba')]" mode="svg_update">
+ <xsl:template match="@*[local-name() = 'stroke' or local-name() = 'fill'][starts-with(normalize-space(.), 'rgba')]" mode="svg_update">
<xsl:variable name="components_">
<xsl:call-template name="split">
<xsl:with-param name="pText" select="substring-before(substring-after(., '('), ')')"/>
<xsl:with-param name="sep" select="','"/>
</xsl:call-template>
@@ -7656,47 +7983,47 @@
<!-- ============== -->
<!-- END: svg_update -->
<!-- ============== -->
<!-- image with svg and emf -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
<xsl:for-each select="*[local-name() = 'svg']">
<xsl:call-template name="image_svg">
<xsl:with-param name="name" select="$name"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<!-- For the structures like: <dt><image src="" mimetype="image/svg+xml" height="" width=""><svg xmlns="http://www.w3.org/2000/svg" ... -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() != 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
+ <xsl:template match="*[local-name() != 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
<xsl:for-each select="*[local-name() = 'svg']">
<xsl:call-template name="image_svg"/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
<xsl:variable name="svg_content" select="document(@src)"/>
<xsl:variable name="name" select="ancestor::*[local-name() = 'figure']/*[local-name() = 'name']"/>
<xsl:for-each select="xalan:nodeset($svg_content)/node()">
<xsl:call-template name="image_svg">
<xsl:with-param name="name" select="$name"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="svg_remove_a">
+ <xsl:template match="@*|node()" mode="svg_remove_a">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="svg_remove_a"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'a']" mode="svg_remove_a">
+ <xsl:template match="*[local-name() = 'a']" mode="svg_remove_a">
<xsl:apply-templates mode="svg_remove_a"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'a']" mode="svg_imagemap_links">
+ <xsl:template match="*[local-name() = 'a']" mode="svg_imagemap_links">
<xsl:param name="scale"/>
<xsl:variable name="dest">
<xsl:choose>
<xsl:when test="starts-with(@href, '#')">
<xsl:value-of select="substring-after(@href, '#')"/>
@@ -7765,11 +8092,11 @@
<xsl:with-param name="dest" select="$dest"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertSVGMapLink">
+ <xsl:template name="insertSVGMapLink">
<xsl:param name="left"/>
<xsl:param name="top"/>
<xsl:param name="width"/>
<xsl:param name="height"/>
<xsl:param name="dest"/>
@@ -7794,50 +8121,50 @@
<!-- =================== -->
<!-- End SVG images processing -->
<!-- =================== -->
<!-- ignore emf processing (Apache FOP doesn't support EMF) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'emf']"/>
+ <xsl:template match="*[local-name() = 'emf']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
<xsl:apply-templates mode="contents"/>
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name'] | *[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
+ <xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement' or local-name() = 'sourcecode']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
+ <xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement' or local-name() = 'sourcecode']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="bookmarks" priority="3"/>
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="bookmarks" priority="3"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="node()" mode="contents">
+ <xsl:template match="node()" mode="contents">
<xsl:apply-templates mode="contents"/>
</xsl:template>
<!-- special case: ignore preface/section-title and sections/section-title without @displayorder -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preface' or local-name() = 'sections']/*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" priority="3" mode="contents"/>
+ <xsl:template match="*[local-name() = 'preface' or local-name() = 'sections']/*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" priority="3" mode="contents"/>
<!-- process them by demand (mode="contents_no_displayorder") -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" mode="contents_no_displayorder">
+ <xsl:template match="*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" mode="contents_no_displayorder">
<xsl:call-template name="contents_section-title"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'section-title']" mode="contents_in_clause">
+ <xsl:template match="*[local-name() = 'p'][@type = 'section-title']" mode="contents_in_clause">
<xsl:call-template name="contents_section-title"/>
</xsl:template>
<!-- special case: ignore section-title if @depth different than @depth of parent clause, or @depth of parent clause = 1 -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'clause']/*[local-name() = 'p'][@type = 'section-title' and (@depth != ../*[local-name() = 'title']/@depth or ../*[local-name() = 'title']/@depth = 1)]" priority="3" mode="contents"/>
+ <xsl:template match="*[local-name() = 'clause']/*[local-name() = 'p'][@type = 'section-title' and (@depth != ../*[local-name() = 'title']/@depth or ../*[local-name() = 'title']/@depth = 1)]" priority="3" mode="contents"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="2" name="contents_section-title" mode="contents">
+ <xsl:template match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="2" name="contents_section-title" mode="contents">
<xsl:variable name="level">
<xsl:call-template name="getLevel">
<xsl:with-param name="depth" select="@depth"/>
</xsl:call-template>
</xsl:variable>
@@ -7896,38 +8223,38 @@
</title>
</item>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="node()" mode="bookmarks">
+ <xsl:template match="node()" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
+ <xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
<xsl:apply-templates select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/>
+ <xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references']/*[local-name() = 'bibitem']" mode="contents"/>
+ <xsl:template match="*[local-name() = 'references']/*[local-name() = 'bibitem']" mode="contents"/>
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="contents">
+ <xsl:template match="*[local-name() = 'span']" mode="contents">
<xsl:apply-templates mode="contents"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem']" mode="bookmarks">
+ <xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
</xsl:template>
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="bookmarks">
+ <xsl:template match="*[local-name() = 'span']" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
</xsl:template>
<!-- Bookmarks -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="addBookmarks">
+ <xsl:template name="addBookmarks">
<xsl:param name="contents"/>
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
<xsl:if test="$contents_nodes//item">
<fo:bookmark-tree>
<xsl:choose>
@@ -7940,11 +8267,11 @@
<fo:bookmark-title>collection.pdf</fo:bookmark-title>
</fo:bookmark>
</xsl:if>
<xsl:for-each select="$contents_nodes/doc">
- <fo:bookmark internal-destination="{contents/item[1]/@id}" starting-state="hide">
+ <fo:bookmark internal-destination="{contents/item[@display = 'true'][1]/@id}" starting-state="hide">
<xsl:if test="@bundle = 'true'">
<xsl:attribute name="internal-destination"><xsl:value-of select="@firstpage_id"/></xsl:attribute>
</xsl:if>
<fo:bookmark-title>
<xsl:choose>
@@ -8026,11 +8353,11 @@
</fo:bookmark-tree>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertFigureBookmarks">
+ <xsl:template name="insertFigureBookmarks">
<xsl:param name="contents"/>
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
<xsl:if test="$contents_nodes/figure">
<fo:bookmark internal-destination="{$contents_nodes/figure[1]/@id}" starting-state="hide">
<fo:bookmark-title>Figures</fo:bookmark-title>
@@ -8061,11 +8388,11 @@
</fo:bookmark>
</xsl:if>
</xsl:template> <!-- insertFigureBookmarks -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTableBookmarks">
+ <xsl:template name="insertTableBookmarks">
<xsl:param name="contents"/>
<xsl:param name="lang"/>
<xsl:variable name="contents_nodes" select="xalan:nodeset($contents)"/>
<xsl:if test="$contents_nodes/table">
<fo:bookmark internal-destination="{$contents_nodes/table[1]/@id}" starting-state="hide">
@@ -8105,11 +8432,11 @@
</xsl:if>
</xsl:template> <!-- insertTableBookmarks -->
<!-- End Bookmarks -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLangVersion">
+ <xsl:template name="getLangVersion">
<xsl:param name="lang"/>
<xsl:param name="doctype" select="''"/>
<xsl:param name="title" select="''"/>
<xsl:choose>
<xsl:when test="$lang = 'en'">
@@ -8121,11 +8448,11 @@
<xsl:when test="$lang = 'de'">Deutsche</xsl:when>
<xsl:otherwise><xsl:value-of select="$lang"/> version</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="item" mode="bookmark">
+ <xsl:template match="item" mode="bookmark">
<xsl:choose>
<xsl:when test="@id != ''">
<fo:bookmark internal-destination="{@id}" starting-state="hide">
<fo:bookmark-title>
<xsl:if test="@section != ''">
@@ -8149,59 +8476,59 @@
<xsl:apply-templates mode="bookmark"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="title" mode="bookmark"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="bookmark"/>
+ <xsl:template match="title" mode="bookmark"/>
+ <xsl:template match="text()" mode="bookmark"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="figure-name-style">
<xsl:call-template name="refine_figure-name-style"/>
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'note']"/>
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/>
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'note'][@type = 'units'] | *[local-name() = 'image']/*[local-name() = 'note'][@type = 'units']" priority="2">
+ <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note'][@type = 'units'] | *[local-name() = 'image']/*[local-name() = 'note'][@type = 'units']" priority="2">
<fo:block text-align="right" keep-with-next="always">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ====== -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'title']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'title']" mode="contents_item">
<xsl:param name="mode">bookmarks</xsl:param>
<xsl:apply-templates mode="contents_item">
<xsl:with-param name="mode" select="$mode"/>
</xsl:apply-templates>
<!-- <xsl:text> </xsl:text> -->
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getSection">
+ <xsl:template name="getSection">
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getName">
+ <xsl:template name="getName">
<xsl:choose>
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
<xsl:copy-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/following-sibling::node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="*[local-name() = 'title']/node()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTitleAsListItem">
+ <xsl:template name="insertTitleAsListItem">
<xsl:param name="provisional-distance-between-starts" select="'9.5mm'"/>
<xsl:variable name="section">
<xsl:for-each select="..">
<xsl:call-template name="getSection"/>
</xsl:for-each>
@@ -8228,80 +8555,80 @@
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="extractSection">
+ <xsl:template name="extractSection">
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="extractTitle">
+ <xsl:template name="extractTitle">
<xsl:choose>
<xsl:when test="*[local-name() = 'tab']">
<xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn']" mode="contents"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn']" mode="bookmarks"/>
+ <xsl:template match="*[local-name() = 'fn']" mode="contents"/>
+ <xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn']" mode="contents_item"/>
+ <xsl:template match="*[local-name() = 'fn']" mode="contents_item"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
+ <xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'review']" mode="contents_item"/>
+ <xsl:template match="*[local-name() = 'review']" mode="contents_item"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'tab']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'tab']" mode="contents_item">
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'strong']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'strong']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'em']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'em']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sub']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'sub']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sup']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'sup']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'stem']" mode="contents_item">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'br']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'br']" mode="contents_item">
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'name']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'name']" mode="contents_item">
<xsl:param name="mode">bookmarks</xsl:param>
<xsl:apply-templates mode="contents_item">
<xsl:with-param name="mode" select="$mode"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'add']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'add']" mode="contents_item">
<xsl:param name="mode">bookmarks</xsl:param>
<xsl:choose>
<xsl:when test="starts-with(text(), $ace_tag)">
<xsl:if test="$mode = 'contents'">
<xsl:copy>
@@ -8311,44 +8638,44 @@
</xsl:when>
<xsl:otherwise><xsl:apply-templates mode="contents_item"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="contents_item">
+ <xsl:template match="text()" mode="contents_item">
<xsl:variable name="text">
<!-- to split by '_' and other chars -->
<text><xsl:call-template name="add-zero-spaces-java"/></text>
</xsl:variable>
<xsl:for-each select="xalan:nodeset($text)/text/text()">
<xsl:call-template name="keep_together_standard_number"/>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="contents_item" priority="2">
+ <xsl:template match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="contents_item" priority="2">
<xsl:value-of select="."/>
</xsl:template>
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="contents_item">
+ <xsl:template match="*[local-name() = 'span']" mode="contents_item">
<xsl:apply-templates mode="contents_item"/>
</xsl:template>
<!-- =============== -->
<!-- sourcecode -->
<!-- =============== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
+ <xsl:variable name="source-highlighter-css_" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'source-highlighter-css']"/>
+ <xsl:variable name="sourcecode_css_" select="java:org.metanorma.fop.Util.parseCSS($source-highlighter-css_)"/>
+ <xsl:variable name="sourcecode_css" select="xalan:nodeset($sourcecode_css_)"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'property']" mode="css">
+ <xsl:template match="*[local-name() = 'property']" mode="css">
<xsl:attribute name="{@name}">
<xsl:value-of select="@value"/>
</xsl:attribute>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="get_sourcecode_attributes">
+ <xsl:template name="get_sourcecode_attributes">
<xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
<xsl:variable name="_font-size">
<!-- inherit -->
@@ -8372,11 +8699,11 @@
</xsl:if>
<xsl:apply-templates select="$sourcecode_css//class[@name = 'sourcecode']" mode="css"/>
</xsl:element>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sourcecode']" name="sourcecode">
+ <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
<xsl:variable name="sourcecode_attributes">
<xsl:call-template name="get_sourcecode_attributes"/>
</xsl:variable>
@@ -8443,11 +8770,11 @@
</fo:block-container>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sourcecode']/text() | *[local-name()='sourcecode']//*[local-name()='span']/text()" priority="2">
+ <xsl:template match="*[local-name()='sourcecode']/text() | *[local-name()='sourcecode']//*[local-name()='span']/text()" priority="2">
<xsl:choose>
<!-- disabled -->
<xsl:when test="1 = 2 and normalize-space($syntax-highlight) = 'true' and normalize-space(../@lang) != ''"> <!-- condition for turn on of highlighting -->
<xsl:variable name="syntax" select="java:org.metanorma.fop.Util.syntaxHighlight(., ../@lang)"/>
<xsl:choose>
@@ -8464,11 +8791,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- add sourcecode highlighting -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sourcecode']//*[local-name()='span'][@class]" priority="2">
+ <xsl:template match="*[local-name()='sourcecode']//*[local-name()='span'][@class]" priority="2">
<xsl:variable name="class" select="@class"/>
<!-- Example: <1> -->
<xsl:variable name="is_callout">
<xsl:if test="parent::*[local-name() = 'dt']">
@@ -8491,11 +8818,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- outer table with line numbers for sourcecode -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] | -->
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] | -->
<fo:block>
<fo:table width="100%" table-layout="fixed">
<xsl:copy-of select="@id"/>
<fo:table-column column-width="8%"/>
<fo:table-column column-width="92%"/>
@@ -8503,20 +8830,20 @@
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']/*[local-name() = 'tbody']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']/*[local-name() = 'tbody'] | -->
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']/*[local-name() = 'tbody']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']/*[local-name() = 'tbody'] | -->
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr'] | -->
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr'] | -->
<fo:table-row>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
<!-- first td with line numbers -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][not(preceding-sibling::*)]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][not(preceding-sibling::*)]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
<fo:table-cell>
<fo:block>
<!-- set attibutes for line numbers - same as sourcecode -->
<xsl:variable name="sourcecode_attributes">
@@ -8534,20 +8861,20 @@
</fo:block>
</fo:table-cell>
</xsl:template>
<!-- second td with sourcecode -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
+ <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']/*[local-name()='td'][preceding-sibling::*]" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode'] -->
<fo:table-cell>
<fo:block role="SKIP">
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
<!-- END outer table with line numbers for sourcecode -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add_spaces_to_sourcecode">
+ <xsl:template name="add_spaces_to_sourcecode">
<xsl:variable name="text_step1">
<xsl:call-template name="add-zero-spaces-equal"/>
</xsl:variable>
<xsl:variable name="text_step2">
<xsl:call-template name="add-zero-spaces-java">
@@ -8581,25 +8908,25 @@
</xsl:choose>
</xsl:for-each>
</xsl:template> <!-- add_spaces_to_sourcecode -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="interspers_tag_open">###interspers123###</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="interspers_tag_close">###/interspers123###</xsl:variable>
+ <xsl:variable name="interspers_tag_open">###interspers123###</xsl:variable>
+ <xsl:variable name="interspers_tag_close">###/interspers123###</xsl:variable>
<!-- split string by separator for interspers -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="split_for_interspers">
+ <xsl:template name="split_for_interspers">
<xsl:param name="pText" select="."/>
<xsl:param name="sep" select="','"/>
<!-- word with length more than 30 will be interspersed with zero-width space -->
<xsl:variable name="regex" select="concat('([^', $zero_width_space, ']{31,})')"/> <!-- sequence of characters (more 31), that doesn't contains zero-width space -->
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new($pText),$regex,concat($interspers_tag_open,'$1',$interspers_tag_close))"/>
<xsl:call-template name="replace_tag_interspers">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</xsl:template> <!-- end: split string by separator for interspers -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="replace_tag_interspers">
+ <xsl:template name="replace_tag_interspers">
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text, $interspers_tag_open)">
<xsl:value-of select="substring-before($text, $interspers_tag_open)"/>
<xsl:variable name="text_after" select="substring-after($text, $interspers_tag_open)"/>
@@ -8613,11 +8940,11 @@
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- insert 'char' between each character in the string -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="interspers">
+ <xsl:template name="interspers">
<xsl:param name="str"/>
<xsl:param name="char" select="$zero_width_space"/>
<xsl:if test="$str != ''">
<xsl:value-of select="substring($str, 1, 1)"/>
@@ -8631,21 +8958,21 @@
<xsl:with-param name="char" select="$char"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="interspers-java">
+ <xsl:template name="interspers-java">
<xsl:param name="str"/>
<xsl:param name="char" select="$zero_width_space"/>
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($str),'([^ -.:=_—])',concat('$1', $char))"/> <!-- insert $char after each char excep space, - . : = _ etc. -->
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="syntax_highlight">
+ <xsl:template match="*" mode="syntax_highlight">
<xsl:apply-templates mode="syntax_highlight"/>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="syntax_highlight_styles_">
+ <xsl:variable name="syntax_highlight_styles_">
<style class="hljs-addition" xsl:use-attribute-sets="hljs-addition"/>
<style class="hljs-attr" xsl:use-attribute-sets="hljs-attr"/>
<style class="hljs-attribute" xsl:use-attribute-sets="hljs-attribute"/>
<style class="hljs-built_in" xsl:use-attribute-sets="hljs-built_in"/>
<style class="hljs-bullet" xsl:use-attribute-sets="hljs-bullet"/>
@@ -8691,13 +9018,13 @@
<style class="hljs-title_and_function_" xsl:use-attribute-sets="hljs-title_and_function_"/>
<style class="hljs-type" xsl:use-attribute-sets="hljs-type"/>
<style class="hljs-variable" xsl:use-attribute-sets="hljs-variable"/>
<style class="hljs-variable_and_language_" xsl:use-attribute-sets="hljs-variable_and_language_"/>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="syntax_highlight_styles" select="xalan:nodeset($syntax_highlight_styles_)"/>
+ <xsl:variable name="syntax_highlight_styles" select="xalan:nodeset($syntax_highlight_styles_)"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="span" mode="syntax_highlight" priority="2">
+ <xsl:template match="span" mode="syntax_highlight" priority="2">
<!-- <fo:inline color="green" font-style="italic"><xsl:apply-templates mode="syntax_highlight"/></fo:inline> -->
<fo:inline>
<xsl:variable name="classes_">
<xsl:call-template name="split">
<xsl:with-param name="pText" select="@class"/>
@@ -8749,17 +9076,17 @@
</xsl:for-each> -->
<xsl:apply-templates mode="syntax_highlight"/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="syntax_highlight" priority="2">
+ <xsl:template match="text()" mode="syntax_highlight" priority="2">
<xsl:call-template name="add_spaces_to_sourcecode"/>
</xsl:template>
<!-- end mode="syntax_highlight" -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sourcecode']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
@@ -8769,11 +9096,11 @@
<!-- =============== -->
<!-- =============== -->
<!-- pre -->
<!-- =============== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='pre']" name="pre">
+ <xsl:template match="*[local-name()='pre']" name="pre">
<fo:block xsl:use-attribute-sets="pre-style">
<xsl:copy-of select="@id"/>
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'sourcecode'][@linenums = 'true'] and ancestor::*[local-name()='td'][1][not(preceding-sibling::*)]"> <!-- pre in the first td in the table with @linenums = 'true' -->
@@ -8800,70 +9127,70 @@
<!-- =============== -->
<!-- ========== -->
<!-- permission -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'permission']">
+ <xsl:template match="*[local-name() = 'permission']">
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
<xsl:apply-templates select="*[local-name()='name']"/>
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'permission']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="permission-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'permission']/*[local-name() = 'label']">
+ <xsl:template match="*[local-name() = 'permission']/*[local-name() = 'label']">
<fo:block xsl:use-attribute-sets="permission-label-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
<!-- ========== -->
<!-- ========== -->
<!-- requirement -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'requirement']">
+ <xsl:template match="*[local-name() = 'requirement']">
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
<xsl:apply-templates select="*[local-name()='name']"/>
<xsl:apply-templates select="*[local-name()='label']"/>
<xsl:apply-templates select="@obligation"/>
<xsl:apply-templates select="*[local-name()='subject']"/>
<xsl:apply-templates select="node()[not(local-name() = 'name') and not(local-name() = 'label') and not(local-name() = 'subject')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'requirement']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="requirement-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'requirement']/*[local-name() = 'label']">
+ <xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']">
<fo:block xsl:use-attribute-sets="requirement-label-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'requirement']/@obligation">
+ <xsl:template match="*[local-name() = 'requirement']/@obligation">
<fo:block>
<fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'requirement']/*[local-name() = 'subject']" priority="2">
+ <xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" priority="2">
<fo:block xsl:use-attribute-sets="subject-style">
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
</fo:block>
</xsl:template>
@@ -8871,27 +9198,27 @@
<!-- ========== -->
<!-- ========== -->
<!-- recommendation -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'recommendation']">
+ <xsl:template match="*[local-name() = 'recommendation']">
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
<xsl:apply-templates select="*[local-name()='name']"/>
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:block xsl:use-attribute-sets="recommendation-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
+ <xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
<fo:block xsl:use-attribute-sets="recommendation-label-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -8899,57 +9226,57 @@
<!-- ========== -->
<!-- ========== -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'subject']">
+ <xsl:template match="*[local-name() = 'subject']">
<fo:block xsl:use-attribute-sets="subject-style">
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'div']">
+ <xsl:template match="*[local-name() = 'div']">
<fo:block><xsl:apply-templates/></fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
+ <xsl:template match="*[local-name() = 'inherit'] | *[local-name() = 'component'][@class = 'inherit'] | *[local-name() = 'div'][@type = 'requirement-inherit'] | *[local-name() = 'div'][@type = 'recommendation-inherit'] | *[local-name() = 'div'][@type = 'permission-inherit']">
<fo:block xsl:use-attribute-sets="inherit-style">
<xsl:text>Dependency </xsl:text><xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
+ <xsl:template match="*[local-name() = 'description'] | *[local-name() = 'component'][@class = 'description'] | *[local-name() = 'div'][@type = 'requirement-description'] | *[local-name() = 'div'][@type = 'recommendation-description'] | *[local-name() = 'div'][@type = 'permission-description']">
<fo:block xsl:use-attribute-sets="description-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
+ <xsl:template match="*[local-name() = 'specification'] | *[local-name() = 'component'][@class = 'specification'] | *[local-name() = 'div'][@type = 'requirement-specification'] | *[local-name() = 'div'][@type = 'recommendation-specification'] | *[local-name() = 'div'][@type = 'permission-specification']">
<fo:block xsl:use-attribute-sets="specification-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
+ <xsl:template match="*[local-name() = 'measurement-target'] | *[local-name() = 'component'][@class = 'measurement-target'] | *[local-name() = 'div'][@type = 'requirement-measurement-target'] | *[local-name() = 'div'][@type = 'recommendation-measurement-target'] | *[local-name() = 'div'][@type = 'permission-measurement-target']">
<fo:block xsl:use-attribute-sets="measurement-target-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
+ <xsl:template match="*[local-name() = 'verification'] | *[local-name() = 'component'][@class = 'verification'] | *[local-name() = 'div'][@type = 'requirement-verification'] | *[local-name() = 'div'][@type = 'recommendation-verification'] | *[local-name() = 'div'][@type = 'permission-verification']">
<fo:block xsl:use-attribute-sets="verification-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
+ <xsl:template match="*[local-name() = 'import'] | *[local-name() = 'component'][@class = 'import'] | *[local-name() = 'div'][@type = 'requirement-import'] | *[local-name() = 'div'][@type = 'recommendation-import'] | *[local-name() = 'div'][@type = 'permission-import']">
<fo:block xsl:use-attribute-sets="import-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
+ <xsl:template match="*[local-name() = 'div'][starts-with(@type, 'requirement-component')] | *[local-name() = 'div'][starts-with(@type, 'recommendation-component')] | *[local-name() = 'div'][starts-with(@type, 'permission-component')]">
<fo:block xsl:use-attribute-sets="component-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -8957,11 +9284,11 @@
<!-- ========== -->
<!-- ========== -->
<!-- requirement, recommendation, permission table -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
+ <xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt" role="SKIP">
<xsl:if test="ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
<xsl:attribute name="margin-bottom">0pt</xsl:attribute>
</xsl:if>
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
@@ -8991,23 +9318,23 @@
</xsl:if>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']" mode="requirement">
+ <xsl:template match="*[local-name()='thead']" mode="requirement">
<fo:table-header>
<xsl:apply-templates mode="requirement"/>
</fo:table-header>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']" mode="requirement">
+ <xsl:template match="*[local-name()='tbody']" mode="requirement">
<fo:table-body>
<xsl:apply-templates mode="requirement"/>
</fo:table-body>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tr']" mode="requirement">
+ <xsl:template match="*[local-name()='tr']" mode="requirement">
<fo:table-row height="7mm" border-bottom="0.5pt solid grey">
<xsl:if test="parent::*[local-name()='thead'] or starts-with(*[local-name()='td' or local-name()='th'][1], 'Requirement ') or starts-with(*[local-name()='td' or local-name()='th'][1], 'Recommendation ')">
<xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -9015,11 +9342,11 @@
<xsl:apply-templates mode="requirement"/>
</fo:table-row>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='th']" mode="requirement">
+ <xsl:template match="*[local-name()='th']" mode="requirement">
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
<xsl:call-template name="setTextAlignment">
<xsl:with-param name="default">left</xsl:with-param>
</xsl:call-template>
@@ -9029,11 +9356,11 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='td']" mode="requirement">
+ <xsl:template match="*[local-name()='td']" mode="requirement">
<fo:table-cell text-align="{@align}" display-align="center" padding="1mm" padding-left="2mm"> <!-- border="0.5pt solid black" -->
<xsl:if test="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
<xsl:attribute name="padding">0mm</xsl:attribute>
<xsl:attribute name="padding-left">0mm</xsl:attribute>
</xsl:if>
@@ -9051,18 +9378,18 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
+ <xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
<fo:block font-size="11pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
+ <xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -9070,30 +9397,30 @@
<!-- ========== -->
<!-- ====== -->
<!-- termexample -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termexample']">
+ <xsl:template match="*[local-name() = 'termexample']">
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
<xsl:call-template name="refine_termexample-style"/>
<xsl:call-template name="setBlockSpanAll"/>
<xsl:apply-templates select="*[local-name()='name']"/>
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termexample']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']">
<xsl:if test="normalize-space() != ''">
<fo:inline xsl:use-attribute-sets="termexample-name-style">
<xsl:call-template name="refine_termexample-name-style"/>
<xsl:apply-templates/>
</fo:inline>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termexample']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
<xsl:variable name="element">inline
</xsl:variable>
<xsl:choose>
@@ -9123,11 +9450,11 @@
text line 2
4. EXAMPLE
text line 1
text line 2
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'example']">
+ <xsl:template match="*[local-name() = 'example']">
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
@@ -9151,13 +9478,21 @@
</xsl:apply-templates>
</fo:block>
<fo:block-container xsl:use-attribute-sets="example-body-style" role="SKIP">
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
- <xsl:apply-templates select="node()[not(local-name() = 'name')]">
- <xsl:with-param name="fo_element" select="$fo_element"/>
- </xsl:apply-templates>
+ <xsl:variable name="example_body">
+ <xsl:apply-templates select="node()[not(local-name() = 'name')]">
+ <xsl:with-param name="fo_element" select="$fo_element"/>
+ </xsl:apply-templates>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="xalan:nodeset($example_body)/*">
+ <xsl:copy-of select="$example_body"/>
+ </xsl:when>
+ <xsl:otherwise><fo:block/><!-- prevent empty block-container --></xsl:otherwise>
+ </xsl:choose>
</fo:block-container>
</fo:block-container>
</xsl:when> <!-- end block -->
<xsl:when test="contains(normalize-space($fo_element), 'list')">
@@ -9218,11 +9553,11 @@
</xsl:choose>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'example']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']">
<xsl:param name="fo_element">block</xsl:param>
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'appendix']">
<fo:inline>
@@ -9242,17 +9577,17 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
<fo:inline xsl:use-attribute-sets="example-name-style">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'example']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
<xsl:param name="fo_element">block</xsl:param>
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:variable name="element">
@@ -9292,11 +9627,11 @@
<!-- ====== -->
<!-- termsource -->
<!-- origin -->
<!-- modification -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termsource']" name="termsource">
+ <xsl:template match="*[local-name() = 'termsource']" name="termsource">
<fo:block xsl:use-attribute-sets="termsource-style">
<xsl:call-template name="refine_termsource-style"/>
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
@@ -9331,28 +9666,28 @@
</xsl:otherwise>
</xsl:choose> -->
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
+ <xsl:template match="*[local-name() = 'termsource']/text()[starts-with(., '[SOURCE: Adapted from: ') or starts-with(., '[SOURCE: Quoted from: ') or starts-with(., '[SOURCE: Modified from: ')]" priority="2">
<xsl:text>[</xsl:text><xsl:value-of select="substring-after(., '[SOURCE: ')"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termsource']/text()">
+ <xsl:template match="*[local-name() = 'termsource']/text()">
<xsl:if test="normalize-space() != ''">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>
<!-- text SOURCE: -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
+ <xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
<fo:inline xsl:use-attribute-sets="termsource-text-style">
<xsl:value-of select="."/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'origin']">
+ <xsl:template match="*[local-name() = 'origin']">
<xsl:call-template name="insert_basic_link">
<xsl:with-param name="element">
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
<xsl:if test="normalize-space(@citeas) = ''">
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
@@ -9364,11 +9699,11 @@
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- not using, see https://github.com/glossarist/iev-document/issues/23 -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'modification']">
+ <xsl:template match="*[local-name() = 'modification']">
<xsl:variable name="title-modified">
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">modified</xsl:with-param>
</xsl:call-template>
</xsl:variable>
@@ -9379,15 +9714,15 @@
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:if test="normalize-space($text) != ''"><xsl:text> — </xsl:text></xsl:if></xsl:otherwise>
</xsl:choose>
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'modification']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'modification']/text()">
+ <xsl:template match="*[local-name() = 'modification']/text()">
<xsl:if test="normalize-space() != ''">
<!-- <xsl:value-of select="."/> -->
<xsl:call-template name="text"/>
</xsl:if>
</xsl:template>
@@ -9398,11 +9733,11 @@
<!-- ====== -->
<!-- qoute -->
<!-- source -->
<!-- author -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'quote']">
+ <xsl:template match="*[local-name() = 'quote']">
<fo:block-container margin-left="0mm" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
<xsl:if test="parent::*[local-name() = 'note']">
@@ -9432,11 +9767,11 @@
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'source']">
+ <xsl:template match="*[local-name() = 'source']">
<xsl:if test="../*[local-name() = 'author']">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:call-template name="insert_basic_link">
<xsl:with-param name="element">
@@ -9445,38 +9780,38 @@
</fo:basic-link>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'author']">
+ <xsl:template match="*[local-name() = 'author']">
<xsl:text>— </xsl:text>
<xsl:apply-templates/>
</xsl:template>
<!-- ====== -->
<!-- ====== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems_">
+ <xsl:variable name="bibitems_">
<xsl:for-each select="//*[local-name() = 'bibitem']">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems" select="xalan:nodeset($bibitems_)"/>
+ <xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/>
<!-- get all hidden bibitems to exclude them from eref/origin processing -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems_hidden_">
+ <xsl:variable name="bibitems_hidden_">
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
<xsl:copy-of select="."/>
</xsl:for-each>
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/>
+ <xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/>
<!-- ====== -->
<!-- eref -->
<!-- ====== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'eref']" name="eref">
+ <xsl:template match="*[local-name() = 'eref']" name="eref">
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
<xsl:choose>
<!-- <xsl:when test="$external-destination != '' or not(key('bibitems_hidden', $current_bibitemid))"> --> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
@@ -9533,22 +9868,22 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_basic_link_style">
+ <xsl:template name="refine_basic_link_style">
<xsl:attribute name="text-decoration">underline</xsl:attribute>
</xsl:template> <!-- refine_basic_link_style -->
<!-- ====== -->
<!-- END eref -->
<!-- ====== -->
<!-- Tabulation processing -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'tab']">
+ <xsl:template match="*[local-name() = 'tab']">
<!-- zero-space char -->
<xsl:variable name="depth">
<xsl:call-template name="getLevel">
<xsl:with-param name="depth" select="../@depth"/>
</xsl:call-template>
@@ -9589,22 +9924,22 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- tab -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertNonBreakSpaces">
+ <xsl:template name="insertNonBreakSpaces">
<xsl:param name="count"/>
<xsl:if test="$count > 0">
<xsl:text> </xsl:text>
<xsl:call-template name="insertNonBreakSpaces">
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Preferred, admitted, deprecated -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preferred']">
+ <xsl:template match="*[local-name() = 'preferred']">
<xsl:variable name="level">
<xsl:call-template name="getLevel"/>
</xsl:variable>
<xsl:variable name="font-size">
inherit
@@ -9625,62 +9960,62 @@
<xsl:apply-templates/>
</fo:block>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'domain']">
+ <xsl:template match="*[local-name() = 'domain']">
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admitted']">
+ <xsl:template match="*[local-name() = 'admitted']">
<fo:block xsl:use-attribute-sets="admitted-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'deprecates']">
+ <xsl:template match="*[local-name() = 'deprecates']">
<fo:block xsl:use-attribute-sets="deprecates-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setStyle_preferred">
+ <xsl:template name="setStyle_preferred">
<xsl:if test="*[local-name() = 'strong']">
<xsl:attribute name="font-weight">normal</xsl:attribute>
</xsl:if>
</xsl:template>
<!-- regarding ISO 10241-1:2011, If there is more than one preferred term, each preferred term follows the previous one on a new line. -->
<!-- in metanorma xml preferred terms delimited by semicolons -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preferred']/text()[contains(., ';')] | *[local-name() = 'preferred']/*[local-name() = 'strong']/text()[contains(., ';')]">
+ <xsl:template match="*[local-name() = 'preferred']/text()[contains(., ';')] | *[local-name() = 'preferred']/*[local-name() = 'strong']/text()[contains(., ';')]">
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.), ';', $linebreak)"/>
</xsl:template>
<!-- End Preferred, admitted, deprecated -->
<!-- ========== -->
<!-- definition -->
<!-- ========== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definition']">
+ <xsl:template match="*[local-name() = 'definition']">
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
+ <xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
+ <xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
<fo:inline> <xsl:apply-templates/></fo:inline>
<fo:block/>
</xsl:template>
<!-- ========== -->
<!-- END definition -->
<!-- ========== -->
<!-- main sections -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
+ <xsl:template match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
<fo:block>
<xsl:call-template name="setId"/>
<xsl:call-template name="sections_element_style"/>
@@ -9689,38 +10024,69 @@
</fo:block>
</xsl:template>
<!-- note: @top-level added in mode=" update_xml_step_move_pagebreak" -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']/*[local-name() = 'page_sequence']/*[not(@top-level)]" priority="2">
- <xsl:call-template name="sections_node"/>
+ <xsl:template match="*[local-name() = 'sections']/*[local-name() = 'page_sequence']/*[not(@top-level)]" priority="2">
+ <xsl:choose>
+ <xsl:when test="local-name() = 'clause' and normalize-space() = '' and count(*) = 0"/>
+ <xsl:otherwise>
+ <xsl:call-template name="sections_node"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sections_element_style">
+ <!-- page_sequence/sections/clause -->
+ <xsl:template match="*[local-name() = 'page_sequence']/*[local-name() = 'sections']/*[not(@top-level)]" priority="2">
+ <xsl:choose>
+ <xsl:when test="local-name() = 'clause' and normalize-space() = '' and count(*) = 0"/>
+ <xsl:otherwise>
+ <xsl:call-template name="sections_node"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template name="sections_element_style">
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:if test="$num = 1">
<xsl:attribute name="margin-top">20pt</xsl:attribute>
</xsl:if>
</xsl:template> <!-- sections_element_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2" name="preface_node"> <!-- /*/*[local-name() = 'preface']/* -->
+ <xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2" name="preface_node"> <!-- /*/*[local-name() = 'preface']/* -->
<fo:block break-after="page"/>
<fo:block>
<xsl:call-template name="setId"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preface']/*[local-name() = 'page_sequence']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
- <xsl:call-template name="preface_node"/>
+ <!-- preface/ page_sequence/clause -->
+ <xsl:template match="*[local-name() = 'preface']/*[local-name() = 'page_sequence']/*[not(@top-level)]" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
+ <xsl:choose>
+ <xsl:when test="local-name() = 'clause' and normalize-space() = '' and count(*) = 0"/>
+ <xsl:otherwise>
+ <xsl:call-template name="preface_node"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'clause'][normalize-space() != '' or *[local-name() = 'figure'] or @id]" name="template_clause"> <!-- if clause isn't empty -->
+ <!-- page_sequence/preface/clause -->
+ <xsl:template match="*[local-name() = 'page_sequence']/*[local-name() = 'preface']/*[not(@top-level)]" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
+ <xsl:choose>
+ <xsl:when test="local-name() = 'clause' and normalize-space() = '' and count(*) = 0"/>
+ <xsl:otherwise>
+ <xsl:call-template name="preface_node"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="*[local-name() = 'clause'][normalize-space() != '' or *[local-name() = 'figure'] or @id]" name="template_clause"> <!-- if clause isn't empty -->
<fo:block>
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
<xsl:attribute name="role">SKIP</xsl:attribute>
</xsl:if>
@@ -9732,21 +10098,21 @@
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_clause_style">
+ <xsl:template name="refine_clause_style">
</xsl:template> <!-- refine_clause_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definitions']">
+ <xsl:template match="*[local-name() = 'definitions']">
<fo:block id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'annex'][normalize-space() != '']">
+ <xsl:template match="*[local-name() = 'annex'][normalize-space() != '']">
<xsl:choose>
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
<fo:block>
<xsl:apply-templates/>
</fo:block>
@@ -9769,20 +10135,20 @@
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_annex_style">
+ <xsl:template name="refine_annex_style">
<xsl:variable name="num"><xsl:number/></xsl:variable>
<xsl:if test="$num = 1">
<xsl:attribute name="margin-top">3pt</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'review']"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
+ <xsl:template match="*[local-name() = 'review']"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
<!-- comment 2019-11-29 -->
<!-- <fo:block font-weight="bold">Review:</fo:block>
<xsl:apply-templates /> -->
<xsl:variable name="id_from" select="normalize-space(current()/@from)"/>
@@ -9802,28 +10168,28 @@
</xsl:choose>
</xsl:template>
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'review'][@type = 'other']"/>
+ <xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'name']/text()">
+ <xsl:template match="*[local-name() = 'name']/text()">
<!-- 0xA0 to space replacement -->
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
</xsl:template>
<!-- ===================================== -->
<!-- Lists processing -->
<!-- ===================================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ul_labels_">
+ <xsl:variable name="ul_labels_">
<label>•</label>
</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
+ <xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setULLabel">
+ <xsl:template name="setULLabel">
<xsl:variable name="list_level__">
<xsl:value-of select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
</xsl:variable>
<xsl:variable name="list_level_" select="number($list_level__)"/>
<xsl:variable name="list_level">
@@ -9845,16 +10211,16 @@
<xsl:otherwise>
<xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="label" mode="ul_labels">
+ <xsl:template match="label" mode="ul_labels">
<xsl:copy-of select="@*[not(local-name() = 'level')]"/>
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getListItemFormat">
+ <xsl:template name="getListItemFormat">
<!-- Example: for BSI <?list-type loweralpha?> -->
<xsl:variable name="processing_instruction_type" select="normalize-space(../preceding-sibling::*[1]/processing-instruction('list-type'))"/>
<xsl:choose>
<xsl:when test="local-name(..) = 'ul'">
<xsl:choose>
@@ -9981,11 +10347,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
+ <xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
<xsl:param name="indent">0</xsl:param>
<xsl:choose>
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
<fo:block-container role="SKIP">
<xsl:attribute name="margin-left">
@@ -10016,15 +10382,15 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list_container_style">
+ <xsl:template name="refine_list_container_style">
</xsl:template> <!-- refine_list_container_style -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
+ <xsl:template match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
<xsl:apply-templates select="*[local-name() = 'name']">
<xsl:with-param name="process">true</xsl:with-param>
</xsl:apply-templates>
@@ -10080,28 +10446,28 @@
<xsl:call-template name="note"/>
</xsl:for-each> -->
<xsl:apply-templates select="./*[local-name() = 'note']"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-style_provisional-distance-between-starts">
+ <xsl:template name="refine_list-style_provisional-distance-between-starts">
<xsl:if test="local-name() = 'ol'">
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_list-style_provisional-distance-between-starts -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
<xsl:param name="process">false</xsl:param>
<xsl:if test="$process = 'true'">
<fo:block xsl:use-attribute-sets="list-name-style">
<xsl:apply-templates/>
</fo:block>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='li']">
+ <xsl:template match="*[local-name()='li']">
<xsl:param name="indent">0</xsl:param>
<!-- <fo:list-item xsl:use-attribute-sets="list-item-style">
<fo:list-item-label end-indent="label-end()"><fo:block>x</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="list-item-body-style">
<fo:block>debug li indent=<xsl:value-of select="$indent"/></fo:block>
@@ -10151,28 +10517,28 @@
<!-- =================== -->
<!-- Index section processing -->
<!-- =================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="index" select="document($external_index)"/>
+ <xsl:variable name="index" select="document($external_index)"/>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bookmark_in_fn">
+ <xsl:variable name="bookmark_in_fn">
<xsl:for-each select="//*[local-name() = 'bookmark'][ancestor::*[local-name() = 'fn']]">
<bookmark><xsl:value-of select="@id"/></bookmark>
</xsl:for-each>
</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="index_add_id">
+ <xsl:template match="@*|node()" mode="index_add_id">
<xsl:param name="docid"/>
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="index_add_id">
<xsl:with-param name="docid" select="$docid"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref']" mode="index_add_id">
+ <xsl:template match="*[local-name() = 'xref']" mode="index_add_id">
<xsl:param name="docid"/>
<xsl:variable name="id">
<xsl:call-template name="generateIndexXrefId">
<xsl:with-param name="docid" select="$docid"/>
</xsl:call-template>
@@ -10201,24 +10567,24 @@
</xsl:apply-templates>
</xsl:copy>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="index_update">
+ <xsl:template match="@*|node()" mode="index_update">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="index_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'li']" mode="index_update">
+ <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" mode="index_update">
<xsl:copy>
<xsl:apply-templates select="@*" mode="index_update"/>
<xsl:apply-templates select="node()[1]" mode="process_li_element"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'li']/node()" mode="process_li_element" priority="2">
+ <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/node()" mode="process_li_element" priority="2">
<xsl:param name="element"/>
<xsl:param name="remove" select="'false'"/>
<xsl:param name="target"/>
<!-- <node></node> -->
<xsl:choose>
@@ -10307,22 +10673,22 @@
<xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="xref_copy">
+ <xsl:template match="@*|node()" mode="xref_copy">
<xsl:param name="target"/>
<xsl:copy>
<xsl:apply-templates select="@*" mode="xref_copy"/>
<xsl:if test="$target != '' and not(xalan:nodeset($bookmark_in_fn)//bookmark[. = $target])">
<xsl:attribute name="target"><xsl:value-of select="$target"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()" mode="xref_copy"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="generateIndexXrefId">
+ <xsl:template name="generateIndexXrefId">
<xsl:param name="docid"/>
<xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
<xsl:variable name="docid_curr">
@@ -10335,53 +10701,53 @@
</xsl:variable>
<xsl:variable name="xref_number"><xsl:number count="*[local-name() = 'xref']"/></xsl:variable>
<xsl:value-of select="concat($docid_curr, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']/*[local-name() = 'title']" priority="4">
+ <xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'title']" priority="4">
<fo:block xsl:use-attribute-sets="indexsect-title-style">
<!-- Index -->
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']/*[local-name() = 'clause']/*[local-name() = 'title']" priority="4">
+ <xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'clause']/*[local-name() = 'title']" priority="4">
<!-- Letter A, B, C, ... -->
<fo:block xsl:use-attribute-sets="indexsect-clause-title-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']/*[local-name() = 'clause']" priority="4">
+ <xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'clause']" priority="4">
<xsl:apply-templates/>
<fo:block>
<xsl:if test="following-sibling::*[local-name() = 'clause']">
<fo:block> </fo:block>
</xsl:if>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
+ <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
+ <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
<xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
<fo:block start-indent="{5 * $level}mm" text-indent="-5mm">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
+ <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
<!-- to split by '_' and other chars -->
<xsl:call-template name="add-zero-spaces-java"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/>
+ <xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bookmark']" name="bookmark">
+ <xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
<fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
</xsl:template>
@@ -10390,11 +10756,11 @@
<!-- =================== -->
<!-- ============ -->
<!-- errata -->
<!-- ============ -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'errata']">
+ <xsl:template match="*[local-name() = 'errata']">
<!-- <row>
<date>05-07-2013</date>
<type>Editorial</type>
<change>Changed CA-9 Priority Code from P1 to P2 in <xref target="tabled2"/>.</change>
<pages>D-3</pages>
@@ -10416,17 +10782,17 @@
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'errata']/*[local-name() = 'row']">
+ <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
<fo:table-row>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
+ <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
<fo:block role="SKIP"><xsl:apply-templates/></fo:block>
</fo:table-cell>
</xsl:template>
<!-- ============ -->
@@ -10438,29 +10804,29 @@
<!-- ======================= -->
<!-- ========================================================== -->
<!-- Reference sections (Normative References and Bibliography) -->
<!-- ========================================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
+ <xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
+ <xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/>
</xsl:template>
<!-- don't display bibitem with @id starts with '_hidden', that was introduced for references integrity -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
+ <xsl:template match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
<!-- Normative references -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references'][@normative='true']" priority="2">
+ <xsl:template match="*[local-name() = 'references'][@normative='true']" priority="2">
<fo:block id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- Bibliography (non-normative references) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references']">
+ <xsl:template match="*[local-name() = 'references']">
<xsl:if test="not(ancestor::*[local-name() = 'annex'])">
</xsl:if>
<!-- <xsl:if test="ancestor::*[local-name() = 'annex']">
@@ -10478,35 +10844,35 @@
</fo:block>
</xsl:template> <!-- references -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem']">
+ <xsl:template match="*[local-name() = 'bibitem']">
<xsl:call-template name="bibitem"/>
</xsl:template>
<!-- Normative references -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
+ <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-normative-style">
<xsl:call-template name="processBibitem"/>
</fo:block>
</xsl:template> <!-- bibitem -->
<!-- Bibliography (non-normative references) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
+ <xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
<xsl:param name="skip" select="normalize-space(preceding-sibling::*[1][local-name() = 'bibitem'] and 1 = 1)"/> <!-- current bibiitem is non-first -->
<fo:block id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-style">
<xsl:call-template name="processBibitem"/>
</fo:block>
</xsl:template> <!-- references[not(@normative='true')]/bibitem -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertListItem_Bibitem">
+ <xsl:template name="insertListItem_Bibitem">
<xsl:choose>
<xsl:when test="@hidden = 'true'"><!-- skip --></xsl:when>
<xsl:otherwise>
<fo:list-item id="{@id}" xsl:use-attribute-sets="bibitem-non-normative-list-item-style">
@@ -10532,11 +10898,11 @@
<xsl:apply-templates select="following-sibling::*[1][local-name() = 'bibitem']">
<xsl:with-param name="skip">false</xsl:with-param>
</xsl:apply-templates>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processBibitem">
+ <xsl:template name="processBibitem">
<xsl:param name="biblio_tag_part">both</xsl:param>
<!-- start UNECE bibitem processing -->
<fo:inline padding-right="5mm">
<xsl:apply-templates select="*[local-name() = 'biblio-tag']">
@@ -10550,24 +10916,24 @@
<xsl:apply-templates select="un:formattedref"/>
<!-- END UNECE bibitem processing -->
</xsl:template> <!-- processBibitem (bibitem) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'title']" mode="title">
+ <xsl:template match="*[local-name() = 'title']" mode="title">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/>
+ <xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formattedref']">
+ <xsl:template match="*[local-name() = 'formattedref']">
<!-- <xsl:if test="$namespace = 'unece' or $namespace = 'unece-rec'">
<xsl:text>, </xsl:text>
</xsl:if> -->
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'biblio-tag']">
+ <xsl:template match="*[local-name() = 'biblio-tag']">
<xsl:param name="biblio_tag_part">both</xsl:param>
<xsl:choose>
<xsl:when test="$biblio_tag_part = 'first' and *[local-name() = 'tab']">
<xsl:apply-templates select="./*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
</xsl:when>
@@ -10578,11 +10944,11 @@
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'biblio-tag']/*[local-name() = 'tab']" priority="2">
+ <xsl:template match="*[local-name() = 'biblio-tag']/*[local-name() = 'tab']" priority="2">
<xsl:text> </xsl:text>
</xsl:template>
<!-- ======================= -->
<!-- END Bibliography rendering -->
@@ -10593,27 +10959,27 @@
<!-- ========================================================== -->
<!-- =================== -->
<!-- Form's elements processing -->
<!-- =================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']">
+ <xsl:template match="*[local-name() = 'form']">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'label']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
<fo:inline>
<xsl:call-template name="text_input"/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="text_input">
+ <xsl:template name="text_input">
<xsl:variable name="count">
<xsl:choose>
<xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
<xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
<xsl:otherwise>10</xsl:otherwise>
@@ -10624,21 +10990,21 @@
<xsl:with-param name="count" select="$count"/>
</xsl:call-template>
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
<xsl:variable name="caption">
<xsl:choose>
<xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
<xsl:otherwise>BUTTON</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
<fo:inline padding-right="1mm">
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
<xsl:attribute name="height">3.5mm</xsl:attribute>
<xsl:attribute name="content-width">100%</xsl:attribute>
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
@@ -10648,11 +11014,11 @@
</svg>
</fo:instream-foreign-object>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
<fo:inline padding-right="1mm">
<fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
<xsl:attribute name="height">3.5mm</xsl:attribute>
<xsl:attribute name="content-width">100%</xsl:attribute>
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
@@ -10663,17 +11029,17 @@
</svg>
</fo:instream-foreign-object>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'select']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
<fo:inline>
<xsl:call-template name="text_input"/>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'textarea']">
+ <xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
<fo:block-container border="1pt solid black" width="50%">
<fo:block> </fo:block>
</fo:block-container>
</xsl:template>
@@ -10683,11 +11049,11 @@
<!-- =================== -->
<!-- Table of Contents (ToC) processing -->
<!-- =================== -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="toc_level">
+ <xsl:variable name="toc_level">
<!-- https://www.metanorma.org/author/ref/document-attributes/ -->
<xsl:variable name="pdftoclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'PDF TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- :toclevels-pdf Number of table of contents levels to render in PDF output; used to override :toclevels:-->
<xsl:variable name="toclevels" select="normalize-space(//*[local-name() = 'metanorma-extension']/*[local-name() = 'presentation-metadata'][*[local-name() = 'name']/text() = 'TOC Heading Levels']/*[local-name() = 'value'])"/> <!-- Number of table of contents levels to render -->
<xsl:choose>
<xsl:when test="$pdftoclevels != ''"><xsl:value-of select="number($pdftoclevels)"/></xsl:when> <!-- if there is value in xml -->
@@ -10696,11 +11062,11 @@
3
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'toc']">
+ <xsl:template match="*[local-name() = 'toc']">
<xsl:param name="colwidths"/>
<xsl:variable name="colwidths_">
<xsl:choose>
<xsl:when test="not($colwidths)">
<xsl:variable name="toc_table_simple">
@@ -10729,21 +11095,21 @@
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'toc']//*[local-name() = 'li']" priority="2">
+ <xsl:template match="*[local-name() = 'toc']//*[local-name() = 'li']" priority="2">
<fo:table-row min-height="5mm">
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'toc']//*[local-name() = 'li']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'toc']//*[local-name() = 'li']/*[local-name() = 'p']">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'toc']//*[local-name() = 'xref']" priority="3">
+ <xsl:template match="*[local-name() = 'toc']//*[local-name() = 'xref']" priority="3">
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
<xsl:variable name="target" select="@target"/>
<xsl:for-each select="*[local-name() = 'tab']">
<xsl:variable name="current_id" select="generate-id()"/>
<fo:table-cell>
@@ -10778,24 +11144,24 @@
</xsl:template>
<!-- ================================== -->
<!-- calculate ToC table columns widths -->
<!-- ================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="toc_table_width">
+ <xsl:template match="*" mode="toc_table_width">
<xsl:apply-templates mode="toc_table_width"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'clause'][@type = 'toc']/*[local-name() = 'title']" mode="toc_table_width"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'clause'][not(@type = 'toc')]/*[local-name() = 'title']" mode="toc_table_width"/>
+ <xsl:template match="*[local-name() = 'clause'][@type = 'toc']/*[local-name() = 'title']" mode="toc_table_width"/>
+ <xsl:template match="*[local-name() = 'clause'][not(@type = 'toc')]/*[local-name() = 'title']" mode="toc_table_width"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'li']" mode="toc_table_width">
+ <xsl:template match="*[local-name() = 'li']" mode="toc_table_width">
<tr>
<xsl:apply-templates mode="toc_table_width"/>
</tr>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref']" mode="toc_table_width">
+ <xsl:template match="*[local-name() = 'xref']" mode="toc_table_width">
<!-- <xref target="cgpm9th1948r6">1.6.3<tab/>“9th CGPM, 1948:<tab/>decision to establish the SI”</xref> -->
<xsl:for-each select="*[local-name() = 'tab']">
<xsl:variable name="current_id" select="generate-id()"/>
<td>
<xsl:for-each select="following-sibling::node()[not(self::*[local-name() = 'tab']) and preceding-sibling::*[local-name() = 'tab'][1][generate-id() = $current_id]]">
@@ -10813,11 +11179,11 @@
<!-- =================== -->
<!-- End Table of Contents (ToC) processing -->
<!-- =================== -->
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insert_basic_link">
+ <xsl:template name="insert_basic_link">
<xsl:param name="element"/>
<xsl:variable name="element_node" select="xalan:nodeset($element)"/>
<xsl:variable name="external-destination" select="normalize-space(count($element_node/fo:basic-link/@external-destination[. != '']) = 1)"/>
<xsl:variable name="internal-destination" select="normalize-space(count($element_node/fo:basic-link/@internal-destination[. != '']) = 1)"/>
<xsl:choose>
@@ -10833,38 +11199,38 @@
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'variant-title']"/> <!-- [@type = 'sub'] -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
+ <xsl:template match="*[local-name() = 'variant-title']"/> <!-- [@type = 'sub'] -->
+ <xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
<fo:inline padding-right="5mm"> </fo:inline>
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'blacksquare']" name="blacksquare">
+ <xsl:template match="*[local-name() = 'blacksquare']" name="blacksquare">
<fo:inline padding-right="2.5mm" baseline-shift="5%">
<fo:instream-foreign-object content-height="2mm" content-width="2mm" fox:alt-text="Quad">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 2 2">
<rect x="0" y="0" width="2" height="2" fill="black"/>
</svg>
</fo:instream-foreign-object>
</fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@language">
+ <xsl:template match="@language">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="4">
+ <xsl:template match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="4">
<xsl:call-template name="title"/>
</xsl:template>
<!-- ================ -->
<!-- Admonition -->
<!-- ================ -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']">
+ <xsl:template match="*[local-name() = 'admonition']">
<!-- display name before box -->
<fo:block xsl:use-attribute-sets="admonition-name-style">
<xsl:call-template name="displayAdmonitionName"/>
</fo:block>
@@ -10886,11 +11252,11 @@
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="displayAdmonitionName">
+ <xsl:template name="displayAdmonitionName">
<xsl:param name="sep"/> <!-- Example: ' - ' -->
<!-- <xsl:choose>
<xsl:when test="$namespace = 'nist-cswp' or $namespace = 'nist-sp'">
<xsl:choose>
<xsl:when test="@type='important'"><xsl:apply-templates select="@type"/></xsl:when>
@@ -10913,11 +11279,11 @@
<xsl:if test="normalize-space($name) != ''">
<xsl:value-of select="$sep"/>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']/*[local-name() = 'name']">
+ <xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'name']">
<xsl:apply-templates/>
</xsl:template>
<!-- <xsl:template match="*[local-name() = 'admonition']/@type">
<xsl:variable name="admonition_type_">
@@ -10930,11 +11296,11 @@
<xsl:if test="$admonition_type = ''">
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
</xsl:if>
</xsl:template> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']/*[local-name() = 'p']">
+ <xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
<fo:block xsl:use-attribute-sets="admonition-p-style">
<xsl:apply-templates/>
</fo:block>
@@ -10947,11 +11313,11 @@
<!-- ===================================== -->
<!-- Update xml -->
<!-- ===================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="updateXML">
+ <xsl:template name="updateXML">
<xsl:if test="$debug = 'true'"><xsl:message>START updated_xml_step1</xsl:message></xsl:if>
<xsl:variable name="startTime1" select="java:getTime(java:java.util.Date.new())"/>
<!-- STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
<xsl:variable name="updated_xml_step1">
@@ -11011,11 +11377,18 @@
<!-- <redirect:write file="updated_xml_step3_{java:getTime(java:java.util.Date.new())}.xml">
<xsl:copy-of select="$updated_xml_step3"/>
</redirect:write> -->
</xsl:if>
+ <!-- <xsl:if test="$debug = 'true'"><xsl:message>START copying updated_xml_step3</xsl:message></xsl:if>
+ <xsl:variable name="startTime4" select="java:getTime(java:java.util.Date.new())"/> -->
<xsl:copy-of select="$updated_xml_step3"/>
+ <!-- <xsl:variable name="endTime4" select="java:getTime(java:java.util.Date.new())"/>
+ <xsl:if test="$debug = 'true'">
+ <xsl:message>DEBUG: processing time <xsl:value-of select="$endTime4 - $startTime4"/> msec.</xsl:message>
+ <xsl:message>END copying updated_xml_step3</xsl:message>
+ </xsl:if> -->
</xsl:template>
<!-- =========================================================================== -->
<!-- STEP1: -->
@@ -11024,18 +11397,18 @@
<!-- - Ignore 'span' without style -->
<!-- - Remove semantic xml part -->
<!-- - Remove image/emf (EMF vector image for Word) -->
<!-- - add @id, redundant for table auto-layout algorithm -->
<!-- =========================================================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="update_xml_step1">
+ <xsl:template match="@*|node()" mode="update_xml_step1">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<!-- change section's order based on @displayorder value -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preface']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'preface']" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="nodes_preface_">
<xsl:for-each select="*">
@@ -11062,11 +11435,11 @@
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'sections']" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="nodes_sections_">
<xsl:for-each select="*">
@@ -11094,11 +11467,11 @@
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibliography']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'bibliography']" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
<xsl:sort select="@displayorder" data-type="number"/>
@@ -11106,61 +11479,61 @@
</xsl:for-each>
</xsl:copy>
</xsl:template>
<!-- Example with 'class': <span class="stdpublisher">ISO</span> <span class="stddocNumber">10303</span>-<span class="stddocPartNumber">1</span>:<span class="stdyear">1994</span> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span'][@style or @class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']" mode="update_xml_step1" priority="2">
+ <xsl:template match="*[local-name() = 'span'][@style or @class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']" mode="update_xml_step1" priority="2">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
+ <xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<!-- remove semantic xml -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'metanorma-extension']/*[local-name() = 'metanorma']/*[local-name() = 'source']" mode="update_xml_step1"/>
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'metanorma']/*[local-name() = 'source']" mode="update_xml_step1"/>
<!-- remove image/emf -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'image']/*[local-name() = 'emf']" mode="update_xml_step1"/>
+ <xsl:template match="*[local-name() = 'image']/*[local-name() = 'emf']" mode="update_xml_step1"/>
<!-- remove preprocess-xslt -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preprocess-xslt']" mode="update_xml_step1"/>
+ <xsl:template match="*[local-name() = 'preprocess-xslt']" mode="update_xml_step1"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem'] | *[local-name() = 'image'] | *[local-name() = 'sourcecode'] | *[local-name() = 'bibdata'] | *[local-name() = 'localized-strings']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image'] | *[local-name() = 'sourcecode'] | *[local-name() = 'bibdata'] | *[local-name() = 'localized-strings']" mode="update_xml_step1">
<xsl:copy-of select="."/>
</xsl:template>
<!-- add @id, mandatory for table auto-layout algorithm -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:call-template name="add_id"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<!-- prevent empty thead processing in XSL-FO, remove it -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'table']/*[local-name() = 'thead'][count(*) = 0]" mode="update_xml_step1"/>
+ <xsl:template match="*[local-name() = 'table']/*[local-name() = 'thead'][count(*) = 0]" mode="update_xml_step1"/>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add_id">
+ <xsl:template name="add_id">
<xsl:if test="not(@id)">
<!-- add @id - first element with @id plus '_element_name' -->
<xsl:attribute name="id"><xsl:value-of select="(.//*[@id])[1]/@id"/>_<xsl:value-of select="local-name()"/></xsl:attribute>
</xsl:if>
</xsl:template>
<!-- optimization: remove clause if table_only_with_id isn't empty and clause doesn't contain table or dl with table_only_with_id -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'clause' or local-name() = 'p' or local-name() = 'definitions' or local-name() = 'annex']" mode="update_xml_step1">
+ <xsl:template match="*[local-name() = 'clause' or local-name() = 'p' or local-name() = 'definitions' or local-name() = 'annex']" mode="update_xml_step1">
<xsl:choose>
<xsl:when test="($table_only_with_id != '' or $table_only_with_ids != '') and local-name() = 'p' and (ancestor::*[local-name() = 'table' or local-name() = 'dl' or local-name() = 'toc'])">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
@@ -11192,19 +11565,22 @@
<!-- =========================================================================== -->
<!-- =========================================================================== -->
<!-- STEP MOVE PAGEBREAK: move <pagebreak/> at top level under 'preface' and 'sections' -->
<!-- =========================================================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="update_xml_step_move_pagebreak">
+ <xsl:template match="@*|node()" mode="update_xml_step_move_pagebreak">
+ <xsl:param name="page_sequence_at_top">false</xsl:param>
<xsl:copy>
- <xsl:apply-templates select="@*|node()" mode="update_xml_step_move_pagebreak"/>
+ <xsl:apply-templates select="@*|node()" mode="update_xml_step_move_pagebreak">
+ <xsl:with-param name="page_sequence_at_top" select="$page_sequence_at_top"/>
+ </xsl:apply-templates>
</xsl:copy>
</xsl:template>
<!-- replace 'pagebreak' by closing tags + page_sequence and opening page_sequence + tags -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'pagebreak'][not(following-sibling::*[1][local-name() = 'pagebreak'])]" mode="update_xml_step_move_pagebreak">
-
+ <xsl:template match="*[local-name() = 'pagebreak'][not(following-sibling::*[1][local-name() = 'pagebreak'])]" mode="update_xml_step_move_pagebreak">
+ <xsl:param name="page_sequence_at_top"/>
<!-- <xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'sections']">
</xsl:when>
<xsl:when test="ancestor::*[local-name() = 'annex']">
@@ -11224,11 +11600,13 @@
<xsl:if test="contains($isLast, 'false')">
<xsl:variable name="orientation" select="normalize-space(@orientation)"/>
<xsl:variable name="tree_">
- <xsl:call-template name="makeAncestorsElementsTree"/>
+ <xsl:call-template name="makeAncestorsElementsTree">
+ <xsl:with-param name="page_sequence_at_top" select="$page_sequence_at_top"/>
+ </xsl:call-template>
</xsl:variable>
<xsl:variable name="tree" select="xalan:nodeset($tree_)"/>
<!-- close fo:page-sequence (closing preceding fo elements) -->
<xsl:call-template name="insertClosingElements">
@@ -11245,20 +11623,34 @@
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="makeAncestorsElementsTree">
- <xsl:for-each select="ancestor::*[ancestor::*[local-name() = 'preface'] or ancestor::*[local-name() = 'sections'] or ancestor-or-self::*[local-name() = 'annex']]">
- <element pos="{position()}">
- <xsl:copy-of select="@*[local-name() != 'id']"/>
- <xsl:value-of select="name()"/>
- </element>
- </xsl:for-each>
+ <xsl:template name="makeAncestorsElementsTree">
+ <xsl:param name="page_sequence_at_top"/>
+
+ <xsl:choose>
+ <xsl:when test="$page_sequence_at_top = 'true'">
+ <xsl:for-each select="ancestor::*[ancestor::*[contains(local-name(), '-standard')]]">
+ <element pos="{position()}">
+ <xsl:copy-of select="@*[local-name() != 'id']"/>
+ <xsl:value-of select="name()"/>
+ </element>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="ancestor::*[ancestor::*[local-name() = 'preface'] or ancestor::*[local-name() = 'sections'] or ancestor-or-self::*[local-name() = 'annex']]">
+ <element pos="{position()}">
+ <xsl:copy-of select="@*[local-name() != 'id']"/>
+ <xsl:value-of select="name()"/>
+ </element>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertClosingElements">
+ <xsl:template name="insertClosingElements">
<xsl:param name="tree"/>
<xsl:for-each select="$tree//element">
<xsl:sort data-type="number" order="descending" select="@pos"/>
<xsl:text disable-output-escaping="yes"></</xsl:text>
<xsl:value-of select="."/>
@@ -11267,11 +11659,11 @@
<xsl:message></<xsl:value-of select="."/>></xsl:message>
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertOpeningElements">
+ <xsl:template name="insertOpeningElements">
<xsl:param name="tree"/>
<xsl:for-each select="$tree//element">
<xsl:text disable-output-escaping="yes"><</xsl:text>
<xsl:value-of select="."/>
<xsl:for-each select="@*[local-name() != 'pos']">
@@ -11288,16 +11680,19 @@
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- move full page width figures, tables at top level -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure' or local-name() = 'table'][normalize-space(@width) != 'text-width']" mode="update_xml_step_move_pagebreak">
+ <xsl:template match="*[local-name() = 'figure' or local-name() = 'table'][normalize-space(@width) != 'text-width']" mode="update_xml_step_move_pagebreak">
+ <xsl:param name="page_sequence_at_top">false</xsl:param>
<xsl:choose>
<xsl:when test="$layout_columns != 1">
<xsl:variable name="tree_">
- <xsl:call-template name="makeAncestorsElementsTree"/>
+ <xsl:call-template name="makeAncestorsElementsTree">
+ <xsl:with-param name="page_sequence_at_top" select="$page_sequence_at_top"/>
+ </xsl:call-template>
</xsl:variable>
<xsl:variable name="tree" select="xalan:nodeset($tree_)"/>
<xsl:call-template name="insertClosingElements">
<xsl:with-param name="tree" select="$tree"/>
@@ -11329,100 +11724,159 @@
<!-- XML UPDATE STEP: enclose standard's name into tag 'keep-together_within-line' -->
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
<!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
<!-- =========================================================================== -->
<!-- Example: <keep-together_within-line>ISO 10303-51</keep-together_within-line> -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="update_xml_enclose_keep-together_within-line">
+ <xsl:template match="@*|node()" mode="update_xml_enclose_keep-together_within-line">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="update_xml_enclose_keep-together_within-line"/>
</xsl:copy>
</xsl:template>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="express_reference_separators">_.\</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="express_reference_characters" select="concat($upper,$lower,'1234567890',$express_reference_separators)"/>
+ <xsl:variable name="express_reference_separators">_.\</xsl:variable>
+ <xsl:variable name="express_reference_characters" select="concat($upper,$lower,'1234567890',$express_reference_separators)"/>
+ <xsl:variable name="regex_express_reference">(^([A-Za-z0-9_.\\]+)$)</xsl:variable>
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
+ <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
+ <xsl:variable name="tag_keep-together_within-line_open">###<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
+ <xsl:variable name="tag_keep-together_within-line_close">###/<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'link'][not(contains(.,' '))] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
+ <!-- \S matches any non-whitespace character (equivalent to [^\r\n\t\f\v ]) -->
+ <!-- <xsl:variable name="regex_solidus_units">((\b((\S{1,3}\/\S+)|(\S+\/\S{1,3}))\b)|(\/\S{1,3})\b)</xsl:variable> -->
+ <!-- add < and > to \S -->
+ <xsl:variable name="regex_S">[^\r\n\t\f\v \<>\u3000-\u9FFF]</xsl:variable>
+ <xsl:variable name="regex_solidus_units">((\b((<xsl:value-of select="$regex_S"/>{1,3}\/<xsl:value-of select="$regex_S"/>+)|(<xsl:value-of select="$regex_S"/>+\/<xsl:value-of select="$regex_S"/>{1,3}))\b)|(\/<xsl:value-of select="$regex_S"/>{1,3})\b)</xsl:variable>
- <!-- enclose standard's number into tag 'keep-together_within-line' -->
- <xsl:variable name="tag_keep-together_within-line_open">###<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
- <xsl:variable name="tag_keep-together_within-line_close">###/<xsl:value-of select="$element_name_keep-together_within-line"/>###</xsl:variable>
- <xsl:variable name="text__" select="java:replaceAll(java:java.lang.String.new(.), $regex_standard_reference, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
- <xsl:variable name="text_">
- <xsl:choose>
- <xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
- <xsl:otherwise><xsl:value-of select="$text__"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="text"><text><xsl:call-template name="replace_text_tags">
+ <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
+ <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
+
+ <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'link'][not(contains(.,' '))] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
+
+ <xsl:variable name="parent" select="local-name(..)"/>
+
+ <xsl:if test="1 = 2"> <!-- alternative variant -->
+
+ <xsl:variable name="regexs">
+ <!-- enclose standard's number into tag 'keep-together_within-line' -->
+ <xsl:if test="not(ancestor::*[local-name() = 'table'])"><regex><xsl:value-of select="$regex_standard_reference"/></regex></xsl:if>
+ <!-- if EXPRESS reference -->
+
+ <!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
+ <regex><xsl:value-of select="$regex_solidus_units"/></regex>
+ <!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
+ <xsl:if test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
+ <regex><xsl:value-of select="$regex_dots_units"/></regex>
+ </xsl:if>
+ </xsl:variable>
+
+ <xsl:variable name="regex_replacement"><xsl:text>(</xsl:text>
+ <xsl:for-each select="xalan:nodeset($regexs)/regex">
+ <xsl:value-of select="."/>
+ <xsl:if test="position() != last()">|</xsl:if>
+ </xsl:for-each>
+ <xsl:text>)</xsl:text>
+ </xsl:variable>
+
+ <!-- regex_replacement='<xsl:value-of select="$regex_replacement"/>' -->
+
+ <xsl:variable name="text_replaced" select="java:replaceAll(java:java.lang.String.new(.), $regex_replacement, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
+
+ <!-- text_replaced='<xsl:value-of select="$text_replaced"/>' -->
+
+ <xsl:call-template name="replace_text_tags">
<xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
<xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
- <xsl:with-param name="text" select="$text_"/>
- </xsl:call-template></text></xsl:variable>
+ <xsl:with-param name="text" select="$text_replaced"/>
+ </xsl:call-template>
+ </xsl:if>
- <xsl:variable name="parent" select="local-name(..)"/>
+ <xsl:if test="1 = 1">
+ <!-- enclose standard's number into tag 'keep-together_within-line' -->
+ <xsl:variable name="text">
+ <xsl:element name="text" namespace="{$namespace_full}">
+ <xsl:choose>
+ <xsl:when test="ancestor::*[local-name() = 'table']"><xsl:value-of select="."/></xsl:when> <!-- no need enclose standard's number into tag 'keep-together_within-line' in table cells -->
+ <xsl:otherwise>
+ <xsl:variable name="text_" select="java:replaceAll(java:java.lang.String.new(.), $regex_standard_reference, concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
+ <!-- <xsl:value-of select="$text__"/> -->
+
+ <xsl:call-template name="replace_text_tags">
+ <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
+ <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
+ <xsl:with-param name="text" select="$text_"/>
+ </xsl:call-template>
+
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:variable>
+
<xsl:variable name="text2">
- <text><xsl:for-each select="xalan:nodeset($text)/text/node()">
+ <xsl:element name="text" namespace="{$namespace_full}">
+ <xsl:for-each select="xalan:nodeset($text)/*[local-name() = 'text']/node()">
<xsl:copy-of select="."/>
- </xsl:for-each></text>
+ </xsl:for-each>
+ </xsl:element>
</xsl:variable>
<!-- keep-together_within-line for: a/b, aaa/b, a/bbb, /b -->
- <!-- \S matches any non-whitespace character (equivalent to [^\r\n\t\f\v ]) -->
- <!-- <xsl:variable name="regex_solidus_units">((\b((\S{1,3}\/\S+)|(\S+\/\S{1,3}))\b)|(\/\S{1,3})\b)</xsl:variable> -->
- <!-- add < and > to \S -->
- <xsl:variable name="regex_S">[^\r\n\t\f\v \<>\u3000-\u9FFF]</xsl:variable>
- <xsl:variable name="regex_solidus_units">((\b((<xsl:value-of select="$regex_S"/>{1,3}\/<xsl:value-of select="$regex_S"/>+)|(<xsl:value-of select="$regex_S"/>+\/<xsl:value-of select="$regex_S"/>{1,3}))\b)|(\/<xsl:value-of select="$regex_S"/>{1,3})\b)</xsl:variable>
<xsl:variable name="text3">
- <text><xsl:for-each select="xalan:nodeset($text2)/text/node()">
- <xsl:choose>
- <xsl:when test="self::text()">
- <xsl:variable name="text_units_" select="java:replaceAll(java:java.lang.String.new(.),$regex_solidus_units,concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
- <xsl:variable name="text_units"><text><xsl:call-template name="replace_text_tags">
- <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
- <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
- <xsl:with-param name="text" select="$text_units_"/>
- </xsl:call-template></text></xsl:variable>
- <xsl:copy-of select="xalan:nodeset($text_units)/text/node()"/>
- </xsl:when>
- <xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise> <!-- copy 'as-is' for <fo:inline keep-together.within-line="always" ... -->
- </xsl:choose>
- </xsl:for-each></text>
+ <xsl:element name="text" namespace="{$namespace_full}">
+ <xsl:for-each select="xalan:nodeset($text2)/*[local-name() = 'text']/node()">
+ <xsl:choose>
+ <xsl:when test="self::text()">
+ <xsl:variable name="text_units" select="java:replaceAll(java:java.lang.String.new(.),$regex_solidus_units,concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
+ <!-- <xsl:variable name="text_units">
+ <xsl:element name="text" namespace="{$namespace_full}"> -->
+ <xsl:call-template name="replace_text_tags">
+ <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
+ <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
+ <xsl:with-param name="text" select="$text_units"/>
+ </xsl:call-template>
+ <!-- </xsl:element>
+ </xsl:variable>
+ <xsl:copy-of select="xalan:nodeset($text_units)/*[local-name() = 'text']/node()"/> -->
+ </xsl:when>
+ <xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise> <!-- copy 'as-is' for <fo:inline keep-together.within-line="always" ... -->
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:element>
</xsl:variable>
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'td' or local-name() = 'th']">
<!-- keep-together_within-line for: a.b, aaa.b, a.bbb, .b in table's cell ONLY -->
- <xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
- <xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
- <xsl:for-each select="xalan:nodeset($text3)/text/node()">
+ <xsl:for-each select="xalan:nodeset($text3)/*[local-name() = 'text']/node()">
<xsl:choose>
<xsl:when test="self::text()">
- <xsl:variable name="text_dots_" select="java:replaceAll(java:java.lang.String.new(.),$regex_dots_units,concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
- <xsl:variable name="text_dots"><text><xsl:call-template name="replace_text_tags">
- <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
- <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
- <xsl:with-param name="text" select="$text_dots_"/>
- </xsl:call-template></text></xsl:variable>
- <xsl:copy-of select="xalan:nodeset($text_dots)/text/node()"/>
+ <xsl:variable name="text_dots" select="java:replaceAll(java:java.lang.String.new(.),$regex_dots_units,concat($tag_keep-together_within-line_open,'$1',$tag_keep-together_within-line_close))"/>
+ <!-- <xsl:variable name="text_dots">
+ <xsl:element name="text" namespace="{$namespace_full}"> -->
+ <xsl:call-template name="replace_text_tags">
+ <xsl:with-param name="tag_open" select="$tag_keep-together_within-line_open"/>
+ <xsl:with-param name="tag_close" select="$tag_keep-together_within-line_close"/>
+ <xsl:with-param name="text" select="$text_dots"/>
+ </xsl:call-template>
+ <!-- </xsl:element>
+ </xsl:variable>
+ <xsl:copy-of select="xalan:nodeset($text_dots)/*[local-name() = 'text']/node()"/> -->
</xsl:when>
<xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise> <!-- copy 'as-is' for <fo:inline keep-together.within-line="always" ... -->
</xsl:choose>
</xsl:for-each>
</xsl:when>
- <xsl:otherwise><xsl:copy-of select="xalan:nodeset($text3)/text/node()"/></xsl:otherwise>
+ <xsl:otherwise><xsl:copy-of select="xalan:nodeset($text3)/*[local-name() = 'text']/node()"/></xsl:otherwise>
</xsl:choose>
-
+ </xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem'] | *[local-name() = 'image']" mode="update_xml_enclose_keep-together_within-line">
+ <xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image']" mode="update_xml_enclose_keep-together_within-line">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="replace_text_tags">
+ <xsl:template name="replace_text_tags">
<xsl:param name="tag_open"/>
<xsl:param name="tag_close"/>
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text, $tag_open)">
@@ -11449,17 +11903,17 @@
<!-- ===================================== -->
<!-- ===================================== -->
<!-- Make linear XML (need for landscape orientation) -->
<!-- ===================================== -->
<!-- ===================================== -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="linear_xml">
+ <xsl:template match="@*|node()" mode="linear_xml">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="processing-instruction()" mode="linear_xml">
+ <xsl:template match="processing-instruction()" mode="linear_xml">
<xsl:copy-of select="."/>
</xsl:template>
<!-- From:
<clause>
@@ -11469,11 +11923,11 @@
To:
<clause/>
<title>...</title>
<p>...</p>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'foreword'] | *[local-name() = 'foreword']//*[local-name() = 'clause'] | *[local-name() = 'preface']//*[local-name() = 'clause'][not(@type = 'corrigenda') and not(@type = 'policy') and not(@type = 'related-refs')] | *[local-name() = 'introduction'] | *[local-name() = 'introduction']//*[local-name() = 'clause'] | *[local-name() = 'sections']//*[local-name() = 'clause'] | *[local-name() = 'annex'] | *[local-name() = 'annex']//*[local-name() = 'clause'] | *[local-name() = 'references'][not(@hidden = 'true')] | *[local-name() = 'bibliography']/*[local-name() = 'clause'] | *[local-name() = 'colophon'] | *[local-name() = 'colophon']//*[local-name() = 'clause'] | *[local-name()='sections']//*[local-name()='terms'] | *[local-name()='sections']//*[local-name()='definitions'] | *[local-name()='annex']//*[local-name()='definitions']" mode="linear_xml" name="clause_linear">
+ <xsl:template match="*[local-name() = 'foreword'] | *[local-name() = 'foreword']//*[local-name() = 'clause'] | *[local-name() = 'preface']//*[local-name() = 'clause'][not(@type = 'corrigenda') and not(@type = 'policy') and not(@type = 'related-refs')] | *[local-name() = 'introduction'] | *[local-name() = 'introduction']//*[local-name() = 'clause'] | *[local-name() = 'sections']//*[local-name() = 'clause'] | *[local-name() = 'annex'] | *[local-name() = 'annex']//*[local-name() = 'clause'] | *[local-name() = 'references'][not(@hidden = 'true')] | *[local-name() = 'bibliography']/*[local-name() = 'clause'] | *[local-name() = 'colophon'] | *[local-name() = 'colophon']//*[local-name() = 'clause'] | *[local-name()='sections']//*[local-name()='terms'] | *[local-name()='sections']//*[local-name()='definitions'] | *[local-name()='annex']//*[local-name()='definitions']" mode="linear_xml" name="clause_linear">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -11484,11 +11938,11 @@
</xsl:copy>
<xsl:apply-templates mode="linear_xml"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'term']" mode="linear_xml" priority="2">
+ <xsl:template match="*[local-name() = 'term']" mode="linear_xml" priority="2">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:variable name="level">
<xsl:call-template name="getLevel"/>
@@ -11498,11 +11952,11 @@
<xsl:apply-templates select="node()[not(local-name() = 'term')]" mode="linear_xml"/>
</xsl:copy>
<xsl:apply-templates select="*[local-name() = 'term']" mode="linear_xml"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'introduction']//*[local-name() = 'title'] | *[local-name() = 'foreword']//*[local-name() = 'title'] | *[local-name() = 'preface']//*[local-name() = 'title'] | *[local-name() = 'sections']//*[local-name() = 'title'] | *[local-name() = 'annex']//*[local-name() = 'title'] | *[local-name() = 'bibliography']/*[local-name() = 'clause']/*[local-name() = 'title'] | *[local-name() = 'references']/*[local-name() = 'title'] | *[local-name() = 'colophon']//*[local-name() = 'title']" mode="linear_xml" priority="2">
+ <xsl:template match="*[local-name() = 'introduction']//*[local-name() = 'title'] | *[local-name() = 'foreword']//*[local-name() = 'title'] | *[local-name() = 'preface']//*[local-name() = 'title'] | *[local-name() = 'sections']//*[local-name() = 'title'] | *[local-name() = 'annex']//*[local-name() = 'title'] | *[local-name() = 'bibliography']/*[local-name() = 'clause']/*[local-name() = 'title'] | *[local-name() = 'references']/*[local-name() = 'title'] | *[local-name() = 'colophon']//*[local-name() = 'title']" mode="linear_xml" priority="2">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -11541,11 +11995,11 @@
<xsl:apply-templates mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'li']" mode="linear_xml" priority="2">
+ <xsl:template match="*[local-name() = 'li']" mode="linear_xml" priority="2">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:variable name="ancestor">
<xsl:choose>
@@ -11562,11 +12016,11 @@
</xsl:copy>
</xsl:template>
<!-- add @to = figure, table, clause -->
<!-- add @depth = from -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref']" mode="linear_xml">
+ <xsl:template match="*[local-name() = 'xref']" mode="linear_xml">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:variable name="target" select="@target"/>
<xsl:attribute name="to">
<xsl:value-of select="local-name(//*[@id = current()/@target][1])"/>
@@ -11576,11 +12030,11 @@
</xsl:attribute>
<xsl:apply-templates select="node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[not(ancestor::*[local-name() = 'sourcecode'])]/*[local-name() = 'p' or local-name() = 'strong' or local-name() = 'em']/text()" mode="linear_xml">
+ <xsl:template match="*[not(ancestor::*[local-name() = 'sourcecode'])]/*[local-name() = 'p' or local-name() = 'strong' or local-name() = 'em']/text()" mode="linear_xml">
<xsl:choose>
<xsl:when test="contains(., $non_breaking_hyphen)">
<xsl:call-template name="replaceChar">
<xsl:with-param name="text" select="."/>
<xsl:with-param name="replace" select="$non_breaking_hyphen"/>
@@ -11589,11 +12043,11 @@
</xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="replaceChar">
+ <xsl:template name="replaceChar">
<xsl:param name="text"/>
<xsl:param name="replace"/>
<xsl:param name="by"/>
<xsl:choose>
<xsl:when test="$text = '' or $replace = '' or not($replace)">
@@ -11612,21 +12066,21 @@
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'inlineChar']">
+ <xsl:template match="*[local-name() = 'inlineChar']">
<fo:inline><xsl:value-of select="."/></fo:inline>
</xsl:template>
<!-- change @reference to actual value, and add skip_footnote_body="true" for repeatable (2nd, 3rd, ...) -->
<!--
<fn reference="1">
<p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
</fn>
-->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))]" mode="linear_xml" name="linear_xml_fn">
+ <xsl:template match="*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure')] and not(ancestor::*[local-name() = 'name']))]" mode="linear_xml" name="linear_xml_fn">
<xsl:variable name="p_fn_">
<xsl:call-template name="get_fn_list"/>
<!-- <xsl:choose>
<xsl:when test="$namespace = 'jis'">
<xsl:call-template name="get_fn_list_for_element"/>
@@ -11660,11 +12114,11 @@
</xsl:attribute>
<xsl:apply-templates select="node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'section-title']" priority="3" mode="linear_xml">
+ <xsl:template match="*[local-name() = 'p'][@type = 'section-title']" priority="3" mode="linear_xml">
<xsl:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:if test="@depth = '1'">
<xsl:attribute name="mainsection">true</xsl:attribute>
</xsl:if>
@@ -11676,15 +12130,15 @@
<!-- END: Make linear XML (need for landscape orientation) -->
<!-- ===================================== -->
<!-- ===================================== -->
<!-- for correct rendering combining chars -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'lang_none']">
+ <xsl:template match="*[local-name() = 'lang_none']">
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="printEdition">
+ <xsl:template name="printEdition">
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
<xsl:choose>
<xsl:when test="$edition_i18n != ''">
<!-- Example: <edition language="fr">deuxième édition</edition> -->
@@ -11708,11 +12162,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- convert YYYY-MM-DD to 'Month YYYY' or 'Month DD, YYYY' or DD Month YYYY -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="convertDate">
+ <xsl:template name="convertDate">
<xsl:param name="date"/>
<xsl:param name="format" select="'short'"/>
<xsl:variable name="year" select="substring($date, 1, 4)"/>
<xsl:variable name="month" select="substring($date, 6, 2)"/>
<xsl:variable name="day" select="substring($date, 9, 2)"/>
@@ -11746,11 +12200,11 @@
</xsl:variable>
<xsl:value-of select="$result"/>
</xsl:template> <!-- convertDate -->
<!-- return Month's name by number -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMonthByNum">
+ <xsl:template name="getMonthByNum">
<xsl:param name="num"/>
<xsl:param name="lang">en</xsl:param>
<xsl:param name="lowercase">false</xsl:param> <!-- return 'january' instead of 'January' -->
<xsl:variable name="monthStr_">
<xsl:choose>
@@ -11795,11 +12249,11 @@
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getMonthByNum -->
<!-- return Month's name by number from localized strings -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMonthLocalizedByNum">
+ <xsl:template name="getMonthLocalizedByNum">
<xsl:param name="num"/>
<xsl:variable name="monthStr">
<xsl:choose>
<xsl:when test="$num = '01'">january</xsl:when>
<xsl:when test="$num = '02'">february</xsl:when>
@@ -11818,11 +12272,11 @@
<xsl:call-template name="getLocalizedString">
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
</xsl:call-template>
</xsl:template> <!-- getMonthLocalizedByNum -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertKeywords">
+ <xsl:template name="insertKeywords">
<xsl:param name="sorting" select="'true'"/>
<xsl:param name="meta" select="'false'"/>
<xsl:param name="charAtEnd" select="'.'"/>
<xsl:param name="charDelim" select="', '"/>
<xsl:choose>
@@ -11846,11 +12300,11 @@
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertKeyword">
+ <xsl:template name="insertKeyword">
<xsl:param name="charAtEnd"/>
<xsl:param name="charDelim"/>
<xsl:param name="meta"/>
<xsl:choose>
<xsl:when test="$meta = 'true'">
@@ -11864,11 +12318,11 @@
<xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="addPDFUAmeta">
+ <xsl:template name="addPDFUAmeta">
<pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
<pdf:dictionary type="normal" key="ViewerPreferences">
<pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
</pdf:dictionary>
</pdf:catalog>
@@ -11934,13 +12388,22 @@
<xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
<pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
+ <!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
+ <xsl:if test="not(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
+ <xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, $attachment_path, ')')"/>
+ <xsl:variable name="filename_embedded" select="substring-after($attachment_path, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
+ <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{$filename_embedded}"/>
+ </xsl:for-each>
+ </xsl:if>
</xsl:template> <!-- addPDFUAmeta -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getId">
+ <xsl:template name="getId">
<xsl:choose>
<xsl:when test="../@id">
<xsl:value-of select="../@id"/>
</xsl:when>
<xsl:otherwise>
@@ -11948,11 +12411,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Get or calculate depth of the element -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLevel">
+ <xsl:template name="getLevel">
<xsl:param name="depth"/>
<xsl:choose>
<xsl:when test="normalize-space(@depth) != ''">
<xsl:value-of select="@depth"/>
</xsl:when>
@@ -11995,11 +12458,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLevel -->
<!-- Get or calculate depth of term's name -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLevelTermName">
+ <xsl:template name="getLevelTermName">
<xsl:choose>
<xsl:when test="normalize-space(../@depth) != ''">
<xsl:value-of select="../@depth"/>
</xsl:when>
<xsl:otherwise>
@@ -12018,11 +12481,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLevelTermName -->
<!-- split string by separator -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="split">
+ <xsl:template name="split">
<xsl:param name="pText" select="."/>
<xsl:param name="sep" select="','"/>
<xsl:param name="normalize-space" select="'true'"/>
<xsl:param name="keep_sep" select="'false'"/>
<xsl:if test="string-length($pText) >0">
@@ -12044,19 +12507,19 @@
<xsl:with-param name="keep_sep" select="$keep_sep"/>
</xsl:call-template>
</xsl:if>
</xsl:template> <!-- split -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getDocumentId">
+ <xsl:template name="getDocumentId">
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getDocumentId_fromCurrentNode">
+ <xsl:template name="getDocumentId_fromCurrentNode">
<xsl:call-template name="getLang_fromCurrentNode"/><xsl:value-of select=".//*[local-name() = 'p'][1]/@id"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="namespaceCheck">
+ <xsl:template name="namespaceCheck">
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
<xsl:variable name="XSLNS">
<xsl:value-of select="document('')//*/namespace::un"/>
@@ -12064,11 +12527,11 @@
<xsl:if test="$documentNS != $XSLNS">
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
</xsl:if>
</xsl:template> <!-- namespaceCheck -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLanguage">
+ <xsl:template name="getLanguage">
<xsl:param name="lang"/>
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
<xsl:choose>
<xsl:when test="$language = 'en'">English</xsl:when>
<xsl:when test="$language = 'fr'">French</xsl:when>
@@ -12076,11 +12539,11 @@
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setId">
+ <xsl:template name="setId">
<xsl:param name="prefix"/>
<xsl:attribute name="id">
<xsl:choose>
<xsl:when test="@id">
<xsl:value-of select="concat($prefix, @id)"/>
@@ -12090,11 +12553,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-letter-spacing">
+ <xsl:template name="add-letter-spacing">
<xsl:param name="text"/>
<xsl:param name="letter-spacing" select="'0.15'"/>
<xsl:if test="string-length($text) > 0">
<xsl:variable name="char" select="substring($text, 1, 1)"/>
<fo:inline padding-right="{$letter-spacing}mm">
@@ -12109,11 +12572,11 @@
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="repeat">
+ <xsl:template name="repeat">
<xsl:param name="char" select="'*'"/>
<xsl:param name="count"/>
<xsl:if test="$count > 0">
<xsl:value-of select="$char"/>
<xsl:call-template name="repeat">
@@ -12121,11 +12584,11 @@
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLocalizedString">
+ <xsl:template name="getLocalizedString">
<xsl:param name="key"/>
<xsl:param name="formatted">false</xsl:param>
<xsl:param name="lang"/>
<xsl:param name="returnEmptyIfNotFound">false</xsl:param>
@@ -12177,11 +12640,11 @@
<xsl:value-of select="$key_"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLocalizedString -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTrackChangesStyles">
+ <xsl:template name="setTrackChangesStyles">
<xsl:param name="isAdded"/>
<xsl:param name="isDeleted"/>
<xsl:choose>
<xsl:when test="local-name() = 'math'">
<xsl:if test="$isAdded = 'true'">
@@ -12206,30 +12669,30 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- setTrackChangesStyles -->
<!-- see https://xmlgraphics.apache.org/fop/2.5/complexscripts.html#bidi_controls-->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="LRM" select="''"/> <!-- U+200E - LEFT-TO-RIGHT MARK (LRM) -->
- <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="RLM" select="''"/> <!-- U+200F - RIGHT-TO-LEFT MARK (RLM) -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setWritingMode">
+ <xsl:variable name="LRM" select="''"/> <!-- U+200E - LEFT-TO-RIGHT MARK (LRM) -->
+ <xsl:variable name="RLM" select="''"/> <!-- U+200F - RIGHT-TO-LEFT MARK (RLM) -->
+ <xsl:template name="setWritingMode">
<xsl:if test="$lang = 'ar'">
<xsl:attribute name="writing-mode">rl-tb</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setAlignment">
+ <xsl:template name="setAlignment">
<xsl:param name="align" select="normalize-space(@align)"/>
<xsl:choose>
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
<xsl:when test="$lang = 'ar' and $align = 'right'">end</xsl:when>
<xsl:when test="$align != ''">
<xsl:value-of select="$align"/>
</xsl:when>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTextAlignment">
+ <xsl:template name="setTextAlignment">
<xsl:param name="default">left</xsl:param>
<xsl:variable name="align" select="normalize-space(@align)"/>
<xsl:attribute name="text-align">
<xsl:choose>
<xsl:when test="$lang = 'ar' and $align = 'left'">start</xsl:when>
@@ -12244,19 +12707,19 @@
<xsl:if test="$align = 'indent'">
<xsl:attribute name="margin-left">7mm</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setBlockAttributes">
+ <xsl:template name="setBlockAttributes">
<xsl:param name="text_align_default">left</xsl:param>
<xsl:call-template name="setTextAlignment">
<xsl:with-param name="default" select="$text_align_default"/>
</xsl:call-template>
<xsl:call-template name="setKeepAttributes"/>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setKeepAttributes">
+ <xsl:template name="setKeepAttributes">
<!-- https://www.metanorma.org/author/topics/document-format/text/#avoiding-page-breaks -->
<!-- Example: keep-lines-together="true" -->
<xsl:if test="@keep-lines-together = 'true'">
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:if>
@@ -12266,11 +12729,11 @@
</xsl:if>
</xsl:template>
<!-- insert cover page image -->
<!-- background cover image -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertBackgroundPageImage">
+ <xsl:template name="insertBackgroundPageImage">
<xsl:param name="number">1</xsl:param>
<xsl:param name="name">coverpage-image</xsl:param>
<xsl:variable name="num" select="number($number)"/>
<!-- background image -->
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage_{$name}_{$number}_{generate-id()}">
@@ -12302,11 +12765,11 @@
</xsl:for-each>
</fo:block>
</fo:block-container>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getImageURL">
+ <xsl:template name="getImageURL">
<xsl:param name="src"/>
<xsl:choose>
<xsl:when test="starts-with($src, 'data:image')">
<xsl:value-of select="$src"/>
</xsl:when>
@@ -12314,11 +12777,11 @@
<xsl:value-of select="concat('url(file:///',$basepath, $src, ')')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getSVG">
+ <xsl:template name="getSVG">
<xsl:choose>
<xsl:when test="*[local-name() = 'svg']">
<xsl:apply-templates select="*[local-name() = 'svg']" mode="svg_update"/>
</xsl:when>
<xsl:otherwise>
@@ -12330,11 +12793,11 @@
</xsl:choose>
</xsl:template>
<!-- END: insert cover page image -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="number-to-words">
+ <xsl:template name="number-to-words">
<xsl:param name="number"/>
<xsl:param name="first"/>
<xsl:if test="$number != ''">
<xsl:variable name="words">
<words>
@@ -12529,11 +12992,11 @@
</xsl:choose>
</xsl:if>
</xsl:template> <!-- number-to-words -->
<!-- st for 1, nd for 2, rd for 3, th for 4, 5, 6, ... -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="number-to-ordinal">
+ <xsl:template name="number-to-ordinal">
<xsl:param name="number"/>
<xsl:param name="curr_lang"/>
<xsl:choose>
<xsl:when test="$curr_lang = 'fr'">
<xsl:choose>
@@ -12551,11 +13014,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- number-to-ordinal -->
<!-- add the attribute fox:alt-text, required for PDF/UA -->
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setAltText">
+ <xsl:template name="setAltText">
<xsl:param name="value"/>
<xsl:attribute name="fox:alt-text">
<xsl:choose>
<xsl:when test="normalize-space($value) != ''">
<xsl:value-of select="$value"/>
@@ -12563,11 +13026,11 @@
<xsl:otherwise>_</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="substring-after-last">
+ <xsl:template name="substring-after-last">
<xsl:param name="value"/>
<xsl:param name="delimiter"/>
<xsl:choose>
<xsl:when test="contains($value, $delimiter)">
<xsl:call-template name="substring-after-last">
@@ -12579,10 +13042,10 @@
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="print_as_xml">
+ <xsl:template match="*" mode="print_as_xml">
<xsl:param name="level">0</xsl:param>
<fo:block margin-left="{2*$level}mm">
<xsl:text>
<</xsl:text>
\ No newline at end of file