metanorma-ogc 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61e36c2e89b6b98ad39875845197c8614cd4c1906f4d6f4e2359cc33c7933010
4
- data.tar.gz: 151018908ddb1823476252db5ea5a196854999365e34f678c47d9c5f3775c2a9
3
+ metadata.gz: 1c203aacb7ff88cfd91d3572b59743f962d4df5d8c602dc056bc6e3b3daeb3cd
4
+ data.tar.gz: 5a0071efa21404e76b64a98ec6ff07b7b6a3f3252a03ef68e83144ebe69a62be
5
5
  SHA512:
6
- metadata.gz: 1ac0c8664160741ddaff9f625c64663338d6c1fd176f6b2d60f59d0810c3b448865cadeb5a15c1a269542cfce7fb98dc192b5a90a9dcb37d18e010db2f1127fc
7
- data.tar.gz: d9b93b3c092a5d9b57d6ce03b8cf865e82ae04f0cb1faaf9feb55a2b67f9827aa7a8a511c6afcbd8fc202c6d12e393f8e2f8e6008c249f9d19448d53af037326
6
+ metadata.gz: 07aeafd71ed996a103514871386fc9cef5660f4a296f115ffb9f3311f41d65af330498fd487109d505d623e207e04ba1d58d242798f09f8a0d0dd28844adfe0a
7
+ data.tar.gz: 00506d3ba16ca2b88bc497c02ee57e700236652d5ad146e6ec295f58d56f0eacef6362cef00b94f2c44e74f402e58448fc35e0238c609f9e56af962483cbfb88
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2930,8 +2930,27 @@
2930
2930
  <xsl:sort select="@displayorder" data-type="number"/>
2931
2931
  <xsl:apply-templates select="."/>
2932
2932
  </xsl:for-each>
2933
- </xsl:template><xsl:template match="text()">
2934
- <xsl:value-of select="."/>
2933
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2934
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2935
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2936
+ <xsl:call-template name="replace_fo_inline">
2937
+ <xsl:with-param name="text" select="$text"/>
2938
+ </xsl:call-template>
2939
+ </xsl:template><xsl:template name="replace_fo_inline">
2940
+ <xsl:param name="text"/>
2941
+ <xsl:choose>
2942
+ <xsl:when test="contains($text, $tag_open)">
2943
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2944
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2945
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2946
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2947
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2948
+ <xsl:call-template name="replace_fo_inline">
2949
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2950
+ </xsl:call-template>
2951
+ </xsl:when>
2952
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2953
+ </xsl:choose>
2935
2954
  </xsl:template><xsl:template match="*[local-name()='br']">
2936
2955
  <xsl:value-of select="$linebreak"/>
2937
2956
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -6635,7 +6654,8 @@
6635
6654
  <fo:inline><xsl:apply-templates/></fo:inline>
6636
6655
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
6637
6656
  <xsl:if test="normalize-space() != ''">
6638
- <xsl:value-of select="."/>
6657
+ <!-- <xsl:value-of select="."/> -->
6658
+ <xsl:call-template name="text"/>
6639
6659
  </xsl:if>
6640
6660
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
6641
6661
  <fo:block-container margin-left="0mm">
@@ -2119,8 +2119,27 @@
2119
2119
  <xsl:sort select="@displayorder" data-type="number"/>
2120
2120
  <xsl:apply-templates select="."/>
2121
2121
  </xsl:for-each>
2122
- </xsl:template><xsl:template match="text()">
2123
- <xsl:value-of select="."/>
2122
+ </xsl:template><xsl:variable name="tag_open">###fo:inline###</xsl:variable><xsl:variable name="tag_close">###/fo:inline###</xsl:variable><xsl:template match="text()" name="text">
2123
+ <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
2124
+ <xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.),$regex_standard_reference,concat($tag_open,'$1',$tag_close))"/>
2125
+ <xsl:call-template name="replace_fo_inline">
2126
+ <xsl:with-param name="text" select="$text"/>
2127
+ </xsl:call-template>
2128
+ </xsl:template><xsl:template name="replace_fo_inline">
2129
+ <xsl:param name="text"/>
2130
+ <xsl:choose>
2131
+ <xsl:when test="contains($text, $tag_open)">
2132
+ <xsl:value-of select="substring-before($text, $tag_open)"/>
2133
+ <xsl:text disable-output-escaping="yes">&lt;fo:inline keep-together.within-line="always"&gt;</xsl:text>
2134
+ <xsl:variable name="text_after" select="substring-after($text, $tag_open)"/>
2135
+ <xsl:value-of select="substring-before($text_after, $tag_close)"/>
2136
+ <xsl:text disable-output-escaping="yes">&lt;/fo:inline&gt;</xsl:text>
2137
+ <xsl:call-template name="replace_fo_inline">
2138
+ <xsl:with-param name="text" select="substring-after($text_after, $tag_close)"/>
2139
+ </xsl:call-template>
2140
+ </xsl:when>
2141
+ <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
2142
+ </xsl:choose>
2124
2143
  </xsl:template><xsl:template match="*[local-name()='br']">
2125
2144
  <xsl:value-of select="$linebreak"/>
2126
2145
  </xsl:template><xsl:template match="*[local-name()='copyright-statement']">
@@ -5796,7 +5815,8 @@
5796
5815
  <fo:inline><xsl:apply-templates/></fo:inline>
5797
5816
  </xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
5798
5817
  <xsl:if test="normalize-space() != ''">
5799
- <xsl:value-of select="."/>
5818
+ <!-- <xsl:value-of select="."/> -->
5819
+ <xsl:call-template name="text"/>
5800
5820
  </xsl:if>
5801
5821
  </xsl:template><xsl:template match="*[local-name() = 'quote']">
5802
5822
  <fo:block-container margin-left="0mm">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.0.6".freeze
3
+ VERSION = "2.0.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639