metanorma-ogc 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +81 -21
- data/lib/isodoc/ogc/ogc.best-practice.xsl +81 -21
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +81 -21
- data/lib/isodoc/ogc/ogc.community-practice.xsl +81 -21
- data/lib/isodoc/ogc/ogc.community-standard.xsl +81 -21
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +81 -21
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +81 -21
- data/lib/isodoc/ogc/ogc.other.xsl +81 -21
- data/lib/isodoc/ogc/ogc.policy.xsl +81 -21
- data/lib/isodoc/ogc/ogc.reference-model.xsl +81 -21
- data/lib/isodoc/ogc/ogc.release-notes.xsl +81 -21
- data/lib/isodoc/ogc/ogc.standard.xsl +81 -21
- data/lib/isodoc/ogc/ogc.test-suite.xsl +81 -21
- data/lib/isodoc/ogc/ogc.user-guide.xsl +81 -21
- data/lib/isodoc/ogc/ogc.white-paper.xsl +81 -21
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +3 -3
@@ -1451,7 +1451,7 @@
|
|
1451
1451
|
</fo:static-content>
|
1452
1452
|
</xsl:template>
|
1453
1453
|
|
1454
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1454
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1455
1455
|
<xsl:call-template name="getLang"/>
|
1456
1456
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1457
1457
|
215.9
|
@@ -6113,7 +6113,51 @@
|
|
6113
6113
|
<xsl:with-param name="text" select="$text_step1"/>
|
6114
6114
|
</xsl:call-template>
|
6115
6115
|
</xsl:variable>
|
6116
|
-
|
6116
|
+
|
6117
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
6118
|
+
|
6119
|
+
<!-- add zero-width space after space -->
|
6120
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
6121
|
+
|
6122
|
+
<!-- split text by zero-width space -->
|
6123
|
+
<xsl:variable name="text_step4">
|
6124
|
+
<xsl:call-template name="split">
|
6125
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
6126
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
6127
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
6128
|
+
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
6129
|
+
</xsl:call-template>
|
6130
|
+
</xsl:variable>
|
6131
|
+
|
6132
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/item">
|
6133
|
+
<xsl:choose>
|
6134
|
+
<xsl:when test="string-length() > 30"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
6135
|
+
<xsl:call-template name="interspers">
|
6136
|
+
<xsl:with-param name="str" select="."/>
|
6137
|
+
</xsl:call-template>
|
6138
|
+
</xsl:when>
|
6139
|
+
<xsl:otherwise>
|
6140
|
+
<xsl:value-of select="."/>
|
6141
|
+
</xsl:otherwise>
|
6142
|
+
</xsl:choose>
|
6143
|
+
</xsl:for-each>
|
6144
|
+
|
6145
|
+
</xsl:template><xsl:template name="interspers">
|
6146
|
+
<xsl:param name="str"/>
|
6147
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
6148
|
+
<xsl:if test="$str != ''">
|
6149
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
6150
|
+
|
6151
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
6152
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
6153
|
+
<xsl:value-of select="$char"/>
|
6154
|
+
</xsl:if>
|
6155
|
+
|
6156
|
+
<xsl:call-template name="interspers">
|
6157
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
6158
|
+
<xsl:with-param name="char" select="$char"/>
|
6159
|
+
</xsl:call-template>
|
6160
|
+
</xsl:if>
|
6117
6161
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
6118
6162
|
<xsl:apply-templates mode="syntax_highlight"/>
|
6119
6163
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6631,11 +6675,24 @@
|
|
6631
6675
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6632
6676
|
<xsl:text>— </xsl:text>
|
6633
6677
|
<xsl:apply-templates/>
|
6634
|
-
</xsl:template><xsl:
|
6678
|
+
</xsl:template><xsl:variable name="bibitems_">
|
6679
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
6680
|
+
<xsl:copy-of select="."/>
|
6681
|
+
</xsl:for-each>
|
6682
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
6683
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
6684
|
+
<xsl:copy-of select="."/>
|
6685
|
+
</xsl:for-each>
|
6686
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
6687
|
+
<xsl:copy-of select="."/>
|
6688
|
+
</xsl:for-each>
|
6689
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6635
6690
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6636
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6691
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
6692
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6637
6693
|
<xsl:choose>
|
6638
|
-
<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) -->
|
6694
|
+
<!-- <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) -->
|
6695
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6639
6696
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6640
6697
|
<xsl:if test="@type = 'footnote'">
|
6641
6698
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -7881,7 +7938,7 @@
|
|
7881
7938
|
<xsl:copy>
|
7882
7939
|
<xsl:copy-of select="@*"/>
|
7883
7940
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
7884
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
7941
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
7885
7942
|
<xsl:sort select="@displayorder" data-type="number"/>
|
7886
7943
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
7887
7944
|
</xsl:for-each>
|
@@ -8130,22 +8187,25 @@
|
|
8130
8187
|
<xsl:param name="pText" select="."/>
|
8131
8188
|
<xsl:param name="sep" select="','"/>
|
8132
8189
|
<xsl:param name="normalize-space" select="'true'"/>
|
8190
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
8133
8191
|
<xsl:if test="string-length($pText) >0">
|
8134
|
-
|
8135
|
-
|
8136
|
-
|
8137
|
-
|
8138
|
-
|
8139
|
-
|
8140
|
-
|
8141
|
-
|
8142
|
-
|
8143
|
-
|
8144
|
-
|
8145
|
-
<xsl:
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8192
|
+
<item>
|
8193
|
+
<xsl:choose>
|
8194
|
+
<xsl:when test="$normalize-space = 'true'">
|
8195
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
8196
|
+
</xsl:when>
|
8197
|
+
<xsl:otherwise>
|
8198
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
8199
|
+
</xsl:otherwise>
|
8200
|
+
</xsl:choose>
|
8201
|
+
</item>
|
8202
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
8203
|
+
<xsl:call-template name="split">
|
8204
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
8205
|
+
<xsl:with-param name="sep" select="$sep"/>
|
8206
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
8207
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
8208
|
+
</xsl:call-template>
|
8149
8209
|
</xsl:if>
|
8150
8210
|
</xsl:template><xsl:template name="getDocumentId">
|
8151
8211
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
@@ -1451,7 +1451,7 @@
|
|
1451
1451
|
</fo:static-content>
|
1452
1452
|
</xsl:template>
|
1453
1453
|
|
1454
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1454
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1455
1455
|
<xsl:call-template name="getLang"/>
|
1456
1456
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1457
1457
|
215.9
|
@@ -6113,7 +6113,51 @@
|
|
6113
6113
|
<xsl:with-param name="text" select="$text_step1"/>
|
6114
6114
|
</xsl:call-template>
|
6115
6115
|
</xsl:variable>
|
6116
|
-
|
6116
|
+
|
6117
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
6118
|
+
|
6119
|
+
<!-- add zero-width space after space -->
|
6120
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
6121
|
+
|
6122
|
+
<!-- split text by zero-width space -->
|
6123
|
+
<xsl:variable name="text_step4">
|
6124
|
+
<xsl:call-template name="split">
|
6125
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
6126
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
6127
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
6128
|
+
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
6129
|
+
</xsl:call-template>
|
6130
|
+
</xsl:variable>
|
6131
|
+
|
6132
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/item">
|
6133
|
+
<xsl:choose>
|
6134
|
+
<xsl:when test="string-length() > 30"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
6135
|
+
<xsl:call-template name="interspers">
|
6136
|
+
<xsl:with-param name="str" select="."/>
|
6137
|
+
</xsl:call-template>
|
6138
|
+
</xsl:when>
|
6139
|
+
<xsl:otherwise>
|
6140
|
+
<xsl:value-of select="."/>
|
6141
|
+
</xsl:otherwise>
|
6142
|
+
</xsl:choose>
|
6143
|
+
</xsl:for-each>
|
6144
|
+
|
6145
|
+
</xsl:template><xsl:template name="interspers">
|
6146
|
+
<xsl:param name="str"/>
|
6147
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
6148
|
+
<xsl:if test="$str != ''">
|
6149
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
6150
|
+
|
6151
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
6152
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
6153
|
+
<xsl:value-of select="$char"/>
|
6154
|
+
</xsl:if>
|
6155
|
+
|
6156
|
+
<xsl:call-template name="interspers">
|
6157
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
6158
|
+
<xsl:with-param name="char" select="$char"/>
|
6159
|
+
</xsl:call-template>
|
6160
|
+
</xsl:if>
|
6117
6161
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
6118
6162
|
<xsl:apply-templates mode="syntax_highlight"/>
|
6119
6163
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6631,11 +6675,24 @@
|
|
6631
6675
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6632
6676
|
<xsl:text>— </xsl:text>
|
6633
6677
|
<xsl:apply-templates/>
|
6634
|
-
</xsl:template><xsl:
|
6678
|
+
</xsl:template><xsl:variable name="bibitems_">
|
6679
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
6680
|
+
<xsl:copy-of select="."/>
|
6681
|
+
</xsl:for-each>
|
6682
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
6683
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
6684
|
+
<xsl:copy-of select="."/>
|
6685
|
+
</xsl:for-each>
|
6686
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
6687
|
+
<xsl:copy-of select="."/>
|
6688
|
+
</xsl:for-each>
|
6689
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6635
6690
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6636
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6691
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
6692
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6637
6693
|
<xsl:choose>
|
6638
|
-
<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) -->
|
6694
|
+
<!-- <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) -->
|
6695
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6639
6696
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6640
6697
|
<xsl:if test="@type = 'footnote'">
|
6641
6698
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -7881,7 +7938,7 @@
|
|
7881
7938
|
<xsl:copy>
|
7882
7939
|
<xsl:copy-of select="@*"/>
|
7883
7940
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
7884
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
7941
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
7885
7942
|
<xsl:sort select="@displayorder" data-type="number"/>
|
7886
7943
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
7887
7944
|
</xsl:for-each>
|
@@ -8130,22 +8187,25 @@
|
|
8130
8187
|
<xsl:param name="pText" select="."/>
|
8131
8188
|
<xsl:param name="sep" select="','"/>
|
8132
8189
|
<xsl:param name="normalize-space" select="'true'"/>
|
8190
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
8133
8191
|
<xsl:if test="string-length($pText) >0">
|
8134
|
-
|
8135
|
-
|
8136
|
-
|
8137
|
-
|
8138
|
-
|
8139
|
-
|
8140
|
-
|
8141
|
-
|
8142
|
-
|
8143
|
-
|
8144
|
-
|
8145
|
-
<xsl:
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8192
|
+
<item>
|
8193
|
+
<xsl:choose>
|
8194
|
+
<xsl:when test="$normalize-space = 'true'">
|
8195
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
8196
|
+
</xsl:when>
|
8197
|
+
<xsl:otherwise>
|
8198
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
8199
|
+
</xsl:otherwise>
|
8200
|
+
</xsl:choose>
|
8201
|
+
</item>
|
8202
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
8203
|
+
<xsl:call-template name="split">
|
8204
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
8205
|
+
<xsl:with-param name="sep" select="$sep"/>
|
8206
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
8207
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
8208
|
+
</xsl:call-template>
|
8149
8209
|
</xsl:if>
|
8150
8210
|
</xsl:template><xsl:template name="getDocumentId">
|
8151
8211
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
@@ -1451,7 +1451,7 @@
|
|
1451
1451
|
</fo:static-content>
|
1452
1452
|
</xsl:template>
|
1453
1453
|
|
1454
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1454
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1455
1455
|
<xsl:call-template name="getLang"/>
|
1456
1456
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1457
1457
|
215.9
|
@@ -6113,7 +6113,51 @@
|
|
6113
6113
|
<xsl:with-param name="text" select="$text_step1"/>
|
6114
6114
|
</xsl:call-template>
|
6115
6115
|
</xsl:variable>
|
6116
|
-
|
6116
|
+
|
6117
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
6118
|
+
|
6119
|
+
<!-- add zero-width space after space -->
|
6120
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
6121
|
+
|
6122
|
+
<!-- split text by zero-width space -->
|
6123
|
+
<xsl:variable name="text_step4">
|
6124
|
+
<xsl:call-template name="split">
|
6125
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
6126
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
6127
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
6128
|
+
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
6129
|
+
</xsl:call-template>
|
6130
|
+
</xsl:variable>
|
6131
|
+
|
6132
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/item">
|
6133
|
+
<xsl:choose>
|
6134
|
+
<xsl:when test="string-length() > 30"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
6135
|
+
<xsl:call-template name="interspers">
|
6136
|
+
<xsl:with-param name="str" select="."/>
|
6137
|
+
</xsl:call-template>
|
6138
|
+
</xsl:when>
|
6139
|
+
<xsl:otherwise>
|
6140
|
+
<xsl:value-of select="."/>
|
6141
|
+
</xsl:otherwise>
|
6142
|
+
</xsl:choose>
|
6143
|
+
</xsl:for-each>
|
6144
|
+
|
6145
|
+
</xsl:template><xsl:template name="interspers">
|
6146
|
+
<xsl:param name="str"/>
|
6147
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
6148
|
+
<xsl:if test="$str != ''">
|
6149
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
6150
|
+
|
6151
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
6152
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
6153
|
+
<xsl:value-of select="$char"/>
|
6154
|
+
</xsl:if>
|
6155
|
+
|
6156
|
+
<xsl:call-template name="interspers">
|
6157
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
6158
|
+
<xsl:with-param name="char" select="$char"/>
|
6159
|
+
</xsl:call-template>
|
6160
|
+
</xsl:if>
|
6117
6161
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
6118
6162
|
<xsl:apply-templates mode="syntax_highlight"/>
|
6119
6163
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6631,11 +6675,24 @@
|
|
6631
6675
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6632
6676
|
<xsl:text>— </xsl:text>
|
6633
6677
|
<xsl:apply-templates/>
|
6634
|
-
</xsl:template><xsl:
|
6678
|
+
</xsl:template><xsl:variable name="bibitems_">
|
6679
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
6680
|
+
<xsl:copy-of select="."/>
|
6681
|
+
</xsl:for-each>
|
6682
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
6683
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
6684
|
+
<xsl:copy-of select="."/>
|
6685
|
+
</xsl:for-each>
|
6686
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
6687
|
+
<xsl:copy-of select="."/>
|
6688
|
+
</xsl:for-each>
|
6689
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6635
6690
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6636
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6691
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
6692
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6637
6693
|
<xsl:choose>
|
6638
|
-
<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) -->
|
6694
|
+
<!-- <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) -->
|
6695
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6639
6696
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6640
6697
|
<xsl:if test="@type = 'footnote'">
|
6641
6698
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -7881,7 +7938,7 @@
|
|
7881
7938
|
<xsl:copy>
|
7882
7939
|
<xsl:copy-of select="@*"/>
|
7883
7940
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
7884
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
7941
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
7885
7942
|
<xsl:sort select="@displayorder" data-type="number"/>
|
7886
7943
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
7887
7944
|
</xsl:for-each>
|
@@ -8130,22 +8187,25 @@
|
|
8130
8187
|
<xsl:param name="pText" select="."/>
|
8131
8188
|
<xsl:param name="sep" select="','"/>
|
8132
8189
|
<xsl:param name="normalize-space" select="'true'"/>
|
8190
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
8133
8191
|
<xsl:if test="string-length($pText) >0">
|
8134
|
-
|
8135
|
-
|
8136
|
-
|
8137
|
-
|
8138
|
-
|
8139
|
-
|
8140
|
-
|
8141
|
-
|
8142
|
-
|
8143
|
-
|
8144
|
-
|
8145
|
-
<xsl:
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8192
|
+
<item>
|
8193
|
+
<xsl:choose>
|
8194
|
+
<xsl:when test="$normalize-space = 'true'">
|
8195
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
8196
|
+
</xsl:when>
|
8197
|
+
<xsl:otherwise>
|
8198
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
8199
|
+
</xsl:otherwise>
|
8200
|
+
</xsl:choose>
|
8201
|
+
</item>
|
8202
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
8203
|
+
<xsl:call-template name="split">
|
8204
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
8205
|
+
<xsl:with-param name="sep" select="$sep"/>
|
8206
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
8207
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
8208
|
+
</xsl:call-template>
|
8149
8209
|
</xsl:if>
|
8150
8210
|
</xsl:template><xsl:template name="getDocumentId">
|
8151
8211
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
@@ -1451,7 +1451,7 @@
|
|
1451
1451
|
</fo:static-content>
|
1452
1452
|
</xsl:template>
|
1453
1453
|
|
1454
|
-
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:
|
1454
|
+
<xsl:param name="svg_images"/><xsl:variable name="images" select="document($svg_images)"/><xsl:param name="basepath"/><xsl:param name="external_index"/><xsl:param name="syntax-highlight">false</xsl:param><xsl:variable name="lang">
|
1455
1455
|
<xsl:call-template name="getLang"/>
|
1456
1456
|
</xsl:variable><xsl:variable name="pageWidth_">
|
1457
1457
|
215.9
|
@@ -6113,7 +6113,51 @@
|
|
6113
6113
|
<xsl:with-param name="text" select="$text_step1"/>
|
6114
6114
|
</xsl:call-template>
|
6115
6115
|
</xsl:variable>
|
6116
|
-
|
6116
|
+
|
6117
|
+
<!-- <xsl:value-of select="$text_step2"/> -->
|
6118
|
+
|
6119
|
+
<!-- add zero-width space after space -->
|
6120
|
+
<xsl:variable name="text_step3" select="java:replaceAll(java:java.lang.String.new($text_step2),' ',' ')"/>
|
6121
|
+
|
6122
|
+
<!-- split text by zero-width space -->
|
6123
|
+
<xsl:variable name="text_step4">
|
6124
|
+
<xsl:call-template name="split">
|
6125
|
+
<xsl:with-param name="pText" select="$text_step3"/>
|
6126
|
+
<xsl:with-param name="sep" select="$zero_width_space"/>
|
6127
|
+
<xsl:with-param name="normalize-space">false</xsl:with-param>
|
6128
|
+
<xsl:with-param name="keep_sep">true</xsl:with-param>
|
6129
|
+
</xsl:call-template>
|
6130
|
+
</xsl:variable>
|
6131
|
+
|
6132
|
+
<xsl:for-each select="xalan:nodeset($text_step4)/item">
|
6133
|
+
<xsl:choose>
|
6134
|
+
<xsl:when test="string-length() > 30"> <!-- word with length more than 30 will be interspersed with zero-width space -->
|
6135
|
+
<xsl:call-template name="interspers">
|
6136
|
+
<xsl:with-param name="str" select="."/>
|
6137
|
+
</xsl:call-template>
|
6138
|
+
</xsl:when>
|
6139
|
+
<xsl:otherwise>
|
6140
|
+
<xsl:value-of select="."/>
|
6141
|
+
</xsl:otherwise>
|
6142
|
+
</xsl:choose>
|
6143
|
+
</xsl:for-each>
|
6144
|
+
|
6145
|
+
</xsl:template><xsl:template name="interspers">
|
6146
|
+
<xsl:param name="str"/>
|
6147
|
+
<xsl:param name="char" select="$zero_width_space"/>
|
6148
|
+
<xsl:if test="$str != ''">
|
6149
|
+
<xsl:value-of select="substring($str, 1, 1)"/>
|
6150
|
+
|
6151
|
+
<xsl:variable name="next_char" select="substring($str, 2, 1)"/>
|
6152
|
+
<xsl:if test="not(contains(concat(' -.:=_— ', $char), $next_char))">
|
6153
|
+
<xsl:value-of select="$char"/>
|
6154
|
+
</xsl:if>
|
6155
|
+
|
6156
|
+
<xsl:call-template name="interspers">
|
6157
|
+
<xsl:with-param name="str" select="substring($str, 2)"/>
|
6158
|
+
<xsl:with-param name="char" select="$char"/>
|
6159
|
+
</xsl:call-template>
|
6160
|
+
</xsl:if>
|
6117
6161
|
</xsl:template><xsl:template match="*" mode="syntax_highlight">
|
6118
6162
|
<xsl:apply-templates mode="syntax_highlight"/>
|
6119
6163
|
</xsl:template><xsl:variable name="syntax_highlight_styles_">
|
@@ -6631,11 +6675,24 @@
|
|
6631
6675
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
6632
6676
|
<xsl:text>— </xsl:text>
|
6633
6677
|
<xsl:apply-templates/>
|
6634
|
-
</xsl:template><xsl:
|
6678
|
+
</xsl:template><xsl:variable name="bibitems_">
|
6679
|
+
<xsl:for-each select="//*[local-name() = 'bibitem']">
|
6680
|
+
<xsl:copy-of select="."/>
|
6681
|
+
</xsl:for-each>
|
6682
|
+
</xsl:variable><xsl:variable name="bibitems" select="xalan:nodeset($bibitems_)"/><xsl:variable name="bibitems_hidden_">
|
6683
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
6684
|
+
<xsl:copy-of select="."/>
|
6685
|
+
</xsl:for-each>
|
6686
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']//*[local-name() = 'bibitem']">
|
6687
|
+
<xsl:copy-of select="."/>
|
6688
|
+
</xsl:for-each>
|
6689
|
+
</xsl:variable><xsl:variable name="bibitems_hidden" select="xalan:nodeset($bibitems_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
6635
6690
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
6636
|
-
<xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6691
|
+
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
6692
|
+
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
6637
6693
|
<xsl:choose>
|
6638
|
-
<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) -->
|
6694
|
+
<!-- <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) -->
|
6695
|
+
<xsl:when test="$external-destination != '' or not($bibitems_hidden/*[local-name() ='bibitem'][@id = $current_bibitemid])"> <!-- if in the bibliography there is the item with @bibitemid (and not hidden), then create link (internal to the bibitem or external) -->
|
6639
6696
|
<fo:inline xsl:use-attribute-sets="eref-style">
|
6640
6697
|
<xsl:if test="@type = 'footnote'">
|
6641
6698
|
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
@@ -7881,7 +7938,7 @@
|
|
7881
7938
|
<xsl:copy>
|
7882
7939
|
<xsl:copy-of select="@*"/>
|
7883
7940
|
<!-- copy all elements from bibliography except 'Normative references' (moved to 'sections') -->
|
7884
|
-
<xsl:for-each select="*[not(@normative='true') and not(*[
|
7941
|
+
<xsl:for-each select="*[not(@normative='true') and not(*[@normative='true'])]">
|
7885
7942
|
<xsl:sort select="@displayorder" data-type="number"/>
|
7886
7943
|
<xsl:apply-templates select="." mode="update_xml_step1"/>
|
7887
7944
|
</xsl:for-each>
|
@@ -8130,22 +8187,25 @@
|
|
8130
8187
|
<xsl:param name="pText" select="."/>
|
8131
8188
|
<xsl:param name="sep" select="','"/>
|
8132
8189
|
<xsl:param name="normalize-space" select="'true'"/>
|
8190
|
+
<xsl:param name="keep_sep" select="'false'"/>
|
8133
8191
|
<xsl:if test="string-length($pText) >0">
|
8134
|
-
|
8135
|
-
|
8136
|
-
|
8137
|
-
|
8138
|
-
|
8139
|
-
|
8140
|
-
|
8141
|
-
|
8142
|
-
|
8143
|
-
|
8144
|
-
|
8145
|
-
<xsl:
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8192
|
+
<item>
|
8193
|
+
<xsl:choose>
|
8194
|
+
<xsl:when test="$normalize-space = 'true'">
|
8195
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
8196
|
+
</xsl:when>
|
8197
|
+
<xsl:otherwise>
|
8198
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
8199
|
+
</xsl:otherwise>
|
8200
|
+
</xsl:choose>
|
8201
|
+
</item>
|
8202
|
+
<xsl:if test="$keep_sep = 'true' and contains($pText, $sep)"><item><xsl:value-of select="$sep"/></item></xsl:if>
|
8203
|
+
<xsl:call-template name="split">
|
8204
|
+
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
8205
|
+
<xsl:with-param name="sep" select="$sep"/>
|
8206
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
8207
|
+
<xsl:with-param name="keep_sep" select="$keep_sep"/>
|
8208
|
+
</xsl:call-template>
|
8149
8209
|
</xsl:if>
|
8150
8210
|
</xsl:template><xsl:template name="getDocumentId">
|
8151
8211
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|