lib/isodoc/un/un.recommendation.xsl in metanorma-un-0.12.9 vs lib/isodoc/un/un.recommendation.xsl in metanorma-un-0.12.10
- old
+ new
@@ -835,25 +835,29 @@
<xsl:variable name="Image-Logo">
<xsl:text>iVBORw0KGgoAAAANSUhEUgAAAUgAAAEfCAYAAAAjn198AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA8BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4M0JCQjMxNzJBNjcxMUVBQjQ3MkM1NDNGQjcxMjlFQyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4M0JCQjMxNjJBNjcxMUVBQjQ3MkM1NDNGQjcxMjlFQyIgeG1wOkNyZWF0b3JUb29sPSJBY3JvYmF0IFBERk1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Rt1c7SixuBEqailG+UOSWqvpXjNcbDcKZU4Cmyln7MgNKiZ6KHDMbzmg7QHkGzDXPLjJHnv0bXeLZLbpbXdLimQmM8Xdf3ddugE6ejsvSGV9EY7svYkN/EXLAjQzsrBhEf7qzGv0R0SJ47XZnQ4QTpqkrzIsZ5c8jwSDbnNczI4p0+1jdtizByEIhGdsMkvuyPudHU4oqDAxtIYctwmdXtORud1u1TtUmlxtOb7br/0DidIRyVQTHiJHV2wFqcA3tplGZ/fw5pjaV1D7IKEwnzSt4DDCdIRB9IEaQFQWrADxwBhLKtzMk9iQifY0emPOFR+a0HKXRffDg4nSIeJDCjSQXxg9xi1GslxXc7mvFrziivldb3U8W6+NRxOkMUGUhOe3DgP7y6RyHM5nTskSaB3XKjUjLZxvwWJAA4nSEcBQaEJyltNj3kNR8ZFOVKrK5EkFXziMoAoVPGQk6QTpKN44KbHGz055jXiHKm+vagga0HRhs+Xee08J8lio1ufPsf6KhRPcnxQ6mUcviy1u0jAO0+my5iY1yh1R/rg3ZaeXHOHS5COJgCHzB0VyPFXbeMHBV0bpMj5ZV57nw4N9267BOnIMUi5u7rMaxS6mFJgKemwJGtqP/aPef1Mrc1C30YFkig81bAwoH4hFV/iwlfofEdGiafbBUHyBMvHNXDbrXVa78vkKrYjX6CH8tvaxhclLUZxpZPjG6B8GJ7tg/o3VXYIIMdh08/J0SVIRzFArUIak1Fh+ru+HEdhnAVxoivMq/04QTocDofDVWyHw+FwgnQ4HA4nSIfD4XCCdDgcDidIh8Ph6HT8T4ABAB91/nepRFURAAAAAElFTkSuQmCC</xsl:text>
</xsl:variable>
- <xsl:strip-space elements="un:xref"/>
+ <xsl:strip-space xmlns:redirect="http://xml.apache.org/xalan/redirect" 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(/*)"/>
+
<!-- external parameters -->
- <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="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="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="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 -->
+ <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 -->
<!-- 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"/>
@@ -876,44 +880,44 @@
<word_len>20</word_len>
...
-->
<!-- for command line debug: <xsl:variable name="table_widths_from_if" select="document($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" select="xalan:nodeset($table_widths)"/>
- <xsl:variable name="table_widths_from_if_calculated_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="table_widths_from_if_calculated" select="xalan:nodeset($table_widths_from_if_calculated_)"/>
+ <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:param name="table_if_debug">false</xsl:param> <!-- set 'true' to put debug width data before table or dl -->
+ <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:variable name="isApplyAutolayoutAlgorithm_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isApplyAutolayoutAlgorithm_">
true
</xsl:variable>
- <xsl:variable name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isApplyAutolayoutAlgorithm" select="normalize-space($isApplyAutolayoutAlgorithm_)"/>
- <xsl:variable name="isGenerateTableIF_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="isGenerateTableIF" select="normalize-space($isGenerateTableIF_)"/>
- <xsl:variable name="lang">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="lang">
<xsl:call-template name="getLang"/>
</xsl:variable>
- <xsl:variable name="inputxml_filename_prefix">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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')">
@@ -935,77 +939,86 @@
<papersize>letter</papersize>
</presentation-metadata>
</metanorma-extension>
-->
- <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: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:choose>
<xsl:when test="$papersize = 'letter'">215.9</xsl:when>
<xsl:when test="$papersize = 'a4'">210</xsl:when>
</xsl:choose>
</xsl:variable>
- <xsl:variable name="papersize_width" select="normalize-space($papersize_width_)"/>
- <xsl:variable name="papersize_height_">
+ <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:choose>
<xsl:when test="$papersize = 'letter'">279.4</xsl:when>
<xsl:when test="$papersize = 'a4'">297</xsl:when>
</xsl:choose>
</xsl:variable>
- <xsl:variable name="papersize_height" select="normalize-space($papersize_height_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="papersize_height" select="normalize-space($papersize_height_)"/>
<!-- page width in mm -->
- <xsl:variable name="pageWidth_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="pageWidth" select="normalize-space($pageWidth_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="pageWidth" select="normalize-space($pageWidth_)"/>
<!-- page height in mm -->
- <xsl:variable name="pageHeight_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="pageHeight" select="normalize-space($pageHeight_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="marginLeftRight1_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight1_">
40
</xsl:variable>
- <xsl:variable name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight1" select="normalize-space($marginLeftRight1_)"/>
- <xsl:variable name="marginLeftRight2_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight2_">
40
</xsl:variable>
- <xsl:variable name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginLeftRight2" select="normalize-space($marginLeftRight2_)"/>
- <xsl:variable name="marginTop_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginTop_">
30
</xsl:variable>
- <xsl:variable name="marginTop" select="normalize-space($marginTop_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginTop" select="normalize-space($marginTop_)"/>
- <xsl:variable name="marginBottom_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="marginBottom_">
34
</xsl:variable>
- <xsl:variable name="marginBottom" select="normalize-space($marginBottom_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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: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>
+
<!-- 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 name="titles_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -1046,61 +1059,61 @@
<title-subpart lang="en">Sub-part #</title-subpart>
<title-subpart lang="fr">Partie de sub #</title-subpart>
</xsl:variable>
- <xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="titles" select="xalan:nodeset($titles_)"/>
- <xsl:variable name="title-list-tables">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="title-list-figures">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="title-list-recommendations">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibdata">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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 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>
- <xsl:template name="getTitle">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getTitle">
<xsl:param name="name"/>
<xsl:param name="lang"/>
<xsl:variable name="lang_">
<xsl:choose>
<xsl:when test="$lang != ''">
@@ -1121,30 +1134,30 @@
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <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="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
- <xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/>
<!-- ====================================== -->
<!-- STYLES -->
<!-- ====================================== -->
- <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: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: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 name="insertRootStyle">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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']">
@@ -1224,240 +1237,240 @@
</xsl:choose> -->
</xsl:for-each>
</xsl:template> <!-- insertRootStyle -->
<!-- Preface sections styles -->
- <xsl:attribute-set name="copyright-statement-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-style">
</xsl:attribute-set> <!-- copyright-statement-style -->
- <xsl:attribute-set name="copyright-statement-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-title-style">
</xsl:attribute-set> <!-- copyright-statement-title-style -->
- <xsl:attribute-set name="copyright-statement-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="copyright-statement-p-style">
</xsl:attribute-set> <!-- copyright-statement-p-style -->
- <xsl:attribute-set name="license-statement-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-style">
</xsl:attribute-set>
- <xsl:attribute-set name="license-statement-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- license-statement-title-style -->
- <xsl:attribute-set name="license-statement-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="license-statement-p-style">
</xsl:attribute-set> <!-- license-statement-p-style -->
- <xsl:attribute-set name="legal-statement-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-style">
</xsl:attribute-set> <!-- legal-statement-style -->
- <xsl:attribute-set name="legal-statement-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- legal-statement-title-style -->
- <xsl:attribute-set name="legal-statement-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="legal-statement-p-style">
</xsl:attribute-set> <!-- legal-statement-p-style -->
- <xsl:attribute-set name="feedback-statement-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-style">
</xsl:attribute-set> <!-- feedback-statement-style -->
- <xsl:attribute-set name="feedback-statement-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-title-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- feedback-statement-title-style -->
- <xsl:attribute-set name="feedback-statement-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="feedback-statement-p-style">
</xsl:attribute-set> <!-- feedback-statement-p-style -->
<!-- End Preface sections styles -->
- <xsl:attribute-set name="link-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="link-style">
</xsl:attribute-set>
- <xsl:template name="refine_link-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_link-style">
</xsl:template> <!-- refine_link-style -->
- <xsl:attribute-set name="sourcecode-container-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sourcecode-container-style">
</xsl:attribute-set>
- <xsl:attribute-set name="sourcecode-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_sourcecode-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_sourcecode-style">
</xsl:template> <!-- refine_sourcecode-style -->
- <xsl:attribute-set name="pre-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="permission-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-style">
</xsl:attribute-set>
- <xsl:attribute-set name="permission-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-name-style">
</xsl:attribute-set>
- <xsl:attribute-set name="permission-label-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="permission-label-style">
</xsl:attribute-set>
- <xsl:attribute-set name="requirement-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-style">
</xsl:attribute-set>
- <xsl:attribute-set name="requirement-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="requirement-label-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="requirement-label-style">
</xsl:attribute-set>
- <xsl:attribute-set name="subject-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="subject-style">
</xsl:attribute-set>
- <xsl:attribute-set name="inherit-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="inherit-style">
</xsl:attribute-set>
- <xsl:attribute-set name="description-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="description-style">
</xsl:attribute-set>
- <xsl:attribute-set name="specification-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="specification-style">
</xsl:attribute-set>
- <xsl:attribute-set name="measurement-target-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="measurement-target-style">
</xsl:attribute-set>
- <xsl:attribute-set name="verification-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="verification-style">
</xsl:attribute-set>
- <xsl:attribute-set name="import-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="import-style">
</xsl:attribute-set>
- <xsl:attribute-set name="component-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="component-style">
</xsl:attribute-set>
- <xsl:attribute-set name="recommendation-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-style">
</xsl:attribute-set>
- <xsl:attribute-set name="recommendation-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-name-style">
</xsl:attribute-set>
- <xsl:attribute-set name="recommendation-label-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recommendation-label-style">
</xsl:attribute-set>
- <xsl:attribute-set name="termexample-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termexample-style">
</xsl:attribute-set>
- <xsl:template name="refine_termexample-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termexample-style">
</xsl:template>
- <xsl:attribute-set name="example-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-style">
</xsl:attribute-set> <!-- example-style -->
- <xsl:template name="refine_example-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_example-style">
</xsl:template> <!-- refine_example-style -->
- <xsl:attribute-set name="example-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="example-body-style">
</xsl:attribute-set> <!-- example-body-style -->
- <xsl:attribute-set name="example-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_example-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_example-name-style">
</xsl:template>
- <xsl:attribute-set name="example-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_example-p-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="termexample-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termexample-name-style">
</xsl:attribute-set> <!-- termexample-name-style -->
- <xsl:template name="refine_termexample-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termexample-name-style">
</xsl:template>
<!-- ========================== -->
<!-- Table styles -->
<!-- ========================== -->
- <xsl:variable name="table-border_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-border_">
</xsl:variable>
- <xsl:variable name="table-border" select="normalize-space($table-border_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-border" select="normalize-space($table-border_)"/>
- <xsl:variable name="table-cell-border_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-cell-border_">
</xsl:variable>
- <xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-cell-border" select="normalize-space($table-cell-border_)"/>
- <xsl:attribute-set name="table-container-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-container-style">
<xsl:attribute name="margin-left">0mm</xsl:attribute>
<xsl:attribute name="margin-right">0mm</xsl:attribute>
<xsl:attribute name="space-after">12pt</xsl:attribute>
</xsl:attribute-set> <!-- table-container-style -->
- <xsl:template name="refine_table-container-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -1466,17 +1479,17 @@
</xsl:if>
<!-- end table block-container attributes -->
</xsl:template> <!-- refine_table-container-style -->
- <xsl:attribute-set name="table-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-style">
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
<xsl:attribute name="table-layout">fixed</xsl:attribute>
</xsl:attribute-set><!-- table-style -->
- <xsl:template name="refine_table-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -1489,11 +1502,11 @@
<xsl:attribute name="border-bottom">1.5pt solid black</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_table-style -->
- <xsl:attribute-set name="table-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="margin-top">12pt</xsl:attribute>
@@ -1501,61 +1514,61 @@
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-name-style -->
- <xsl:template name="refine_table-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-name-style">
<xsl:param name="continued"/>
</xsl:template> <!-- refine_table-name-style -->
- <xsl:attribute-set name="table-row-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-row-style">
<xsl:attribute name="min-height">4mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="table-header-row-style" use-attribute-sets="table-row-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-header-row-style" use-attribute-sets="table-row-style">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_table-header-row-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-row-style">
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-header-row-style -->
- <xsl:attribute-set name="table-footer-row-style" use-attribute-sets="table-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>
- <xsl:template name="refine_table-footer-row-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-footer-row-style">
</xsl:template> <!-- refine_table-footer-row-style -->
- <xsl:attribute-set name="table-body-row-style" use-attribute-sets="table-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>
- <xsl:template name="refine_table-body-row-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-body-row-style">
<xsl:call-template name="setBordersTableArray"/>
</xsl:template> <!-- refine_table-body-row-style -->
- <xsl:attribute-set name="table-header-cell-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-header-cell-style -->
- <xsl:template name="refine_table-header-cell-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-cell-style">
<xsl:call-template name="setBordersTableArray"/>
<xsl:if test="ancestor::*[local-name()='sections']">
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
@@ -1578,21 +1591,21 @@
<xsl:call-template name="setTableCellAttributes"/>
</xsl:template> <!-- refine_table-header-cell-style -->
- <xsl:attribute-set name="table-cell-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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="border">solid black 1pt</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- table-cell-style -->
- <xsl:template name="refine_table-cell-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-cell-style">
<xsl:if test="$lang = 'ar'">
<xsl:attribute name="padding-right">1mm</xsl:attribute>
</xsl:if>
@@ -1605,71 +1618,71 @@
<xsl:attribute name="padding-top">1mm</xsl:attribute>
</xsl:if>
</xsl:template> <!-- refine_table-cell-style -->
- <xsl:attribute-set name="table-footer-cell-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_table-footer-cell-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-footer-cell-style">
</xsl:template> <!-- refine_table-footer-cell-style -->
- <xsl:attribute-set name="table-note-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_table-note-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-note-style">
</xsl:template> <!-- refine_table-note-style -->
- <xsl:attribute-set name="table-fn-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-fn-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set> <!-- table-fn-style -->
- <xsl:template name="refine_table-fn-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-fn-style">
</xsl:template>
- <xsl:attribute-set name="table-fn-number-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_table-fn-number-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-fn-number-style">
</xsl:template>
- <xsl:attribute-set name="fn-container-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-container-body-style">
<xsl:attribute name="text-indent">0</xsl:attribute>
<xsl:attribute name="start-indent">0</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="table-fn-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-fn-body-style">
</xsl:attribute-set>
- <xsl:attribute-set name="figure-fn-number-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="figure-fn-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-fn-body-style">
<xsl:attribute name="text-align">justify</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set>
<!-- ========================== -->
@@ -1678,484 +1691,484 @@
<!-- ========================== -->
<!-- Definition's list styles -->
<!-- ========================== -->
- <xsl:attribute-set name="dl-block-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dl-block-style">
</xsl:attribute-set>
- <xsl:attribute-set name="dt-row-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-row-style">
</xsl:attribute-set>
- <xsl:attribute-set name="dt-cell-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-cell-style">
</xsl:attribute-set>
- <xsl:template name="refine_dt-cell-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dt-cell-style">
</xsl:template> <!-- refine_dt-cell-style -->
- <xsl:attribute-set name="dt-block-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dt-block-style">
<xsl:attribute name="margin-top">0pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_dt-block-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dt-block-style">
</xsl:template> <!-- refine_dt-block-style -->
- <xsl:attribute-set name="dl-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">bold</xsl:attribute>
</xsl:attribute-set> <!-- dl-name-style -->
- <xsl:attribute-set name="dd-cell-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="dd-cell-style">
<xsl:attribute name="padding-left">2mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_dd-cell-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dd-cell-style">
</xsl:template> <!-- refine_dd-cell-style -->
<!-- ========================== -->
<!-- END Definition's list styles -->
<!-- ========================== -->
- <xsl:attribute-set name="appendix-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="appendix-style">
</xsl:attribute-set>
- <xsl:attribute-set name="appendix-example-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="appendix-example-style">
</xsl:attribute-set>
- <xsl:attribute-set name="xref-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="xref-style">
</xsl:attribute-set>
- <xsl:attribute-set name="eref-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="eref-style">
</xsl:attribute-set>
- <xsl:template name="refine_eref-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="note-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-style">
<xsl:attribute name="margin-top">3pt</xsl:attribute>
<xsl:attribute name="border-top">0.1mm solid black</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_note-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_note-style">
<xsl:if test="../@type = 'source' or ../@type = 'abbreviation'">
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:variable name="note-body-indent">10mm</xsl:variable>
- <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
+ <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:attribute-set name="note-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-name-style">
</xsl:attribute-set>
- <xsl:template name="refine_note-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_note-name-style">
</xsl:template> <!-- refine_note-name-style -->
- <xsl:attribute-set name="table-note-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="table-note-name-style">
<xsl:attribute name="padding-right">2mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_table-note-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="note-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="note-p-style">
<xsl:attribute name="margin-top">3pt</xsl:attribute>
<!-- <xsl:attribute name="border-top">0.1mm solid black</xsl:attribute> -->
<xsl:attribute name="space-after">12pt</xsl:attribute>
<xsl:attribute name="text-indent">0</xsl:attribute>
<xsl:attribute name="padding-top">1.5mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="termnote-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-style">
<xsl:attribute name="margin-top">4pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_termnote-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termnote-style">
</xsl:template> <!-- refine_termnote-style -->
- <xsl:attribute-set name="termnote-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-name-style">
</xsl:attribute-set>
- <xsl:template name="refine_termnote-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termnote-name-style">
</xsl:template>
- <xsl:attribute-set name="termnote-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termnote-p-style">
</xsl:attribute-set>
- <xsl:attribute-set name="quote-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="quote-style">
<xsl:attribute name="margin-left">12mm</xsl:attribute>
<xsl:attribute name="margin-right">12mm</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_quote-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_quote-style">
</xsl:template>
- <xsl:attribute-set name="quote-source-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="quote-source-style">
<xsl:attribute name="text-align">right</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="termsource-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termsource-style">
</xsl:attribute-set>
- <xsl:template name="refine_termsource-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_termsource-style">
</xsl:template> <!-- refine_termsource-style -->
- <xsl:attribute-set name="termsource-text-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="termsource-text-style">
</xsl:attribute-set>
- <xsl:attribute-set name="origin-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="origin-style">
</xsl:attribute-set>
- <xsl:attribute-set name="term-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="term-style">
</xsl:attribute-set>
- <xsl:attribute-set name="term-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="figure-block-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-block-style">
<xsl:attribute name="role">SKIP</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_figure-block-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure-block-style">
</xsl:template>
- <xsl:attribute-set name="figure-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-style">
</xsl:attribute-set>
- <xsl:attribute-set name="figure-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-name-style">
<xsl:attribute name="role">Caption</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="font-size">9pt</xsl:attribute>
<xsl:attribute name="space-after">6pt</xsl:attribute>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_figure-name-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure-name-style">
</xsl:template> <!-- refine_figure-name-style -->
- <xsl:attribute-set name="figure-source-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-source-style">
</xsl:attribute-set>
<!-- Formula's styles -->
- <xsl:attribute-set name="formula-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="formula-stem-block-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="formula-stem-block-style">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set> <!-- formula-stem-block-style -->
- <xsl:template name="refine_formula-stem-block-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="formula-stem-number-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_formula-stem-number-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_formula-stem-number-style">
</xsl:template>
- <xsl:attribute-set name="image-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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-set>
- <xsl:template name="refine_image-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_image-style">
<xsl:if test="ancestor::un:admonition">
<xsl:attribute name="margin-top">-12mm</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:attribute-set name="figure-pseudocode-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="figure-pseudocode-p-style">
</xsl:attribute-set>
- <xsl:attribute-set name="image-graphic-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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-height">scale-to-fit</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="tt-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tt-style">
</xsl:attribute-set>
- <xsl:attribute-set name="sourcecode-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="preferred-block-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="preferred-block-style">
</xsl:attribute-set>
- <xsl:attribute-set name="preferred-term-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="domain-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="domain-style">
</xsl:attribute-set>
- <xsl:attribute-set name="admitted-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admitted-style">
</xsl:attribute-set>
- <xsl:attribute-set name="deprecates-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="deprecates-style">
</xsl:attribute-set>
- <xsl:attribute-set name="definition-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="definition-style">
</xsl:attribute-set>
- <xsl:variable name="color-added-text">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="color-added-text">
<xsl:text>rgb(0, 255, 0)</xsl:text>
</xsl:variable>
- <xsl:attribute-set name="add-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="add-style">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="add-style">
<add-style xsl:use-attribute-sets="add-style"/>
</xsl:variable>
- <xsl:template name="append_add-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="append_add-style">
<xsl:copy-of select="xalan:nodeset($add-style)/add-style/@*"/>
</xsl:template>
- <xsl:variable name="color-deleted-text">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="color-deleted-text">
<xsl:text>red</xsl:text>
</xsl:variable>
- <xsl:attribute-set name="del-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="mathml-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="mathml-style">
<xsl:attribute name="font-family">STIX Two Math</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_mathml-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_mathml-style">
</xsl:template>
- <xsl:attribute-set name="list-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-style">
<xsl:attribute name="provisional-distance-between-starts">3.5mm</xsl:attribute>
<xsl:attribute name="margin-left">7mm</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- list-style -->
- <xsl:template name="refine_list-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-style">
</xsl:template> <!-- refine_list-style -->
- <xsl:attribute-set name="list-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set> <!-- list-name-style -->
- <xsl:attribute-set name="list-item-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-style">
</xsl:attribute-set>
- <xsl:template name="refine_list-item-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-style">
</xsl:template> <!-- refine_list-item-style -->
- <xsl:attribute-set name="list-item-label-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-label-style">
</xsl:attribute-set>
- <xsl:template name="refine_list-item-label-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-label-style">
</xsl:template> <!-- refine_list-item-label-style -->
- <xsl:attribute-set name="list-item-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="list-item-body-style">
</xsl:attribute-set>
- <xsl:template name="refine_list-item-body-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list-item-body-style">
</xsl:template> <!-- refine_list-item-body-style -->
- <xsl:attribute-set name="toc-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="toc-style">
<xsl:attribute name="line-height">135%</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="fn-reference-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_fn-reference-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-reference-style">
</xsl:template> <!-- refine_fn-reference-style -->
- <xsl:attribute-set name="fn-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-style">
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="fn-num-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="fn-num-style">
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
<xsl:attribute name="font-size">55%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="fn-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
<xsl:attribute name="font-size">9pt</xsl:attribute>
<xsl:attribute name="line-height">125%</xsl:attribute>
</xsl:attribute-set>
- <xsl:template name="refine_fn-body-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-body-style">
</xsl:template> <!-- refine_fn-body-style -->
- <xsl:attribute-set name="fn-body-num-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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="padding-right">1mm</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:attribute-set> <!-- fn-body-num-style -->
- <xsl:template name="refine_fn-body-num-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_fn-body-num-style">
</xsl:template> <!-- refine_fn-body-num-style -->
<!-- admonition -->
- <xsl:attribute-set name="admonition-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-style">
<xsl:attribute name="border">0.25pt solid black</xsl:attribute>
<xsl:attribute name="margin-top">7mm</xsl:attribute>
<xsl:attribute name="margin-left">-9mm</xsl:attribute>
<xsl:attribute name="margin-right">-14mm</xsl:attribute>
<xsl:attribute name="padding-top">3mm</xsl:attribute>
<xsl:attribute name="margin-bottom">16pt</xsl:attribute>
</xsl:attribute-set> <!-- admonition-style -->
- <xsl:attribute-set name="admonition-container-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">20mm</xsl:attribute>
<xsl:attribute name="margin-right">20mm</xsl:attribute>
<xsl:attribute name="text-indent">0mm</xsl:attribute>
</xsl:attribute-set> <!-- admonition-container-style -->
- <xsl:attribute-set name="admonition-name-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="margin-left">20mm</xsl:attribute>
<xsl:attribute name="margin-right">25mm</xsl:attribute>
@@ -2164,270 +2177,270 @@
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:attribute-set> <!-- admonition-name-style -->
- <xsl:attribute-set name="admonition-p-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="admonition-p-style">
<xsl:attribute name="text-align">justify</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set> <!-- admonition-p-style -->
<!-- end admonition -->
<!-- bibitem in Normative References (references/@normative="true") -->
- <xsl:attribute-set name="bibitem-normative-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-normative-list-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-non-normative-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-non-normative-list-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-non-normative-list-item-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-normative-list-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitem-normative-list-body-style">
</xsl:attribute-set>
- <xsl:attribute-set name="bibitem-non-normative-list-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-note-fn-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-note-fn-number-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitem-note-fn-body-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="references-non-normative-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="references-non-normative-style">
</xsl:attribute-set> <!-- references-non-normative-style -->
<!-- Highlight.js syntax GitHub styles -->
- <xsl:attribute-set name="hljs-doctag">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-doctag">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-keyword">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-keyword">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-meta_hljs-keyword">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta_hljs-keyword">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-template-tag">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-template-tag">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-template-variable">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-template-variable">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-type">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-type">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-variable_and_language_">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-variable_and_language_">
<xsl:attribute name="color">#d73a49</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-title">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-title_and_class_">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_class_">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-title_and_class__and_inherited__">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_class__and_inherited__">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-title_and_function_">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-title_and_function_">
<xsl:attribute name="color">#6f42c1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-attr">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-attr">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-attribute">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-attribute">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-literal">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-literal">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-meta">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-number">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-number">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-operator">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-operator">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-variable">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-variable">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-selector-attr">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-attr">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-selector-class">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-class">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-selector-id">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-id">
<xsl:attribute name="color">#005cc5</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-regexp">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-regexp">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-string">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-string">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-meta_hljs-string">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-meta_hljs-string">
<xsl:attribute name="color">#032f62</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-built_in">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-built_in">
<xsl:attribute name="color">#e36209</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-symbol">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-symbol">
<xsl:attribute name="color">#e36209</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-comment">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-comment">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-code">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-code">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-formula">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-formula">
<xsl:attribute name="color">#6a737d</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-name">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-name">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-quote">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-quote">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-selector-tag">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-tag">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-selector-pseudo">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-selector-pseudo">
<xsl:attribute name="color">#22863a</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-subst">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-subst">
<xsl:attribute name="color">#24292e</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-section">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-section">
<xsl:attribute name="color">#005cc5</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-bullet">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-bullet">
<xsl:attribute name="color">#735c0f</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-emphasis">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-emphasis">
<xsl:attribute name="color">#24292e</xsl:attribute>
<xsl:attribute name="font-style">italic</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-strong">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-strong">
<xsl:attribute name="color">#24292e</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-addition">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-addition">
<xsl:attribute name="color">#22863a</xsl:attribute>
<xsl:attribute name="background-color">#f0fff4</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-deletion">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-deletion">
<xsl:attribute name="color">#b31d28</xsl:attribute>
<xsl:attribute name="background-color">#ffeef0</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-char_and_escape_">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-char_and_escape_">
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-link">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-link">
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-params">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-params">
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-property">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-property">
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-punctuation">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-punctuation">
</xsl:attribute-set>
- <xsl:attribute-set name="hljs-tag">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="hljs-tag">
</xsl:attribute-set>
<!-- End Highlight syntax styles -->
<!-- Index section styles -->
- <xsl:attribute-set name="indexsect-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" name="indexsect-title-style">
<xsl:attribute name="role">H1</xsl:attribute>
</xsl:attribute-set>
- <xsl:attribute-set name="indexsect-clause-title-style">
+ <xsl:attribute-set xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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="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="ace_tag">ace-tag_</xsl:variable>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ace_tag">ace-tag_</xsl:variable>
- <xsl:template name="processPrefaceSectionsDefault_Contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -2444,11 +2457,11 @@
<xsl:apply-templates select="." mode="contents"/>
</xsl:for-each>
</xsl:template>
- <xsl:template name="processMainSectionsDefault_Contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault_Contents">
<xsl:variable name="nodes_sections_">
<xsl:for-each select="/*/*[local-name()='sections']/*">
<node id="{@id}"/>
</xsl:for-each>
@@ -2476,48 +2489,85 @@
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:apply-templates select="." mode="contents"/>
</xsl:for-each>
</xsl:template>
- <xsl:template name="processTablesFigures_Contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="processTables_Contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="processFigures_Contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="processPrefaceSectionsDefault">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="processMainSectionsDefault">
+ <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')"/>
+
+ <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:call-template name="deleteFile">
+ <xsl:with-param name="filepath" select="$updated_xml_step_move_pagebreak_filename"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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:template>
+
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -2529,13 +2579,13 @@
<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="."/>
</xsl:for-each>
- </xsl:template>
+ </xsl:template><!-- END: processMainSectionsDefault -->
- <xsl:template name="processMainSectionsDefault_flatxml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault_flatxml">
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:variable name="flatxml">
<xsl:apply-templates select="." mode="flatxml"/>
</xsl:variable>
@@ -2561,15 +2611,89 @@
<!-- debug_flatxml='<xsl:copy-of select="$flatxml"/>' -->
<xsl:apply-templates select="xalan:nodeset($flatxml)/*"/>
</xsl:for-each>
</xsl:template>
- <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">
+ <!-- Example:
+ <iso-standard>
+ <sections>
+ <page_sequence>
+ <clause...
+ </page_sequence>
+ <page_sequence>
+ <clause...
+ </page_sequence>
+ </sections>
+ <page_sequence>
+ <annex ..
+ </page_sequence>
+ <page_sequence>
+ <annex ..
+ </page_sequence>
+ </iso-standard>
+ -->
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="processMainSectionsDefault_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="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: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')"/>
+
+ <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: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:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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: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: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))"/>
<xsl:call-template name="replace_fo_inline_tags">
@@ -2580,11 +2704,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="replace_fo_inline_tags">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)">
@@ -2603,16 +2727,16 @@
</xsl:when>
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name()='br']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='br']">
<xsl:value-of select="$linebreak"/>
</xsl:template>
<!-- keep-together for standard's name (ISO 12345:2020) -->
- <xsl:template match="*[local-name() = 'keep-together_within-line']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -2646,89 +2770,89 @@
</xsl:template>
<!-- ================================= -->
<!-- Preface boilerplate sections processing -->
<!-- ================================= -->
- <xsl:template match="*[local-name()='copyright-statement']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='copyright-statement']//*[local-name()='title']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='copyright-statement']//*[local-name()='p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='license-statement']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='license-statement']//*[local-name()='title']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='license-statement']//*[local-name()='p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='legal-statement']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='legal-statement']//*[local-name()='title']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='legal-statement']//*[local-name()='p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='feedback-statement']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='feedback-statement']//*[local-name()='title']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='feedback-statement']//*[local-name()='title']">
<!-- process in the template 'title' -->
<xsl:call-template name="title"/>
</xsl:template>
- <xsl:template match="*[local-name()='feedback-statement']//*[local-name()='p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -2739,47 +2863,53 @@
<!-- ================================= -->
<!-- END Preface boilerplate sections processing -->
<!-- ================================= -->
<!-- add zero spaces into table cells text -->
- <xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
+ <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: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 name="addZeroWidthSpacesToTextNodes">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
<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:template>
- <xsl:param name="table_only_with_id"/><!-- Example: table1, for table auto-layout algorithm -->
+ <!-- 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:template match="*[local-name()='table']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
+ <xsl:when test="$table_only_with_ids != '' and contains($table_only_with_ids, concat(@id, ' '))">
+ <xsl:call-template name="table"/>
+ </xsl:when>
+ <xsl:when test="$table_only_with_ids != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
<xsl:otherwise>
<xsl:call-template name="table"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name()='table']" name="table">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']" name="table">
<xsl:variable name="table-preamble">
</xsl:variable>
@@ -2830,10 +2960,11 @@
<xsl:text disable-output-escaping="yes">- -></xsl:text> -->
<xsl:variable name="margin-side">
<xsl:choose>
<xsl:when test="$isApplyAutolayoutAlgorithm = 'true'">0</xsl:when>
+ <xsl:when test="$isApplyAutolayoutAlgorithm = 'skip'">0</xsl:when>
<xsl:when test="sum(xalan:nodeset($colwidths)//column) > 75">15</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -3016,15 +3147,15 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="setBordersTableArray">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setBordersTableArray">
</xsl:template>
- <xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -3053,40 +3184,41 @@
</xsl:if>
</xsl:template> <!-- table/name -->
<!-- workaround solution for https://github.com/metanorma/metanorma-iso/issues/1151#issuecomment-2033087938 -->
- <xsl:template match="*[local-name()='table']/*[local-name() = 'note'][@type = 'units']/*[local-name() = 'p']/text()" priority="4">
+ <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: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 match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name() = 'source']" priority="2">
<xsl:call-template name="termsource"/>
</xsl:template>
- <xsl:template name="calculate-columns-numbers">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="calculate-column-widths">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
</xsl:when>
+ <xsl:when test="$isApplyAutolayoutAlgorithm = 'skip'"/>
<xsl:otherwise>
<xsl:call-template name="calculate-column-widths-proportional">
<xsl:with-param name="cols-count" select="$cols-count"/>
<xsl:with-param name="table" select="$table"/>
</xsl:call-template>
@@ -3095,11 +3227,11 @@
</xsl:template>
<!-- ================================================== -->
<!-- Calculate column's width based on text string max widths -->
<!-- ================================================== -->
- <xsl:template name="calculate-column-widths-proportional">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -3210,11 +3342,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 match="*[@keep-together.within-line or local-name() = 'keep-together_within-line']/text()" priority="2" mode="td_text">
+ <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: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 -->
@@ -3224,23 +3356,23 @@
<xsl:with-param name="count" select="string-length(normalize-space(.)) * 0.5"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template match="text()" mode="td_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="td_text">
<xsl:value-of select="translate(., $zero_width_space, ' ')"/><xsl:text> </xsl:text>
</xsl:template>
- <xsl:template match="*[local-name()='termsource']" mode="td_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='termsource']" mode="td_text">
<xsl:value-of select="*[local-name()='origin']/@citeas"/>
</xsl:template>
- <xsl:template match="*[local-name()='link']" mode="td_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='link']" mode="td_text">
<xsl:value-of select="@target"/>
</xsl:template>
- <xsl:template match="*[local-name()='math']" mode="td_text" name="math_length">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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="."/>
@@ -3268,11 +3400,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 name="calculate-column-widths-autolayout-algorithm">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 -->
@@ -3351,11 +3483,11 @@
<xsl:otherwise><unknown_case/></xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- calculate-column-widths-autolayout-algorithm -->
- <xsl:template name="get-calculated-column-widths-autolayout-algorithm">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3416,20 +3548,20 @@
<!-- ================================================== -->
<!-- Calculate column's width based on HTML4 algorithm -->
<!-- ================================================== -->
- <xsl:template match="*[local-name()='thead']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="table-header-title">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -3445,34 +3577,34 @@
</fo:table-cell>
</fo:table-row>
</xsl:template> <!-- table-header-title -->
- <xsl:template name="refine_table-header-title-style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_table-header-title-style">
</xsl:template> <!-- refine_table-header-title-style -->
- <xsl:template match="*[local-name()='thead']" mode="process_tbody">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']" mode="process_tbody">
<fo:table-body>
<xsl:apply-templates/>
</fo:table-body>
</xsl:template>
- <xsl:template match="*[local-name()='tfoot']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tfoot']">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template name="insertTableFooter">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="insertTableFooterInSeparateTable">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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']"/>
@@ -3585,11 +3717,11 @@
</xsl:if>
</xsl:if>
</xsl:template> <!-- insertTableFooterInSeparateTable -->
- <xsl:template match="*[local-name()='tbody']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']">
<xsl:variable name="cols-count">
<xsl:choose>
<xsl:when test="../*[local-name()='thead']">
<xsl:call-template name="calculate-columns-numbers">
@@ -3618,18 +3750,18 @@
</fo:table-body>
</xsl:template> <!-- tbody -->
- <xsl:template match="/" mode="process_table-if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='tbody']" mode="process_table-if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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(*)"/>
@@ -3673,22 +3805,22 @@
<!-- ===================== -->
<!-- Table's row processing -->
<!-- ===================== -->
<!-- row in table header (thead) thead/tr -->
- <xsl:template match="*[local-name()='thead']/*[local-name()='tr']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="setBorderUnderRow">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3707,22 +3839,22 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- row in table footer (tfoot), tfoot/tr -->
- <xsl:template match="*[local-name()='tfoot']/*[local-name()='tr']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='tr']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3733,19 +3865,19 @@
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template name="setTableRowAttributes">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTableRowAttributes">
</xsl:template> <!-- setTableRowAttributes -->
<!-- ===================== -->
<!-- END Table's row processing -->
<!-- ===================== -->
<!-- cell in table header row -->
- <xsl:template match="*[local-name()='th']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3755,11 +3887,11 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template> <!-- cell in table header row - 'th' -->
- <xsl:template name="setTableCellAttributes">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTableCellAttributes">
<xsl:if test="@colspan">
<xsl:attribute name="number-columns-spanned">
<xsl:value-of select="@colspan"/>
</xsl:attribute>
</xsl:if>
@@ -3769,11 +3901,11 @@
</xsl:attribute>
</xsl:if>
<xsl:call-template name="display-align"/>
</xsl:template>
- <xsl:template name="display-align">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3783,11 +3915,11 @@
</xsl:attribute>
</xsl:if>
</xsl:template>
<!-- cell in table body, footer -->
- <xsl:template match="*[local-name()='td']" name="td">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -3816,11 +3948,11 @@
</fo:block>
</fo:table-cell>
</xsl:template> <!-- td -->
- <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='table']/*[local-name()='note' or local-name() = 'example']" priority="2">
<fo:block xsl:use-attribute-sets="table-note-style">
<xsl:call-template name="refine_table-note-style"/>
@@ -3836,11 +3968,11 @@
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template> <!-- table/note -->
- <xsl:template match="*[local-name()='table']/*[local-name()='note' or local-name()='example']/*[local-name()='p']" priority="2">
+ <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:apply-templates/>
</xsl:template>
<!-- ===================== -->
<!-- Footnotes processing -->
@@ -3849,11 +3981,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 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 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">
<!-- list of footnotes to calculate actual footnotes number -->
<xsl:variable name="p_fn_">
<xsl:call-template name="get_fn_list"/>
<!-- <xsl:choose>
@@ -3959,11 +4091,11 @@
<xsl:copy-of select="$footnote_inline"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- fn in text -->
- <xsl:template name="get_fn_list">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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()"/>
@@ -3979,11 +4111,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])]">
@@ -3996,11 +4128,11 @@
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="get_fn_list_for_element">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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()"/>
@@ -4021,11 +4153,11 @@
</xsl:choose>
</xsl:template>
<!-- ============================ -->
<!-- table's footnotes rendering -->
<!-- ============================ -->
- <xsl:template name="table_fn_display">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -4051,19 +4183,19 @@
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template name="create_fn">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="create_fn">
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
<xsl:apply-templates/>
</fn>
</xsl:template>
<!-- footnotes for table's name rendering -->
- <xsl:template name="table_name_fn_display">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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/>
@@ -4073,11 +4205,11 @@
<!-- ============================ -->
<!-- EMD table's footnotes rendering -->
<!-- ============================ -->
<!-- figure's footnotes rendering -->
- <xsl:template name="fn_display_figure">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -4190,11 +4322,11 @@
</xsl:if>
</xsl:template> <!-- fn_display_figure -->
<!-- fn reference in the text rendering (for instance, 'some text 1) some text' ) -->
- <xsl:template match="*[local-name()='fn']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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-->
@@ -4203,15 +4335,15 @@
</fo:basic-link>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name()='fn']/text()[normalize-space() != '']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']/text()[normalize-space() != '']">
<fo:inline role="SKIP"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name()='fn']//*[local-name()='p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']//*[local-name()='p']">
<fo:inline role="P">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!-- ===================== -->
@@ -4221,23 +4353,27 @@
<!-- ===================== -->
<!-- Definition List -->
<!-- ===================== -->
<!-- for table auto-layout algorithm -->
- <xsl:template match="*[local-name()='dl']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
+ <xsl:when test="$table_only_with_ids != '' and contains($table_only_with_ids, concat(@id, ' '))">
+ <xsl:call-template name="dl"/>
+ </xsl:when>
+ <xsl:when test="$table_only_with_ids != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
<xsl:otherwise>
<xsl:call-template name="dl"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name()='dl']" name="dl">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -4390,11 +4526,11 @@
</tr>
-->
<!-- create virtual html table for dl/[dt and dd] -->
<xsl:variable name="simple-table">
-
+ <!-- initial='<xsl:copy-of select="."/>' -->
<xsl:variable name="dl_table">
<tbody>
<xsl:apply-templates mode="dl_if">
<xsl:with-param name="id" select="@id"/>
</xsl:apply-templates>
@@ -4517,41 +4653,41 @@
<xsl:apply-templates select="*[local-name() = 'dd']/*[local-name() = 'dl']"/>
</xsl:if>
</xsl:template> <!-- END: dl -->
- <xsl:template name="refine_dl_formula_where_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_dl_formula_where_style">
</xsl:template> <!-- refine_dl_formula_where_style -->
- <xsl:template name="refine_figure_key_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_figure_key_style">
</xsl:template> <!-- refine_figure_key_style -->
- <xsl:template name="refine_multicomponent_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_multicomponent_style">
<xsl:variable name="parent" select="local-name(..)"/>
</xsl:template> <!-- refine_multicomponent_style -->
- <xsl:template name="refine_multicomponent_block_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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() = 'formula']/*[local-name() = 'p' and @keep-with-next = 'true' and following-sibling::*[1][local-name() = 'dl']]"/>
- <xsl:template match="*[local-name() = 'dl']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="setColumnWidth_dl">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setColumnWidth_dl">
<xsl:param name="colwidths"/>
<xsl:param name="maxlength_dt"/>
<xsl:param name="isContainsKeepTogetherTag"/>
<!-- <colwidths><xsl:copy-of select="$colwidths"/></colwidths> -->
@@ -4615,11 +4751,11 @@
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="insertTableColumnWidth">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertTableColumnWidth">
<xsl:param name="colwidths"/>
<xsl:for-each select="xalan:nodeset($colwidths)//column">
<xsl:choose>
<xsl:when test=". = 1 or . = 0">
@@ -4635,11 +4771,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
- <xsl:template name="getMaxLength_dt">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -4660,11 +4796,11 @@
<xsl:value-of select="$maxLength"/>
</xsl:template>
<!-- note in definition list: dl/note -->
<!-- renders in the 2-column spanned table row -->
- <xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dl']/*[local-name()='note']" priority="2">
<xsl:param name="key_iso"/>
<!-- <tr>
<td>NOTE</td>
<td>
<xsl:apply-templates />
@@ -4699,11 +4835,11 @@
</fo:table-cell>
</fo:table-row>
</xsl:template> <!-- END: dl/note -->
<!-- virtual html table for dl/[dt and dd] -->
- <xsl:template match="*[local-name()='dt']" mode="dl">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -4724,11 +4860,11 @@
</tr>
</xsl:template>
<!-- Definition's term -->
- <xsl:template match="*[local-name()='dt']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -4742,11 +4878,11 @@
</xsl:call-template>
</xsl:for-each>
</fo:table-row>
</xsl:template> <!-- END: dt -->
- <xsl:template name="insert_dt_cell">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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'">
@@ -4775,11 +4911,11 @@
</fo:block>
</fo:table-cell>
</xsl:template> <!-- insert_dt_cell -->
- <xsl:template name="insert_dd_cell">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 -->
@@ -4815,27 +4951,27 @@
</fo:table-cell>
</xsl:template> <!-- insert_dd_cell -->
<!-- END Definition's term -->
- <xsl:template match="*[local-name()='dd']" mode="dl"/>
- <xsl:template match="*[local-name()='dd']" mode="dl_process">
+ <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:apply-templates/>
</xsl:template>
- <xsl:template match="*[local-name()='dd']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='dd']/*" mode="inline">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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'">
@@ -4846,11 +4982,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- virtual html table for dl/[dt and dd] for IF (Intermediate Format) -->
- <xsl:template match="*[local-name()='dt']" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dt']" mode="dl_if">
<xsl:param name="id"/>
<tr>
<td>
<xsl:copy-of select="node()"/>
</td>
@@ -4860,27 +4996,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 match="*[local-name()='dd']" mode="dl_if"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl_if"/>
- <xsl:template match="*" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="dl_if">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template match="*[local-name() = 'p']" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'ul' or local-name() = 'ol']" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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_)"/>
@@ -4893,58 +5029,58 @@
<xsl:apply-templates mode="dl_if">
<xsl:with-param name="indent" select="$indent"/>
</xsl:apply-templates>
</xsl:template>
- <xsl:template match="*[local-name() = 'li']" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="@provisional-distance-between-starts" mode="dl_if">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='dl']" mode="dl_if_nested">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='dd']" mode="dl_if_nested"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='dd']" mode="dl_if_nested"/>
<!-- ===================== -->
<!-- END Definition List -->
<!-- ===================== -->
<!-- default: ignore title in sections/p -->
- <xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>
<!-- ========================= -->
<!-- Rich text formatting -->
<!-- ========================= -->
- <xsl:template match="*[local-name()='em']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="refine_italic_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_italic_style">
</xsl:template>
- <xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -4952,34 +5088,34 @@
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
</xsl:apply-templates>
</fo:inline>
</xsl:template>
- <xsl:template name="refine_strong_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_strong_style">
<xsl:if test="ancestor::*['preferred']">
<xsl:attribute name="role">SKIP</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name()='padding']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='padding']">
<fo:inline padding-right="{@value}"> </fo:inline>
</xsl:template>
- <xsl:template match="*[local-name()='sup']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sup']">
<fo:inline font-size="80%" vertical-align="super">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name()='sub']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sub']">
<fo:inline font-size="80%" vertical-align="sub">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name()='tt']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tt']">
<fo:inline xsl:use-attribute-sets="tt-style">
<xsl:variable name="_font-size">
<!-- inherit -->
@@ -4998,12 +5134,12 @@
</xsl:if>
<xsl:apply-templates/>
</fo:inline>
</xsl:template> <!-- tt -->
- <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
- <xsl:template match="*[local-name()='tt']/text()" priority="2">
+ <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: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>
@@ -5011,20 +5147,20 @@
<xsl:call-template name="add_spaces_to_sourcecode"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name()='underline']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='underline']">
<fo:inline text-decoration="underline">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!-- ================= -->
<!-- Added,deleted text -->
<!-- ================= -->
- <xsl:template match="*[local-name()='add'] | *[local-name() = 'change-open-tag'] | *[local-name() = 'change-close-tag']" name="tag_add">
+ <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:param name="skip">true</xsl:param>
<xsl:param name="block">false</xsl:param>
<xsl:param name="type"/>
<xsl:param name="text-align"/>
<xsl:choose>
@@ -5118,11 +5254,11 @@
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- add -->
- <xsl:template name="insertTag">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -5168,27 +5304,27 @@
</text>
</svg>
</fo:instream-foreign-object>
</xsl:template>
- <xsl:template match="*[local-name()='del']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='hi']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='hi']">
<fo:inline background-color="yellow">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -5231,11 +5367,11 @@
</xsl:for-each>
</xsl:if>
</fo:inline>
</xsl:template>
- <xsl:template name="recursiveSmallCaps">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="recursiveSmallCaps">
<xsl:param name="text"/>
<xsl:param name="ratio"/>
<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))"/>
@@ -5255,18 +5391,18 @@
<xsl:with-param name="ratio" select="$ratio"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'pagebreak']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'span'][@style]" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -5310,41 +5446,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 match="*[local-name() = 'span']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'span'][@class = 'stdpublisher' or @class = 'stddocNumber' or @class = 'stddocPartNumber' or @class = 'stdyear']" priority="2">
+ <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: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 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 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">
<fo:inline keep-with-next.within-line="always"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'span'][contains(@style, 'text-transform:none')]//text()" priority="5">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="tokenize">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tokenize">
<xsl:param name="text"/>
<xsl:param name="separator" select="' '"/>
<xsl:choose>
<xsl:when test="$isGenerateTableIF = 'true' and not(contains($text, $separator))">
@@ -5410,11 +5546,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- split string 'text' by 'separator', enclosing in formatting tags -->
- <xsl:template name="tokenize_with_tags">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="tokenize_with_tags">
<xsl:param name="tags"/>
<xsl:param name="text"/>
<xsl:param name="separator" select="' '"/>
<xsl:choose>
@@ -5447,11 +5583,11 @@
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="enclose_text_in_tags">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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])"/>
@@ -5469,21 +5605,21 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- get max value in array -->
- <xsl:template name="max_length">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="add-zero-spaces-java">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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, ; -->
@@ -5517,11 +5653,11 @@
<xsl:variable name="text11" select="java:replaceAll(java:java.lang.String.new($text10), '\u200b ', ' ')"/>
<xsl:value-of select="$text11"/>
</xsl:template>
- <xsl:template name="add-zero-spaces-link-java">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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, @ -->
@@ -5533,11 +5669,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 name="add-zero-spaces">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -5588,11 +5724,11 @@
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="add-zero-spaces-equal">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -5621,11 +5757,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Table normalization (colspan,rowspan processing for adding TDs) for column width calculation -->
- <xsl:template name="getSimpleTable">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getSimpleTable">
<xsl:param name="id"/>
<!-- <test0>
<xsl:copy-of select="."/>
</test0> -->
@@ -5664,26 +5800,26 @@
</xsl:template>
<!-- ================================== -->
<!-- Step 0. replace <br/> to <p>...</p> -->
<!-- ================================== -->
- <xsl:template match="@*|node()" mode="table-without-br">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="table-without-br">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="table-without-br"/>
</xsl:copy>
</xsl:template>
- <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: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:copy>
<xsl:copy-of select="@*"/>
<p>
<xsl:copy-of select="node()"/>
</p>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td'][*[local-name()='br']]" mode="table-without-br">
+ <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:copy>
<xsl:copy-of select="@*"/>
<xsl:for-each select="*[local-name()='br']">
<xsl:variable name="current_id" select="generate-id()"/>
<p>
@@ -5700,11 +5836,11 @@
</xsl:if>
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p'][*[local-name()='br']]" mode="table-without-br">
+ <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: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="."/>
@@ -5718,15 +5854,15 @@
</p>
</xsl:if>
</xsl:for-each>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']" mode="table-without-br">
+ <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:apply-templates mode="table-without-br"/>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'sourcecode']/text()[contains(., ' ') or contains(., ' ')]" mode="table-without-br">
+ <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: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">
@@ -5741,20 +5877,20 @@
</p>
</xsl:for-each>
</xsl:template>
<!-- remove redundant white spaces -->
- <xsl:template match="text()[not(ancestor::*[local-name() = 'sourcecode'])]" mode="table-without-br">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='th' or local-name()='td']//*[local-name() = 'ol' or local-name() = 'ul']" mode="table-without-br">
+ <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:apply-templates mode="table-without-br"/>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td']//*[local-name() = 'li']" mode="table-without-br">
+ <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:apply-templates mode="table-without-br"/>
</xsl:template>
<!-- mode="table-without-br" -->
<!-- ================================== -->
@@ -5769,16 +5905,16 @@
1.4. remove namespace
1.5. remove @colspan attribute
1.6. add @divide attribute for divide text width in further processing
-->
<!-- ===================== -->
- <xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
<xsl:apply-templates mode="simple-table-colspan"/>
</xsl:template>
- <xsl:template match="*[local-name()='fn']" mode="simple-table-colspan"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='fn']" mode="simple-table-colspan"/>
- <xsl:template match="*[local-name()='th'] | *[local-name()='td']" 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: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>
@@ -5804,27 +5940,27 @@
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="@colspan" mode="simple-table-colspan"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@colspan" mode="simple-table-colspan"/>
- <xsl:template match="*[local-name()='tr']" mode="simple-table-colspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="@*|node()" mode="simple-table-colspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="repeatNode">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="repeatNode">
<xsl:param name="count"/>
<xsl:param name="node"/>
<xsl:if test="$count > 0">
<xsl:call-template name="repeatNode">
@@ -5840,26 +5976,26 @@
<!-- ===================== -->
<!-- 2. mode "simple-table-rowspan"
Row span processing, more information http://andrewjwelch.com/code/xslt/table/table-normalization.html -->
<!-- ===================== -->
- <xsl:template match="@*|node()" mode="simple-table-rowspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="simple-table-rowspan">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="simple-table-rowspan"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="tbody" mode="simple-table-rowspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="tr" mode="simple-table-rowspan">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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]">
@@ -5913,50 +6049,50 @@
</xsl:template>
<!-- End mode simple-table-rowspan -->
<!-- Step 3: add id for each cell -->
<!-- mode: simple-table-id -->
- <xsl:template match="/" mode="simple-table-id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="@*|node()" mode="simple-table-id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='tbody']" mode="simple-table-id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="font_main_root_style">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="font_main_root_style">
<root-style xsl:use-attribute-sets="root-style">
</root-style>
</xsl:variable>
- <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: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: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 match="*[local-name()='th' or local-name()='td']" mode="simple-table-id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6047,11 +6183,11 @@
</xsl:if>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name()='th' or local-name()='td']/*[local-name() = 'p']//*" mode="simple-table-noid">
+ <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: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'">
@@ -6071,19 +6207,19 @@
<!-- ===================== -->
<!-- =============================== -->
<!-- mode="td_text_with_formatting" -->
<!-- =============================== -->
- <xsl:template match="@*|node()" mode="td_text_with_formatting">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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() = 'stem' or local-name() = 'image']" mode="td_text_with_formatting"/>
- <xsl:template match="*[local-name() = 'keep-together_within-line']/text()" 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:variable name="formatting_tags">
<xsl:call-template name="getFormattingTags"/>
</xsl:variable>
<word>
<xsl:call-template name="enclose_text_in_tags">
@@ -6091,11 +6227,11 @@
<xsl:with-param name="tags" select="$formatting_tags"/>
</xsl:call-template>
</word>
</xsl:template>
- <xsl:template match="*[local-name() != 'keep-together_within-line']/text()" 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:variable name="td_text" select="."/>
<xsl:variable name="string_with_added_zerospaces">
<xsl:call-template name="add-zero-spaces-java">
@@ -6112,11 +6248,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 match="*[local-name() = 'link'][normalize-space() = '']" mode="td_text_with_formatting">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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:')">
@@ -6133,11 +6269,11 @@
<xsl:for-each select="xalan:nodeset($link)/*">
<xsl:apply-templates mode="td_text_with_formatting"/>
</xsl:for-each>
</xsl:template>
- <xsl:template name="getFormattingTags">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6148,11 +6284,11 @@
</xsl:template>
<!-- =============================== -->
<!-- END mode="td_text_with_formatting" -->
<!-- =============================== -->
- <xsl:template name="getLang">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6181,11 +6317,11 @@
<xsl:when test="$language = 'English'">en</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="getLang_fromCurrentNode">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6208,11 +6344,11 @@
<xsl:when test="$language = 'English'">en</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="capitalizeWords">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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, ' ')"/>
@@ -6230,20 +6366,20 @@
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="capitalize">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="mathml:math">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="mathml:math">
<xsl:variable name="isAdded" select="@added"/>
<xsl:variable name="isDeleted" select="@deleted"/>
<fo:inline xsl:use-attribute-sets="mathml-style">
@@ -6277,11 +6413,11 @@
</xsl:call-template>
</fo:inline>
</xsl:template>
- <xsl:template name="getMathml_comment_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6294,20 +6430,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 match="*[local-name() = 'asciimath']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'asciimath']">
<xsl:param name="process" select="'false'"/>
<xsl:if test="$process = 'true'">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'latexmath']"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'latexmath']"/>
- <xsl:template name="getMathml_asciimath_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getMathml_asciimath_text">
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
<xsl:variable name="latexmath">
</xsl:variable>
<xsl:variable name="asciimath_text_following">
@@ -6336,11 +6472,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 name="mathml_instream_object">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="mathml_instream_object">
<xsl:param name="asciimath_text"/>
<xsl:param name="mathml_content"/>
<xsl:variable name="asciimath_text_">
<xsl:choose>
@@ -6376,15 +6512,15 @@
<xsl:copy-of select="xalan:nodeset($mathml)"/>
</fo:instream-foreign-object>
</xsl:template>
- <xsl:template name="refine_mathml_insteam_object_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_mathml_insteam_object_style">
</xsl:template> <!-- refine_mathml_insteam_object_style -->
- <xsl:template match="mathml:*" mode="mathml_actual_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6401,21 +6537,21 @@
<xsl:text></</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>></xsl:text>
</xsl:template>
- <xsl:template match="text()" mode="mathml_actual_text">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="mathml_actual_text">
<xsl:value-of select="normalize-space()"/>
</xsl:template>
- <xsl:template match="@*|node()" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="mathml">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="mathml"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="mathml:mtext" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6433,17 +6569,17 @@
<mathml:mspace width="0.5ex"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> -->
- <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"/>
+ <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"/>
<!-- patch: slash in the mtd wrong rendering -->
- <xsl:template match="mathml:mtd/mathml:mo/text()[. = '/']" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -6458,11 +6594,11 @@
<mi>k</mi>
</msubsup>
</mstyle>
</math>
-->
- <xsl:template match="mathml:msup/mathml:mi[. = '' or . = ''][not(preceding-sibling::*)][following-sibling::mathml:mtext]" mode="mathml">
+ <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: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>
@@ -6484,19 +6620,19 @@
<mspace height="1.47ex"/>
</mrow>
<mn>1</mn>
</msup>
-->
- <xsl:template match="mathml:msup/mathml:mtext[not(preceding-sibling::*)]" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="mathml:mo[normalize-space(text()) = '|']" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6506,22 +6642,22 @@
<xsl:apply-templates mode="mathml"/>
</xsl:copy>
</xsl:template>
<!-- decrease fontsize for 'Circled Times' char -->
- <xsl:template match="mathml:mo[normalize-space(text()) = '⊗']" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="mathml:mo[normalize-space(text()) = '(']" mode="mathml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6542,11 +6678,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 match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
+ <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">
<fo:inline xsl:use-attribute-sets="mathml-style">
<xsl:call-template name="refine_mathml-style"/>
<xsl:choose>
@@ -6562,13 +6698,13 @@
</xsl:template>
<!-- ======================================= -->
<!-- END: math -->
<!-- ======================================= -->
- <xsl:template match="*[local-name()='localityStack']"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='localityStack']"/>
- <xsl:template match="*[local-name()='link']" name="link">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6629,42 +6765,42 @@
</xsl:template> <!-- link -->
<!-- ======================== -->
<!-- Appendix processing -->
<!-- ======================== -->
- <xsl:template match="*[local-name()='appendix']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='appendix']/*[local-name()='title']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'callout']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'annotation']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6673,20 +6809,20 @@
</xsl:apply-templates>
</fo:inline>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'xref']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6699,18 +6835,18 @@
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- command between two xref points to non-standard bibitem -->
- <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: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:value-of select="."/>
</xsl:template>
<!-- ====== -->
<!-- formula -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'formula']" name="formula">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -6725,30 +6861,30 @@
</fo:block>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
<fo:inline>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
<fo:inline>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"> <!-- show in 'stem' template -->
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'formula'][*[local-name() = 'name']]/*[local-name() = 'stem']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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%"/>
@@ -6775,31 +6911,31 @@
</fo:table>
</fo:block>
</xsl:template>
<!-- stem inside formula without name (without formula's number) -->
- <xsl:template match="*[local-name() = 'formula'][not(*[local-name() = 'name'])]/*[local-name() = 'stem']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="setBlockSpanAll">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'note']" name="note">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'note']" name="note">
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
@@ -6838,11 +6974,11 @@
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template name="refine_note_block_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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'">
@@ -6851,11 +6987,11 @@
<xsl:attribute name="padding-top">0mm</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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/>
@@ -6867,11 +7003,11 @@
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'termnote']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6896,11 +7032,11 @@
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6916,11 +7052,11 @@
<xsl:apply-templates/>
<xsl:value-of select="$suffix"/>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -6936,11 +7072,11 @@
<xsl:apply-templates/>
<xsl:value-of select="$suffix"/>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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/>
@@ -6959,28 +7095,28 @@
<!-- ====== -->
<!-- term -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'terms']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'term']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'term']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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}">
@@ -6995,11 +7131,11 @@
<!-- ====== -->
<!-- figure -->
<!-- image -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'figure']" name="figure">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -7022,31 +7158,31 @@
<xsl:apply-templates select="*[local-name() = 'name']"/> <!-- show figure's name AFTER image -->
</fo:block-container>
</xsl:template>
- <xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'figure']/*[local-name() = 'source']" priority="2">
<xsl:call-template name="termsource"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'image']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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) -->
@@ -7126,21 +7262,23 @@
<xsl:with-param name="indent" select="$indent"/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
</fo:block> -->
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style">
- <xsl:if test="not(@mimetype = 'image/svg+xml') and (../*[local-name() = 'name'] or parent::*[local-name() = 'figure'][@unnumbered = 'true']) and not(ancestor::*[local-name() = 'table'])">
- <xsl:call-template name="setImageWidthHeight"/>
+ <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
- <xsl:choose>
- <xsl:when test="@width != '' and @width != 'auto' and @height != '' and @height != 'auto'">
- <xsl:attribute name="scaling">non-uniform</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
+ <xsl:choose>
+ <!-- default -->
+ <xsl:when test="((@width = 'auto' or @width = 'text-width' or @width = 'full-page-width' or @width = 'narrow') and @height = 'auto') or (normalize-space(@width) = '' and normalize-space(@height) = '') ">
+ <!-- add attribute for automatic scaling -->
+ <xsl:variable name="image-graphic-style_attributes">
+ <attributes xsl:use-attribute-sets="image-graphic-style"/>
+ </xsl:variable>
+ <xsl:copy-of select="xalan:nodeset($image-graphic-style_attributes)/attributes/@*"/>
+ <xsl:if test="not(@mimetype = 'image/svg+xml') and not(ancestor::*[local-name() = 'table'])">
<xsl:variable name="scale">
<xsl:call-template name="getImageScale">
<xsl:with-param name="indent" select="$indent"/>
</xsl:call-template>
</xsl:variable>
@@ -7150,54 +7288,74 @@
</xsl:variable>
<xsl:if test="number($scale) < 100">
<xsl:attribute name="content-width"><xsl:value-of select="number($scale) * number($scaleRatio)"/>%</xsl:attribute>
</xsl:if>
- </xsl:otherwise>
- </xsl:choose>
+ </xsl:if>
- </xsl:if>
+ </xsl:when> <!-- default -->
+ <xsl:otherwise>
+ <xsl:variable name="width_height_">
+ <attributes>
+ <xsl:call-template name="setImageWidthHeight"/>
+ </attributes>
+ </xsl:variable>
+ <xsl:variable name="width_height" select="xalan:nodeset($width_height_)"/>
+
+ <xsl:copy-of select="$width_height/attributes/@*"/>
+
+ <xsl:if test="$width_height/attributes/@content-width != '' and $width_height/attributes/@content-height != ''">
+ <xsl:attribute name="scaling">non-uniform</xsl:attribute>
+ </xsl:if>
+
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <!--
+ <xsl:if test="not(@mimetype = 'image/svg+xml') and (../*[local-name() = 'name'] or parent::*[local-name() = 'figure'][@unnumbered = 'true']) and not(ancestor::*[local-name() = 'table'])">
+ -->
+
</fo:external-graphic>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="setImageWidth">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="setImageHeight">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setImageHeight">
<xsl:if test="@height != '' and @height != 'auto'">
<xsl:value-of select="@height"/>
</xsl:if>
</xsl:template>
- <xsl:template name="setImageWidthHeight">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setImageWidthHeight">
<xsl:variable name="width">
<xsl:call-template name="setImageWidth"/>
</xsl:variable>
<xsl:if test="$width != ''">
- <xsl:attribute name="width">
+ <xsl:attribute name="content-width">
<xsl:value-of select="$width"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="height">
<xsl:call-template name="setImageHeight"/>
</xsl:variable>
<xsl:if test="$height != ''">
- <xsl:attribute name="height">
+ <xsl:attribute name="content-height">
<xsl:value-of select="$height"/>
</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template name="getImageScale">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -7220,11 +7378,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 name="image_src">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
<xsl:when test="not(starts-with(@src, 'data:'))">
@@ -7234,11 +7392,11 @@
<xsl:value-of select="@src"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'image']" mode="cross_image">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -7278,29 +7436,29 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="svg_cross">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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: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: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: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:param name="name"/>
<xsl:variable name="svg_content">
<xsl:apply-templates select="." mode="svg_update"/>
</xsl:variable>
@@ -7490,25 +7648,25 @@
</xsl:template>
<!-- ============== -->
<!-- svg_update -->
<!-- ============== -->
- <xsl:template match="@*|node()" mode="svg_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="svg_update">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="svg_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'image']/@href" mode="svg_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="regex_starts_with_digit">^[0-9].*</xsl:variable>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="regex_starts_with_digit">^[0-9].*</xsl:variable>
- <xsl:template match="*[local-name() = 'svg'][not(@width and @height)]" mode="svg_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -7545,22 +7703,22 @@
<xsl:apply-templates mode="svg_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'svg']/@width" mode="svg_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'svg']/@height" mode="svg_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -7568,21 +7726,21 @@
</xsl:choose>
</xsl:attribute>
</xsl:template>
<!-- regex for 'display: inline-block;' -->
- <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: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: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 match="@*[local-name() = 'stroke' or local-name() = 'fill'][starts-with(normalize-space(.), 'rgba')]" mode="svg_update">
+ <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: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>
@@ -7596,47 +7754,47 @@
<!-- ============== -->
<!-- END: svg_update -->
<!-- ============== -->
<!-- image with svg and emf -->
- <xsl:template match="*[local-name() = 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() != 'figure']/*[local-name() = 'image'][*[local-name() = 'svg']]" priority="3">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'figure']/*[local-name() = 'image'][@mimetype = 'image/svg+xml' and @src[not(starts-with(., 'data:image/'))]]" priority="2">
+ <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: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 match="@*|node()" mode="svg_remove_a">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="svg_remove_a">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="svg_remove_a"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'a']" mode="svg_remove_a">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'a']" mode="svg_remove_a">
<xsl:apply-templates mode="svg_remove_a"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'a']" mode="svg_imagemap_links">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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, '#')"/>
@@ -7705,11 +7863,11 @@
<xsl:with-param name="dest" select="$dest"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
- <xsl:template name="insertSVGMapLink">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertSVGMapLink">
<xsl:param name="left"/>
<xsl:param name="top"/>
<xsl:param name="width"/>
<xsl:param name="height"/>
<xsl:param name="dest"/>
@@ -7734,50 +7892,50 @@
<!-- =================== -->
<!-- End SVG images processing -->
<!-- =================== -->
<!-- ignore emf processing (Apache FOP doesn't support EMF) -->
- <xsl:template match="*[local-name() = 'emf']"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'emf']"/>
- <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: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:apply-templates mode="contents"/>
<xsl:text> </xsl:text>
</xsl:template>
- <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: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:apply-templates mode="bookmarks"/>
<xsl:text> </xsl:text>
</xsl:template>
- <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: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:value-of select="."/>
</xsl:template>
- <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: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:value-of select="."/>
</xsl:template>
- <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="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="bookmarks" priority="3"/>
- <xsl:template match="node()" mode="contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'preface' or local-name() = 'sections']/*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" priority="3" mode="contents"/>
+ <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"/>
<!-- process them by demand (mode="contents_no_displayorder") -->
- <xsl:template match="*[local-name() = 'p'][@type = 'section-title' and not(@displayorder)]" 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:call-template name="contents_section-title"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'p'][@type = 'section-title']" mode="contents_in_clause">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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() = '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() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="2" name="contents_section-title" 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:variable name="level">
<xsl:call-template name="getLevel">
<xsl:with-param name="depth" select="@depth"/>
</xsl:call-template>
</xsl:variable>
@@ -7836,38 +7994,38 @@
</title>
</item>
</xsl:if>
</xsl:template>
- <xsl:template match="node()" mode="bookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="node()" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
<xsl:apply-templates select="."/>
</xsl:template>
- <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'][@hidden='true']" mode="contents" priority="3"/>
- <xsl:template match="*[local-name() = 'references']/*[local-name() = 'bibitem']" mode="contents"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'span']" mode="contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="contents">
<xsl:apply-templates mode="contents"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'span']" mode="bookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="bookmarks">
<xsl:apply-templates mode="bookmarks"/>
</xsl:template>
<!-- Bookmarks -->
- <xsl:template name="addBookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -7966,11 +8124,11 @@
</fo:bookmark-tree>
</xsl:if>
</xsl:template>
- <xsl:template name="insertFigureBookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8001,11 +8159,11 @@
</fo:bookmark>
</xsl:if>
</xsl:template> <!-- insertFigureBookmarks -->
- <xsl:template name="insertTableBookmarks">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -8045,11 +8203,11 @@
</xsl:if>
</xsl:template> <!-- insertTableBookmarks -->
<!-- End Bookmarks -->
- <xsl:template name="getLangVersion">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLangVersion">
<xsl:param name="lang"/>
<xsl:param name="doctype" select="''"/>
<xsl:param name="title" select="''"/>
<xsl:choose>
<xsl:when test="$lang = 'en'">
@@ -8061,11 +8219,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 match="item" mode="bookmark">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 != ''">
@@ -8089,59 +8247,59 @@
<xsl:apply-templates mode="bookmark"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="title" mode="bookmark"/>
- <xsl:template match="text()" mode="bookmark"/>
+ <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="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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() = '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() = 'note'][@type = 'units'] | *[local-name() = 'image']/*[local-name() = 'note'][@type = 'units']" priority="2">
+ <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">
<fo:block text-align="right" keep-with-next="always">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ====== -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'title']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="getSection">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getSection">
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
</xsl:template>
- <xsl:template name="getName">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="insertTitleAsListItem">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8168,80 +8326,80 @@
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</xsl:template>
- <xsl:template name="extractSection">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="extractSection">
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
</xsl:template>
- <xsl:template name="extractTitle">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn']" mode="bookmarks"/>
- <xsl:template match="*[local-name() = 'fn']" mode="contents_item"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'fn']" mode="contents_item"/>
- <xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template match="*[local-name() = 'review']" mode="contents_item"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'review']" mode="contents_item"/>
- <xsl:template match="*[local-name() = 'tab']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'tab']" mode="contents_item">
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template match="*[local-name() = 'strong']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'strong']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'em']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'em']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'sub']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sub']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'sup']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sup']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'stem']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'stem']" mode="contents_item">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template match="*[local-name() = 'br']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'br']" mode="contents_item">
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template match="*[local-name() = 'name']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'add']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8251,44 +8409,44 @@
</xsl:when>
<xsl:otherwise><xsl:apply-templates mode="contents_item"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="text()" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'add'][starts-with(., $ace_tag)]/text()" mode="contents_item" priority="2">
+ <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:value-of select="."/>
</xsl:template>
<!-- Note: to enable the addition of character span markup with semantic styling for DIS Word output -->
- <xsl:template match="*[local-name() = 'span']" mode="contents_item">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="contents_item">
<xsl:apply-templates mode="contents_item"/>
</xsl:template>
<!-- =============== -->
<!-- sourcecode -->
<!-- =============== -->
- <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: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:template match="*[local-name() = 'property']" mode="css">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'property']" mode="css">
<xsl:attribute name="{@name}">
<xsl:value-of select="@value"/>
</xsl:attribute>
</xsl:template>
- <xsl:template name="get_sourcecode_attributes">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="get_sourcecode_attributes">
<xsl:element name="sourcecode_attributes" use-attribute-sets="sourcecode-style">
<xsl:variable name="_font-size">
<!-- inherit -->
@@ -8312,11 +8470,11 @@
</xsl:if>
<xsl:apply-templates select="$sourcecode_css//class[@name = 'sourcecode']" mode="css"/>
</xsl:element>
</xsl:template>
- <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='sourcecode']" name="sourcecode">
<xsl:variable name="sourcecode_attributes">
<xsl:call-template name="get_sourcecode_attributes"/>
</xsl:variable>
@@ -8383,11 +8541,11 @@
</fo:block-container>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name()='sourcecode']/text() | *[local-name()='sourcecode']//*[local-name()='span']/text()" priority="2">
+ <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: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>
@@ -8404,11 +8562,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- add sourcecode highlighting -->
- <xsl:template match="*[local-name()='sourcecode']//*[local-name()='span'][@class]" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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']">
@@ -8431,11 +8589,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- outer table with line numbers for sourcecode -->
- <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']" priority="2"> <!-- *[local-name()='table'][@type = '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'] | -->
<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%"/>
@@ -8443,20 +8601,20 @@
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
- <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: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:apply-templates/>
</xsl:template>
- <xsl:template match="*[local-name() = 'sourcecode'][@linenums = 'true']/*[local-name()='table']//*[local-name()='tr']" priority="2"> <!-- *[local-name()='table'][@type = 'sourcecode']//*[local-name()='tr'] | -->
+ <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'] | -->
<fo:table-row>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
<!-- first td with line numbers -->
- <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'] -->
+ <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'] -->
<fo:table-cell>
<fo:block>
<!-- set attibutes for line numbers - same as sourcecode -->
<xsl:variable name="sourcecode_attributes">
@@ -8474,20 +8632,20 @@
</fo:block>
</fo:table-cell>
</xsl:template>
<!-- second td with 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'] -->
+ <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'] -->
<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 name="add_spaces_to_sourcecode">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -8521,25 +8679,25 @@
</xsl:choose>
</xsl:for-each>
</xsl:template> <!-- add_spaces_to_sourcecode -->
- <xsl:variable name="interspers_tag_open">###interspers123###</xsl:variable>
- <xsl:variable name="interspers_tag_close">###/interspers123###</xsl:variable>
+ <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>
<!-- split string by separator for interspers -->
- <xsl:template name="split_for_interspers">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="replace_tag_interspers">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)"/>
@@ -8553,11 +8711,11 @@
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- insert 'char' between each character in the string -->
- <xsl:template name="interspers">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)"/>
@@ -8571,21 +8729,21 @@
<xsl:with-param name="char" select="$char"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template name="interspers-java">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*" mode="syntax_highlight">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="syntax_highlight">
<xsl:apply-templates mode="syntax_highlight"/>
</xsl:template>
- <xsl:variable name="syntax_highlight_styles_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -8631,13 +8789,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 name="syntax_highlight_styles" select="xalan:nodeset($syntax_highlight_styles_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="syntax_highlight_styles" select="xalan:nodeset($syntax_highlight_styles_)"/>
- <xsl:template match="span" mode="syntax_highlight" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -8689,17 +8847,17 @@
</xsl:for-each> -->
<xsl:apply-templates mode="syntax_highlight"/></fo:inline>
</xsl:template>
- <xsl:template match="text()" mode="syntax_highlight" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="text()" mode="syntax_highlight" priority="2">
<xsl:call-template name="add_spaces_to_sourcecode"/>
</xsl:template>
<!-- end mode="syntax_highlight" -->
- <xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8709,11 +8867,11 @@
<!-- =============== -->
<!-- =============== -->
<!-- pre -->
<!-- =============== -->
- <xsl:template match="*[local-name()='pre']" name="pre">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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' -->
@@ -8740,70 +8898,70 @@
<!-- =============== -->
<!-- ========== -->
<!-- permission -->
<!-- ========== -->
- <xsl:template match="*[local-name() = 'permission']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'permission']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'permission']/*[local-name() = 'label']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'requirement']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'requirement']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'requirement']/*[local-name() = 'label']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'requirement']/@obligation">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'requirement']/*[local-name() = 'subject']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8811,27 +8969,27 @@
<!-- ========== -->
<!-- ========== -->
<!-- recommendation -->
<!-- ========== -->
- <xsl:template match="*[local-name() = 'recommendation']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'recommendation']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
<fo:block xsl:use-attribute-sets="recommendation-label-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -8839,57 +8997,57 @@
<!-- ========== -->
<!-- ========== -->
<!-- ========== -->
- <xsl:template match="*[local-name() = 'subject']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'div']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'div']">
<fo:block><xsl:apply-templates/></fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="inherit-style">
<xsl:text>Dependency </xsl:text><xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="description-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="specification-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="measurement-target-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="verification-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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']">
+ <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']">
<fo:block xsl:use-attribute-sets="import-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <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')]">
+ <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')]">
<fo:block xsl:use-attribute-sets="component-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -8897,11 +9055,11 @@
<!-- ========== -->
<!-- ========== -->
<!-- requirement, recommendation, permission table -->
<!-- ========== -->
- <xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -8931,23 +9089,23 @@
</xsl:if>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template match="*[local-name()='thead']" mode="requirement">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='thead']" mode="requirement">
<fo:table-header>
<xsl:apply-templates mode="requirement"/>
</fo:table-header>
</xsl:template>
- <xsl:template match="*[local-name()='tbody']" mode="requirement">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name()='tbody']" mode="requirement">
<fo:table-body>
<xsl:apply-templates mode="requirement"/>
</fo:table-body>
</xsl:template>
- <xsl:template match="*[local-name()='tr']" mode="requirement">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8955,11 +9113,11 @@
<xsl:apply-templates mode="requirement"/>
</fo:table-row>
</xsl:template>
- <xsl:template match="*[local-name()='th']" mode="requirement">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8969,11 +9127,11 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
- <xsl:template match="*[local-name()='td']" mode="requirement">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -8991,18 +9149,18 @@
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>
- <xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
+ <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']]">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- ========== -->
@@ -9010,30 +9168,30 @@
<!-- ========== -->
<!-- ====== -->
<!-- termexample -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'termexample']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'termexample']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'termexample']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termexample']/*[local-name() = 'p']">
<xsl:variable name="element">inline
</xsl:variable>
<xsl:choose>
@@ -9063,11 +9221,11 @@
text line 2
4. EXAMPLE
text line 1
text line 2
-->
- <xsl:template match="*[local-name() = 'example']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'example']">
<fo:block-container id="{@id}" xsl:use-attribute-sets="example-style" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
@@ -9158,11 +9316,11 @@
</xsl:choose>
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9182,17 +9340,17 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'table']/*[local-name() = 'example']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'example']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -9232,11 +9390,11 @@
<!-- ====== -->
<!-- termsource -->
<!-- origin -->
<!-- modification -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'termsource']" name="termsource">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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] -->
@@ -9271,28 +9429,28 @@
</xsl:otherwise>
</xsl:choose> -->
</fo:block>
</xsl:template>
- <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: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:text>[</xsl:text><xsl:value-of select="substring-after(., '[SOURCE: ')"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'termsource']/text()">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'termsource']/text()">
<xsl:if test="normalize-space() != ''">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>
<!-- text SOURCE: -->
- <xsl:template match="*[local-name() = 'termsource']/*[local-name() = 'strong'][1][following-sibling::*[1][local-name() = 'origin']]/text()">
+ <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()">
<fo:inline xsl:use-attribute-sets="termsource-text-style">
<xsl:value-of select="."/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'origin']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9304,11 +9462,11 @@
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- not using, see https://github.com/glossarist/iev-document/issues/23 -->
- <xsl:template match="*[local-name() = 'modification']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9319,15 +9477,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 match="*[local-name() = 'modification']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'modification']/*[local-name() = 'p']">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'modification']/text()">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'modification']/text()">
<xsl:if test="normalize-space() != ''">
<!-- <xsl:value-of select="."/> -->
<xsl:call-template name="text"/>
</xsl:if>
</xsl:template>
@@ -9338,11 +9496,11 @@
<!-- ====== -->
<!-- qoute -->
<!-- source -->
<!-- author -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'quote']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'quote']">
<fo:block-container margin-left="0mm" role="SKIP">
<xsl:call-template name="setBlockSpanAll"/>
<xsl:if test="parent::*[local-name() = 'note']">
@@ -9372,11 +9530,11 @@
</fo:block-container>
</fo:block-container>
</xsl:template>
- <xsl:template match="*[local-name() = 'source']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -9385,38 +9543,38 @@
</fo:basic-link>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
- <xsl:template match="*[local-name() = 'author']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'author']">
<xsl:text>— </xsl:text>
<xsl:apply-templates/>
</xsl:template>
<!-- ====== -->
<!-- ====== -->
- <xsl:variable name="bibitems_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems_">
<xsl:for-each select="//*[local-name() = 'bibitem']">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
- <xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems" select="xalan:nodeset($bibitems_)"/>
<!-- get all hidden bibitems to exclude them from eref/origin processing -->
- <xsl:variable name="bibitems_hidden_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/>
<!-- ====== -->
<!-- eref -->
<!-- ====== -->
- <xsl:template match="*[local-name() = 'eref']" name="eref">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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) -->
@@ -9473,20 +9631,20 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="refine_basic_link_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_basic_link_style">
</xsl:template> <!-- refine_basic_link_style -->
<!-- ====== -->
<!-- END eref -->
<!-- ====== -->
<!-- Tabulation processing -->
- <xsl:template match="*[local-name() = 'tab']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9527,22 +9685,22 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- tab -->
- <xsl:template name="insertNonBreakSpaces">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'preferred']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preferred']">
<xsl:variable name="level">
<xsl:call-template name="getLevel"/>
</xsl:variable>
<xsl:variable name="font-size">
inherit
@@ -9563,62 +9721,62 @@
<xsl:apply-templates/>
</fo:block>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'domain']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'admitted']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admitted']">
<fo:block xsl:use-attribute-sets="admitted-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'deprecates']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'deprecates']">
<fo:block xsl:use-attribute-sets="deprecates-style">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template name="setStyle_preferred">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'preferred']/text()[contains(., ';')] | *[local-name() = 'preferred']/*[local-name() = 'strong']/text()[contains(., ';')]">
+ <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:value-of select="java:replaceAll(java:java.lang.String.new(.), ';', $linebreak)"/>
</xsl:template>
<!-- End Preferred, admitted, deprecated -->
<!-- ========== -->
<!-- definition -->
<!-- ========== -->
- <xsl:template match="*[local-name() = 'definition']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definition']">
<fo:block xsl:use-attribute-sets="definition-style" role="SKIP">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p'][1]">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="/*/*[local-name() = 'sections']/*" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="/*/*[local-name() = 'sections']/*" name="sections_node" priority="2">
<fo:block break-after="page"/>
<fo:block>
<xsl:call-template name="setId"/>
@@ -9628,30 +9786,39 @@
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template name="sections_element_style">
+ <!-- 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>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="sections_element_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> <!-- sections_element_style -->
- <xsl:template match="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*" priority="2"> <!-- /*/*[local-name() = 'preface']/* -->
+ <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']/* -->
<fo:block break-after="page"/>
<fo:block>
<xsl:call-template name="setId"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'clause']">
+ <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"/>
+ </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 -->
<fo:block>
<xsl:if test="parent::*[local-name() = 'copyright-statement']">
<xsl:attribute name="role">SKIP</xsl:attribute>
</xsl:if>
@@ -9663,44 +9830,57 @@
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template name="refine_clause_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_clause_style">
</xsl:template> <!-- refine_clause_style -->
- <xsl:template match="*[local-name() = 'definitions']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'definitions']">
<fo:block id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'annex']">
- <fo:block break-after="page"/>
- <fo:block>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
+ </xsl:when>
+ <xsl:otherwise>
- <xsl:call-template name="setBlockSpanAll"/>
+ <fo:block break-after="page"/>
+ <fo:block id="{@id}">
- <xsl:call-template name="refine_annex_style"/>
+ <xsl:call-template name="setBlockSpanAll"/>
- </fo:block>
- <fo:block id="{@id}">
- <xsl:apply-templates/>
- </fo:block>
+ <xsl:call-template name="refine_annex_style"/>
+
+ </fo:block>
+
+ <xsl:apply-templates select="*[local-name() = 'title'][@columns = 1]"/>
+
+ <fo:block>
+ <xsl:apply-templates select="node()[not(local-name() = 'title' and @columns = 1)]"/>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
- <xsl:template name="refine_annex_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'review']"> <!-- 'review' will be processed in mn2pdf/review.xsl -->
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)"/>
@@ -9720,28 +9900,28 @@
</xsl:choose>
</xsl:template>
<!-- https://github.com/metanorma/mn-samples-bsi/issues/312 -->
- <xsl:template match="*[local-name() = 'review'][@type = 'other']"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'review'][@type = 'other']"/>
- <xsl:template match="*[local-name() = 'name']/text()">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="ul_labels_">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ul_labels_">
<label>•</label>
</xsl:variable>
- <xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="ul_labels" select="xalan:nodeset($ul_labels_)"/>
- <xsl:template name="setULLabel">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -9763,16 +9943,16 @@
<xsl:otherwise>
<xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="label" mode="ul_labels">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="label" mode="ul_labels">
<xsl:copy-of select="@*[not(local-name() = 'level')]"/>
<xsl:value-of select="."/>
</xsl:template>
- <xsl:template name="getListItemFormat">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9899,11 +10079,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -9934,15 +10114,15 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="refine_list_container_style">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="refine_list_container_style">
</xsl:template> <!-- refine_list_container_style -->
- <xsl:template match="*[local-name()='ul'] | *[local-name()='ol']" mode="list" name="list">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -9998,28 +10178,28 @@
<xsl:call-template name="note"/>
</xsl:for-each> -->
<xsl:apply-templates select="./*[local-name() = 'note']"/>
</xsl:template>
- <xsl:template name="refine_list-style_provisional-distance-between-starts">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'ol' or local-name() = 'ul']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name()='li']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10069,28 +10249,28 @@
<!-- =================== -->
<!-- Index section processing -->
<!-- =================== -->
- <xsl:variable name="index" select="document($external_index)"/>
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" name="index" select="document($external_index)"/>
- <xsl:variable name="bookmark_in_fn">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="@*|node()" mode="index_add_id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'xref']" mode="index_add_id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10119,24 +10299,24 @@
</xsl:apply-templates>
</xsl:copy>
</xsl:if>
</xsl:template>
- <xsl:template match="@*|node()" mode="index_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="index_update">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="index_update"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" mode="index_update">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'indexsect']//*[local-name() = 'li']/node()" mode="process_li_element" priority="2">
+ <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:param name="element"/>
<xsl:param name="remove" select="'false'"/>
<xsl:param name="target"/>
<!-- <node></node> -->
<xsl:choose>
@@ -10225,22 +10405,22 @@
<xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="@*|node()" mode="xref_copy">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="generateIndexXrefId">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="generateIndexXrefId">
<xsl:param name="docid"/>
<xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
<xsl:variable name="docid_curr">
@@ -10253,53 +10433,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 match="*[local-name() = 'indexsect']/*[local-name() = 'title']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'indexsect']/*[local-name() = 'clause']/*[local-name() = 'title']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'indexsect']/*[local-name() = 'clause']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/>
- <xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10308,11 +10488,11 @@
<!-- =================== -->
<!-- ============ -->
<!-- errata -->
<!-- ============ -->
- <xsl:template match="*[local-name() = 'errata']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10334,17 +10514,17 @@
<xsl:apply-templates/>
</fo:table-body>
</fo:table>
</xsl:template>
- <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'errata']/*[local-name() = 'row']">
<fo:table-row>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template>
- <xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
<!-- ============ -->
@@ -10356,71 +10536,75 @@
<!-- ======================= -->
<!-- ========================================================== -->
<!-- Reference sections (Normative References and Bibliography) -->
<!-- ========================================================== -->
- <xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/>
- <xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3">
+ <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: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 match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem'][starts-with(@id, 'hidden_bibitem_')]" priority="3"/>
<!-- Normative references -->
- <xsl:template match="*[local-name() = 'references'][@normative='true']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'references']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'references']">
<xsl:if test="not(ancestor::*[local-name() = 'annex'])">
</xsl:if>
<!-- <xsl:if test="ancestor::*[local-name() = 'annex']">
<xsl:if test="$namespace = 'csa' or $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'iso' or $namespace = 'itu'">
<fo:block break-after="page"/>
</xsl:if>
</xsl:if> -->
- <fo:block id="{@id}" xsl:use-attribute-sets="references-non-normative-style">
- <xsl:apply-templates/>
+ <fo:block id="{@id}"/>
+ <xsl:apply-templates select="*[local-name() = 'title'][@columns = 1]"/>
+
+ <fo:block xsl:use-attribute-sets="references-non-normative-style">
+ <xsl:apply-templates select="node()[not(local-name() = 'title' and @columns = 1)]"/>
+
</fo:block>
</xsl:template> <!-- references -->
- <xsl:template match="*[local-name() = 'bibitem']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem']">
<xsl:call-template name="bibitem"/>
</xsl:template>
<!-- Normative references -->
- <xsl:template match="*[local-name() = 'references'][@normative='true']/*[local-name() = 'bibitem']" name="bibitem" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
+ <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: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 name="insertListItem_Bibitem">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -10446,11 +10630,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 name="processBibitem">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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']">
@@ -10464,24 +10648,24 @@
<xsl:apply-templates select="un:formattedref"/>
<!-- END UNECE bibitem processing -->
</xsl:template> <!-- processBibitem (bibitem) -->
- <xsl:template match="*[local-name() = 'title']" mode="title">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'title']" mode="title">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/>
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/>
- <xsl:template match="*[local-name() = 'formattedref']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'biblio-tag']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10492,11 +10676,11 @@
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'biblio-tag']/*[local-name() = 'tab']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'biblio-tag']/*[local-name() = 'tab']" priority="2">
<xsl:text> </xsl:text>
</xsl:template>
<!-- ======================= -->
<!-- END Bibliography rendering -->
@@ -10507,27 +10691,27 @@
<!-- ========================================================== -->
<!-- =================== -->
<!-- Form's elements processing -->
<!-- =================== -->
- <xsl:template match="*[local-name() = 'form']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'label']">
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
+ <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']">
<fo:inline>
<xsl:call-template name="text_input"/>
</fo:inline>
</xsl:template>
- <xsl:template name="text_input">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10538,21 +10722,21 @@
<xsl:with-param name="count" select="$count"/>
</xsl:call-template>
<xsl:text> </xsl:text>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10562,11 +10746,11 @@
</svg>
</fo:instream-foreign-object>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10577,17 +10761,17 @@
</svg>
</fo:instream-foreign-object>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'form']//*[local-name() = 'select']">
<fo:inline>
<xsl:call-template name="text_input"/>
</fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10597,11 +10781,11 @@
<!-- =================== -->
<!-- Table of Contents (ToC) processing -->
<!-- =================== -->
- <xsl:variable name="toc_level">
+ <xsl:variable xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 -->
@@ -10610,11 +10794,11 @@
3
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:template match="*[local-name() = 'toc']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -10643,21 +10827,21 @@
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
- <xsl:template match="*[local-name() = 'toc']//*[local-name() = 'li']" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'toc']//*[local-name() = 'li']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'toc']//*[local-name() = 'li']/*[local-name() = 'p']">
<xsl:apply-templates/>
</xsl:template>
- <xsl:template match="*[local-name() = 'toc']//*[local-name() = 'xref']" priority="3">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10692,24 +10876,24 @@
</xsl:template>
<!-- ================================== -->
<!-- calculate ToC table columns widths -->
<!-- ================================== -->
- <xsl:template match="*" mode="toc_table_width">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*" mode="toc_table_width">
<xsl:apply-templates mode="toc_table_width"/>
</xsl:template>
- <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() = '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() = 'li']" mode="toc_table_width">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'li']" mode="toc_table_width">
<tr>
<xsl:apply-templates mode="toc_table_width"/>
</tr>
</xsl:template>
- <xsl:template match="*[local-name() = 'xref']" mode="toc_table_width">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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]]">
@@ -10727,11 +10911,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 name="insert_basic_link">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10747,38 +10931,38 @@
</fo:inline>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'variant-title']"/> <!-- [@type = 'sub'] -->
- <xsl:template match="*[local-name() = 'variant-title'][@type = 'sub']" mode="subtitle">
+ <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">
<fo:inline padding-right="5mm"> </fo:inline>
<fo:inline><xsl:apply-templates/></fo:inline>
</xsl:template>
- <xsl:template match="*[local-name() = 'blacksquare']" name="blacksquare">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="@language">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@language">
<xsl:copy-of select="."/>
</xsl:template>
- <xsl:template match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="4">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'p'][@type = 'floating-title' or @type = 'section-title']" priority="4">
<xsl:call-template name="title"/>
</xsl:template>
<!-- ================ -->
<!-- Admonition -->
<!-- ================ -->
- <xsl:template match="*[local-name() = 'admonition']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']">
<fo:block break-after="page"/>
<!-- text in the box -->
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
@@ -10801,11 +10985,11 @@
</fo:block-container>
</xsl:template>
- <xsl:template name="displayAdmonitionName">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -10828,11 +11012,11 @@
<xsl:if test="normalize-space($name) != ''">
<xsl:value-of select="$sep"/>
</xsl:if>
</xsl:template>
- <xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'name']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']/*[local-name() = 'name']">
<xsl:apply-templates/>
</xsl:template>
<!-- <xsl:template match="*[local-name() = 'admonition']/@type">
<xsl:variable name="admonition_type_">
@@ -10845,11 +11029,11 @@
<xsl:if test="$admonition_type = ''">
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(.))"/>
</xsl:if>
</xsl:template> -->
- <xsl:template match="*[local-name() = 'admonition']/*[local-name() = 'p']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'admonition']/*[local-name() = 'p']">
<fo:block xsl:use-attribute-sets="admonition-p-style">
<xsl:apply-templates/>
</fo:block>
@@ -10864,20 +11048,24 @@
<!-- Update xml -->
<!-- ===================================== -->
<!-- =========================================================================== -->
<!-- STEP1: -->
<!-- - Re-order elements in 'preface', 'sections' based on @displayorder -->
+ <!-- - Put Section title in the correct position -->
<!-- - 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 match="@*|node()" mode="update_xml_step1">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 match="*[local-name() = 'preface']" mode="update_xml_step1">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'preface']" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="nodes_preface_">
<xsl:for-each select="*">
@@ -10904,11 +11092,11 @@
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'sections']" mode="update_xml_step1">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'sections']" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="nodes_sections_">
<xsl:for-each select="*">
@@ -10936,11 +11124,11 @@
</xsl:for-each>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'bibliography']" mode="update_xml_step1">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -10948,78 +11136,245 @@
</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 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 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: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 match="*[local-name() = 'span']" mode="update_xml_step1">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'span']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
- <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: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:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<!-- remove semantic xml -->
- <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'metanorma']/*[local-name() = 'source']" mode="update_xml_step1"/>
+ <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"/>
<!-- remove image/emf -->
- <xsl:template match="*[local-name() = 'image']/*[local-name() = 'emf']" mode="update_xml_step1"/>
+ <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() = 'stem'] | *[local-name() = 'image']" 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 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:copy-of select="."/>
</xsl:template>
- <!-- add @id, redundant for table auto-layout algorithm -->
- <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
+ <!-- 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: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 match="*[local-name() = 'table']/*[local-name() = 'thead'][count(*) = 0]" mode="update_xml_step1"/>
+ <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 name="add_id">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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: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"/>
+ </xsl:copy>
+ </xsl:when>
+ <!-- for table auto-layout algorithm -->
+ <xsl:when test="$table_only_with_id != '' and not(.//*[local-name() = 'table' or local-name() = 'dl'][@id = $table_only_with_id])">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ </xsl:copy>
+ </xsl:when>
+ <!-- for table auto-layout algorithm -->
+ <xsl:when test="$table_only_with_ids != '' and not(.//*[local-name() = 'table' or local-name() = 'dl'][contains($table_only_with_ids, concat(@id, ' '))])">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ </xsl:copy>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates mode="update_xml_step1"/>
+ </xsl:copy>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
<!-- =========================================================================== -->
<!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
<!-- =========================================================================== -->
<!-- =========================================================================== -->
+ <!-- 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:copy>
+ <xsl:apply-templates select="@*|node()" mode="update_xml_step_move_pagebreak"/>
+ </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:choose>
+ <xsl:when test="ancestor::*[local-name() = 'sections']">
+
+ </xsl:when>
+ <xsl:when test="ancestor::*[local-name() = 'annex']">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose> -->
+
+ <!-- determine pagebreak is last element before </fo:flow> or not -->
+ <xsl:variable name="isLast">
+ <xsl:for-each select="ancestor-or-self::*[ancestor::*[local-name() = 'sections'] or ancestor-or-self::*[local-name() = 'annex']]">
+ <xsl:if test="following-sibling::*">false</xsl:if>
+ </xsl:for-each>
+ </xsl:variable>
+
+ <xsl:if test="contains($isLast, 'false')">
+
+ <xsl:variable name="orientation" select="normalize-space(@orientation)"/>
+
+ <xsl:variable name="tree_">
+ <xsl:call-template name="makeAncestorsElementsTree"/>
+ </xsl:variable>
+ <xsl:variable name="tree" select="xalan:nodeset($tree_)"/>
+
+ <!-- close fo:page-sequence (closing preceding fo elements) -->
+ <xsl:call-template name="insertClosingElements">
+ <xsl:with-param name="tree" select="$tree"/>
+ </xsl:call-template>
+
+ <xsl:text disable-output-escaping="yes"></page_sequence></xsl:text>
+
+ <!-- create a new page_sequence (opening elements) -->
+ <xsl:text disable-output-escaping="yes"><page_sequence namespace="</xsl:text><xsl:value-of select="$namespace_full"/>"<xsl:if test="$orientation != ''"> orientation="<xsl:value-of select="$orientation"/>"</xsl:if><xsl:text disable-output-escaping="yes">></xsl:text>
+
+ <xsl:call-template name="insertOpeningElements">
+ <xsl:with-param name="tree" select="$tree"/>
+ </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() = '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>
+
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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="."/>
+ <xsl:text disable-output-escaping="yes">></xsl:text>
+ <xsl:if test="$debug = 'true'">
+ <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: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']">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="local-name()"/>
+ <xsl:text>="</xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>"</xsl:text>
+ </xsl:for-each>
+ <xsl:if test="position() = 1"> continue="true"</xsl:if>
+ <xsl:text disable-output-escaping="yes">></xsl:text>
+ <xsl:if test="$debug = 'true'">
+ <xsl:message><<xsl:value-of select="."/>></xsl:message>
+ </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:choose>
+ <xsl:when test="$layout_columns != 1">
+
+ <xsl:variable name="tree_">
+ <xsl:call-template name="makeAncestorsElementsTree"/>
+ </xsl:variable>
+ <xsl:variable name="tree" select="xalan:nodeset($tree_)"/>
+
+ <xsl:call-template name="insertClosingElements">
+ <xsl:with-param name="tree" select="$tree"/>
+ </xsl:call-template>
+
+ <!-- <xsl:copy-of select="."/> -->
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:attribute name="top-level">true</xsl:attribute>
+ <xsl:copy-of select="node()"/>
+ </xsl:copy>
+
+ <xsl:call-template name="insertOpeningElements">
+ <xsl:with-param name="tree" select="$tree"/>
+ </xsl:call-template>
+
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- =========================================================================== -->
+ <!-- END STEP MOVE PAGEBREAK: move <pagebreak/> at top level under 'preface' and 'sections' -->
+ <!-- =========================================================================== -->
+
+ <!-- =========================================================================== -->
<!-- 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 match="@*|node()" mode="update_xml_enclose_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:copy>
<xsl:apply-templates select="@*|node()" mode="update_xml_enclose_keep-together_within-line"/>
</xsl:copy>
</xsl:template>
- <xsl:variable name="express_reference_separators">_.\</xsl:variable>
- <xsl:variable name="express_reference_characters" select="concat($upper,$lower,'1234567890',$express_reference_separators)"/>
+ <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="element_name_keep-together_within-line">keep-together_within-line</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: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.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
+ <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">
<!-- 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))"/>
@@ -11089,15 +11444,15 @@
<xsl:otherwise><xsl:copy-of select="xalan:nodeset($text3)/text/node()"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'stem'] | *[local-name() = 'image']" mode="update_xml_enclose_keep-together_within-line">
+ <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:copy-of select="."/>
</xsl:template>
- <xsl:template name="replace_text_tags">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)">
@@ -11124,17 +11479,17 @@
<!-- ===================================== -->
<!-- ===================================== -->
<!-- Make linear XML (need for landscape orientation) -->
<!-- ===================================== -->
<!-- ===================================== -->
- <xsl:template match="@*|node()" mode="linear_xml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="@*|node()" mode="linear_xml">
<xsl:copy>
<xsl:apply-templates select="@*|node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="processing-instruction()" mode="linear_xml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="processing-instruction()" mode="linear_xml">
<xsl:copy-of select="."/>
</xsl:template>
<!-- From:
<clause>
@@ -11144,11 +11499,11 @@
To:
<clause/>
<title>...</title>
<p>...</p>
-->
- <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: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:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -11159,11 +11514,11 @@
</xsl:copy>
<xsl:apply-templates mode="linear_xml"/>
</xsl:template>
- <xsl:template match="*[local-name() = 'term']" mode="linear_xml" priority="2">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -11173,11 +11528,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 match="*[local-name() = 'introduction']//*[local-name() = 'title'] | *[local-name() = 'foreword']//*[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 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:copy>
<xsl:apply-templates select="@*" mode="linear_xml"/>
<xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -11192,27 +11547,56 @@
<xsl:if test="../@inline-header = 'true' and following-sibling::*[1][local-name() = 'p']">
<xsl:copy-of select="../@inline-header"/>
</xsl:if>
- <xsl:attribute name="ancestor">
+ <xsl:variable name="ancestor">
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'foreword']">foreword</xsl:when>
<xsl:when test="ancestor::*[local-name() = 'introduction']">introduction</xsl:when>
<xsl:when test="ancestor::*[local-name() = 'sections']">sections</xsl:when>
<xsl:when test="ancestor::*[local-name() = 'annex']">annex</xsl:when>
<xsl:when test="ancestor::*[local-name() = 'bibliography']">bibliography</xsl:when>
</xsl:choose>
+ </xsl:variable>
+ <xsl:attribute name="ancestor">
+ <xsl:value-of select="$ancestor"/>
</xsl:attribute>
+ <xsl:attribute name="parent">
+ <xsl:choose>
+ <xsl:when test="ancestor::*[local-name() = 'preface']">preface</xsl:when>
+ <xsl:otherwise><xsl:value-of select="$ancestor"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
<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:copy>
+ <xsl:apply-templates select="@*" mode="linear_xml"/>
+
+ <xsl:variable name="ancestor">
+ <xsl:choose>
+ <xsl:when test="ancestor::*[local-name() = 'preface']">preface</xsl:when>
+ <xsl:when test="ancestor::*[local-name() = 'sections']">sections</xsl:when>
+ <xsl:when test="ancestor::*[local-name() = 'annex']">annex</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:attribute name="ancestor">
+ <xsl:value-of select="$ancestor"/>
+ </xsl:attribute>
+
+ <xsl:apply-templates mode="linear_xml"/>
+ </xsl:copy>
+ </xsl:template>
+
<!-- add @to = figure, table, clause -->
<!-- add @depth = from -->
- <xsl:template match="*[local-name() = 'xref']" mode="linear_xml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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])"/>
@@ -11222,11 +11606,11 @@
</xsl:attribute>
<xsl:apply-templates select="node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[not(ancestor::*[local-name() = 'sourcecode'])]/*[local-name() = 'p' or local-name() = 'strong' or local-name() = 'em']/text()" mode="linear_xml">
+ <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: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"/>
@@ -11235,11 +11619,11 @@
</xsl:when>
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="replaceChar">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)">
@@ -11258,21 +11642,21 @@
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*[local-name() = 'inlineChar']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 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 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: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"/>
@@ -11306,11 +11690,11 @@
</xsl:attribute>
<xsl:apply-templates select="node()" mode="linear_xml"/>
</xsl:copy>
</xsl:template>
- <xsl:template match="*[local-name() = 'p'][@type = 'section-title']" priority="3" mode="linear_xml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11322,15 +11706,15 @@
<!-- END: Make linear XML (need for landscape orientation) -->
<!-- ===================================== -->
<!-- ===================================== -->
<!-- for correct rendering combining chars -->
- <xsl:template match="*[local-name() = 'lang_none']">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" match="*[local-name() = 'lang_none']">
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
</xsl:template>
- <xsl:template name="printEdition">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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> -->
@@ -11354,11 +11738,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- convert YYYY-MM-DD to 'Month YYYY' or 'Month DD, YYYY' or DD Month YYYY -->
- <xsl:template name="convertDate">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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)"/>
@@ -11392,11 +11776,11 @@
</xsl:variable>
<xsl:value-of select="$result"/>
</xsl:template> <!-- convertDate -->
<!-- return Month's name by number -->
- <xsl:template name="getMonthByNum">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11441,11 +11825,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 name="getMonthLocalizedByNum">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11464,11 +11848,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 name="insertKeywords">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11492,11 +11876,11 @@
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="insertKeyword">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="insertKeyword">
<xsl:param name="charAtEnd"/>
<xsl:param name="charDelim"/>
<xsl:param name="meta"/>
<xsl:choose>
<xsl:when test="$meta = 'true'">
@@ -11510,11 +11894,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 name="addPDFUAmeta">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11582,11 +11966,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template> <!-- addPDFUAmeta -->
- <xsl:template name="getId">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getId">
<xsl:choose>
<xsl:when test="../@id">
<xsl:value-of select="../@id"/>
</xsl:when>
<xsl:otherwise>
@@ -11594,21 +11978,21 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Get or calculate depth of the element -->
- <xsl:template name="getLevel">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLevel">
<xsl:param name="depth"/>
<xsl:choose>
<xsl:when test="normalize-space(@depth) != ''">
<xsl:value-of select="@depth"/>
</xsl:when>
<xsl:when test="normalize-space($depth) != ''">
<xsl:value-of select="$depth"/>
</xsl:when>
<xsl:otherwise>
- <xsl:variable name="level_total" select="count(ancestor::*)"/>
+ <xsl:variable name="level_total" select="count(ancestor::*[local-name() != 'page_sequence'])"/>
<xsl:variable name="level">
<xsl:choose>
<xsl:when test="parent::*[local-name() = 'preface']">
<xsl:value-of select="$level_total - 1"/>
</xsl:when>
@@ -11641,11 +12025,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLevel -->
<!-- Get or calculate depth of term's name -->
- <xsl:template name="getLevelTermName">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLevelTermName">
<xsl:choose>
<xsl:when test="normalize-space(../@depth) != ''">
<xsl:value-of select="../@depth"/>
</xsl:when>
<xsl:otherwise>
@@ -11664,11 +12048,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLevelTermName -->
<!-- split string by separator -->
- <xsl:template name="split">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -11690,19 +12074,19 @@
<xsl:with-param name="keep_sep" select="$keep_sep"/>
</xsl:call-template>
</xsl:if>
</xsl:template> <!-- split -->
- <xsl:template name="getDocumentId">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getDocumentId">
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
</xsl:template>
- <xsl:template name="getDocumentId_fromCurrentNode">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getDocumentId_fromCurrentNode">
<xsl:call-template name="getLang_fromCurrentNode"/><xsl:value-of select=".//*[local-name() = 'p'][1]/@id"/>
</xsl:template>
- <xsl:template name="namespaceCheck">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="namespaceCheck">
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
<xsl:variable name="XSLNS">
<xsl:value-of select="document('')//*/namespace::un"/>
@@ -11710,11 +12094,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 name="getLanguage">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11722,11 +12106,11 @@
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="setId">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setId">
<xsl:param name="prefix"/>
<xsl:attribute name="id">
<xsl:choose>
<xsl:when test="@id">
<xsl:value-of select="concat($prefix, @id)"/>
@@ -11736,11 +12120,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
- <xsl:template name="add-letter-spacing">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -11755,11 +12139,11 @@
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template name="repeat">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -11767,11 +12151,11 @@
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
- <xsl:template name="getLocalizedString">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="getLocalizedString">
<xsl:param name="key"/>
<xsl:param name="formatted">false</xsl:param>
<xsl:param name="lang"/>
<xsl:param name="returnEmptyIfNotFound">false</xsl:param>
@@ -11823,11 +12207,11 @@
<xsl:value-of select="$key_"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- getLocalizedString -->
- <xsl:template name="setTrackChangesStyles">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="setTrackChangesStyles">
<xsl:param name="isAdded"/>
<xsl:param name="isDeleted"/>
<xsl:choose>
<xsl:when test="local-name() = 'math'">
<xsl:if test="$isAdded = 'true'">
@@ -11852,30 +12236,30 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- setTrackChangesStyles -->
<!-- see https://xmlgraphics.apache.org/fop/2.5/complexscripts.html#bidi_controls-->
- <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: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:if test="$lang = 'ar'">
<xsl:attribute name="writing-mode">rl-tb</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template name="setAlignment">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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 name="setTextAlignment">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11890,11 +12274,11 @@
<xsl:if test="$align = 'indent'">
<xsl:attribute name="margin-left">7mm</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template name="setBlockAttributes">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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>
@@ -11907,11 +12291,11 @@
<xsl:if test="@keep-with-next = 'true'">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
</xsl:if>
</xsl:template>
- <xsl:template name="number-to-words">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="number-to-words">
<xsl:param name="number"/>
<xsl:param name="first"/>
<xsl:if test="$number != ''">
<xsl:variable name="words">
<words>
@@ -12106,11 +12490,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 name="number-to-ordinal">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" name="number-to-ordinal">
<xsl:param name="number"/>
<xsl:param name="curr_lang"/>
<xsl:choose>
<xsl:when test="$curr_lang = 'fr'">
<xsl:choose>
@@ -12128,11 +12512,11 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template> <!-- number-to-ordinal -->
<!-- add the attribute fox:alt-text, required for PDF/UA -->
- <xsl:template name="setAltText">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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"/>
@@ -12140,11 +12524,11 @@
<xsl:otherwise>_</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
- <xsl:template name="substring-after-last">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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">
@@ -12156,10 +12540,10 @@
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="*" mode="print_as_xml">
+ <xsl:template xmlns:redirect="http://xml.apache.org/xalan/redirect" 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