lib/isodoc/itu/itu.technical-report.xsl in metanorma-itu-2.1.2 vs lib/isodoc/itu/itu.technical-report.xsl in metanorma-itu-2.1.3
- old
+ new
@@ -1685,11 +1685,11 @@
<xsl:when test="normalize-space(ancestor::itu:p[1]//text()[not(parent::itu:tt)]) != ''">fo:inline</xsl:when>
<xsl:otherwise>fo:block</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$element-name}">
- <xsl:attribute name="font-family">Courier New</xsl:attribute>
+ <xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:if test="local-name(..) != 'dt' and not(ancestor::itu:dd) and not(ancestor::itu:title)">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:if>
<xsl:if test="ancestor::itu:title">
@@ -2194,21 +2194,23 @@
</xsl:when>
<xsl:otherwise>
<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 name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:attribute-set name="root-style">
+ </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable><xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable><xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable><xsl:attribute-set name="root-style">
- <xsl:attribute name="font-family">Times New Roman, STIX Two Math</xsl:attribute>
+
+ <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">12pt</xsl:attribute>
@@ -2225,21 +2227,64 @@
<xsl:value-of select="."/><xsl:if test="position() != last()">, </xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
+ <xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
+
<xsl:for-each select="$root-style_/root-style/@*">
+
<xsl:choose>
- <xsl:when test="local-name() = 'font-family' and $additional_fonts != ''">
+ <xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
+ <xsl:when test="local-name() = 'font-family'">
+
+ <xsl:variable name="font_regional_prefix">
+ <xsl:choose>
+ <xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
+ <xsl:otherwise>Noto Serif</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<xsl:attribute name="{local-name()}">
- <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
+
+ <xsl:variable name="font_extended">
+ <xsl:choose>
+ <xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
+ <xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
+ <xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
+ <xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
+ <xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
+ <xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:if test="normalize-space($font_extended) != ''">
+ <xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
+ <xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
+ </xsl:if>
+
+ <xsl:value-of select="."/>
+
+ <xsl:if test="$additional_fonts != ''">
+ <xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
+ </xsl:if>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
+
+ <!-- <xsl:choose>
+ <xsl:when test="local-name() = 'font-family'">
+ <xsl:attribute name="{local-name()}">
+ <xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose> -->
</xsl:for-each>
</xsl:template><xsl:attribute-set name="copyright-statement-style">
</xsl:attribute-set><xsl:attribute-set name="copyright-statement-title-style">
@@ -2311,11 +2356,12 @@
- <xsl:attribute name="font-family">Courier New</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>
@@ -2356,18 +2402,20 @@
+
</xsl:attribute-set><xsl:attribute-set name="example-style">
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="margin-top">12pt</xsl:attribute>
@@ -2388,10 +2436,11 @@
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -2430,10 +2479,11 @@
</xsl:attribute-set><xsl:variable name="table-border_">
+
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
<xsl:attribute name="margin-left">0mm</xsl:attribute>
<xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -2443,10 +2493,11 @@
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="space-after">18pt</xsl:attribute>
@@ -2482,20 +2533,22 @@
+
</xsl:attribute-set><xsl:attribute-set 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">center</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
+
@@ -2556,10 +2609,11 @@
+
<xsl:attribute name="display-align">before</xsl:attribute>
@@ -2576,14 +2630,14 @@
-
+
</xsl:attribute-set><xsl:attribute-set name="table-note-style">
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -2591,18 +2645,21 @@
+
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
+
+
<xsl:attribute name="margin-bottom">2pt</xsl:attribute>
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
<xsl:attribute name="text-indent">-5mm</xsl:attribute>
<xsl:attribute name="start-indent">5mm</xsl:attribute>
@@ -2615,10 +2672,11 @@
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
<xsl:attribute name="padding-right">3mm</xsl:attribute>
<xsl:attribute name="font-size">70%</xsl:attribute>
@@ -2655,20 +2713,22 @@
+
</xsl:attribute-set><xsl:attribute-set name="dl-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
+
@@ -2709,10 +2769,11 @@
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="space-before">4pt</xsl:attribute>
@@ -2776,10 +2837,12 @@
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
+ </xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
+
</xsl:attribute-set><xsl:attribute-set name="quote-style">
<xsl:attribute name="margin-left">12mm</xsl:attribute>
<xsl:attribute name="margin-right">12mm</xsl:attribute>
@@ -2818,10 +2881,11 @@
</xsl:attribute-set><xsl:attribute-set name="figure-style">
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
+
@@ -2861,10 +2925,11 @@
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
@@ -2892,21 +2957,21 @@
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
+ <xsl:attribute name="width">100%</xsl:attribute>
+ <xsl:attribute name="content-height">100%</xsl:attribute>
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
<xsl:attribute name="width">75%</xsl:attribute>
- <xsl:attribute name="content-height">100%</xsl:attribute>
<xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
- <xsl:attribute name="scaling">uniform</xsl:attribute>
-
-
+
</xsl:attribute-set><xsl:attribute-set name="tt-style">
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
@@ -2983,10 +3048,11 @@
+
</xsl:attribute-set><xsl:attribute-set name="list-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -3041,10 +3107,11 @@
+
<xsl:attribute name="font-size">60%</xsl:attribute>
<xsl:attribute name="vertical-align">super</xsl:attribute>
@@ -3065,10 +3132,11 @@
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
<xsl:attribute name="text-align">justify</xsl:attribute>
@@ -3089,10 +3157,11 @@
+
<xsl:attribute name="font-size">85%</xsl:attribute>
<xsl:attribute name="padding-right">2mm</xsl:attribute>
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
@@ -3116,21 +3185,25 @@
+
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
+
</xsl:attribute-set><xsl:attribute-set name="admonition-name-style">
<xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -3154,10 +3227,11 @@
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
@@ -3191,10 +3265,11 @@
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-style">
<xsl:attribute name="margin-top">6pt</xsl:attribute>
@@ -3214,10 +3289,11 @@
+
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-left">14mm</xsl:attribute>
@@ -3241,10 +3317,11 @@
+
<xsl:attribute name="font-size">8pt</xsl:attribute>
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
@@ -3262,10 +3339,11 @@
+
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
<xsl:attribute name="padding-right">3mm</xsl:attribute>
@@ -3283,10 +3361,11 @@
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
@@ -3730,10 +3809,12 @@
+
+
<xsl:if test="$doctype = 'service-publication' and $lang != 'ar'">
<xsl:attribute name="font-family">Calibri</xsl:attribute>
</xsl:if>
@@ -3766,10 +3847,12 @@
+
+
<xsl:if test="$doctype = 'service-publication'">
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
</xsl:if>
@@ -3919,27 +4002,33 @@
</xsl:choose>
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
<xsl:param name="continued"/>
<xsl:if test="normalize-space() != ''">
- <fo:block xsl:use-attribute-sets="table-name-style">
-
+
+
-
-
-
- <xsl:choose>
- <xsl:when test="$continued = 'true'">
+ <fo:block xsl:use-attribute-sets="table-name-style">
+
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
+
+
+
+ <xsl:choose>
+ <xsl:when test="$continued = 'true'">
+
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
+
+
+ </fo:block>
+
-
- </fo:block>
+
</xsl:if>
</xsl:template><xsl:template name="calculate-columns-numbers">
<xsl:param name="table-row"/>
<xsl:variable name="columns-count" select="count($table-row/*)"/>
<xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
@@ -4333,16 +4422,22 @@
<xsl:param name="cols-count"/>
<!-- row for title -->
<fo:table-row>
<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">
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
- <xsl:with-param name="continued">true</xsl:with-param>
- </xsl:apply-templates>
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
+ <xsl:with-param name="continued">true</xsl:with-param>
+ </xsl:apply-templates>
+
+
+
+
+
+
</fo:table-cell>
</fo:table-row>
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
<fo:table-body>
<xsl:apply-templates/>
@@ -4458,20 +4553,26 @@
<!-- horizontal row separator -->
<!-- fn processing -->
- <xsl:call-template name="table_fn_display"/>
+ <xsl:call-template name="table_fn_display"/>
+
+
+
<!-- for PAS display Notes after footnotes -->
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
+
+
+
</xsl:if>
</xsl:template><xsl:template match="*[local-name()='tbody']">
<xsl:variable name="cols-count">
<xsl:choose>
@@ -4556,11 +4657,14 @@
+
+
+
<xsl:if test="$doctype = 'service-publication'">
<xsl:attribute name="border-bottom">1.1pt solid black</xsl:attribute>
</xsl:if>
@@ -4579,10 +4683,12 @@
+
+
<xsl:call-template name="setTableRowAttributes"/>
<xsl:apply-templates/>
</fo:table-row>
</xsl:template><xsl:template name="setTableRowAttributes">
@@ -4675,10 +4781,12 @@
+
+
<xsl:if test="ancestor::*[local-name()='preface']">
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
</xsl:if>
<xsl:if test="$doctype = 'service-publication'">
<xsl:attribute name="border">1pt solid rgb(211,211,211)</xsl:attribute>
@@ -4754,11 +4862,15 @@
</xsl:variable>
<xsl:variable name="p_fn" select="xalan:nodeset($p_fn_)"/>
<xsl:variable name="gen_id" select="generate-id(.)"/>
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
- <xsl:variable name="reference" select="@reference"/>
+ <xsl:variable name="reference_">
+ <xsl:value-of select="@reference"/>
+ <xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
+ </xsl:variable>
+ <xsl:variable name="reference" select="normalize-space($reference_)"/>
<!-- fn sequence number in document -->
<xsl:variable name="current_fn_number">
<xsl:choose>
<xsl:when test="@current_fn_number"><xsl:value-of select="@current_fn_number"/></xsl:when> <!-- for BSI -->
<xsl:otherwise>
@@ -4833,11 +4945,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()='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"/>
<xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[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])]">
<!-- copy unique fn -->
<fn gen_id="{generate-id(.)}">
<xsl:copy-of select="@*"/>
@@ -6496,16 +6608,21 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<fo:inline xsl:use-attribute-sets="link-style">
+ <xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
+ </xsl:if>
+
+
<xsl:choose>
<xsl:when test="$target_text = ''">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
@@ -6764,11 +6881,23 @@
<xsl:if test="normalize-space() != ''">
<xsl:apply-templates/>
<xsl:value-of select="$suffix"/>
</xsl:if>
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
- <fo:inline><xsl:apply-templates/></fo:inline>
+ <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/>
+ </fo:inline>
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:block xsl:use-attribute-sets="termnote-p-style">
+ <xsl:apply-templates/>
+ </fo:block>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template><xsl:template match="*[local-name() = 'terms']">
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
<fo:block id="{@id}">
<xsl:apply-templates/>
</fo:block>
@@ -7581,11 +7710,11 @@
<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 match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref']" mode="contents">
<xsl:value-of select="."/>
- </xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
+ </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
<xsl:text> </xsl:text>
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
<xsl:copy>
<xsl:apply-templates mode="contents_item"/>
</xsl:copy>
@@ -8420,10 +8549,11 @@
+
<xsl:choose>
<xsl:when test="$depth = 5">7</xsl:when>
<xsl:when test="$depth = 4">10</xsl:when>
<xsl:when test="$depth = 3">6</xsl:when>
<xsl:when test="$depth = 2">9</xsl:when>
@@ -9411,16 +9541,20 @@
<!-- text in the box -->
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
+
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
+
+
<fo:block xsl:use-attribute-sets="admonition-name-style">
<xsl:call-template name="displayAdmonitionName"/>
</fo:block>
<fo:block xsl:use-attribute-sets="admonition-p-style">
<xsl:apply-templates select="node()[not(local-name() = 'name')]"/>
@@ -9625,10 +9759,12 @@
<xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
</xsl:choose>
+ </xsl:template><xsl:template match="*[local-name() = 'lang_none']">
+ <fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
</xsl:template><xsl:template name="printEdition">
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="$edition_i18n != ''">
@@ -9731,10 +9867,31 @@
<xsl:when test="normalize-space($lowercase) = 'true'">
<xsl:value-of select="java:toLowerCase(java:java.lang.String.new($monthStr_))"/>
</xsl:when>
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
</xsl:choose>
+ </xsl:template><xsl:template name="getMonthLocalizedByNum">
+ <xsl:param name="num"/>
+ <xsl:variable name="monthStr">
+ <xsl:choose>
+ <xsl:when test="$num = '01'">january</xsl:when>
+ <xsl:when test="$num = '02'">february</xsl:when>
+ <xsl:when test="$num = '03'">march</xsl:when>
+ <xsl:when test="$num = '04'">april</xsl:when>
+ <xsl:when test="$num = '05'">may</xsl:when>
+ <xsl:when test="$num = '06'">june</xsl:when>
+ <xsl:when test="$num = '07'">july</xsl:when>
+ <xsl:when test="$num = '08'">august</xsl:when>
+ <xsl:when test="$num = '09'">september</xsl:when>
+ <xsl:when test="$num = '10'">october</xsl:when>
+ <xsl:when test="$num = '11'">november</xsl:when>
+ <xsl:when test="$num = '12'">december</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:call-template name="getLocalizedString">
+ <xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
+ </xsl:call-template>
</xsl:template><xsl:template name="insertKeywords">
<xsl:param name="sorting" select="'true'"/>
<xsl:param name="charAtEnd" select="'.'"/>
<xsl:param name="charDelim" select="', '"/>
<xsl:choose>
@@ -9919,9 +10076,10 @@
</xsl:template><xsl:template name="getDocumentId">
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
</xsl:template><xsl:template name="namespaceCheck">
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
<xsl:variable name="XSLNS">
+
<xsl:value-of select="document('')//*/namespace::itu"/>
\ No newline at end of file