metanorma-ogc 2.2.3 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/automerge.yml +31 -0
- data/lib/isodoc/ogc/html/htmlstyle.css +1 -1
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +42 -14
- data/lib/isodoc/ogc/ogc.best-practice.xsl +42 -14
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +42 -14
- data/lib/isodoc/ogc/ogc.community-practice.xsl +42 -14
- data/lib/isodoc/ogc/ogc.community-standard.xsl +42 -14
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +42 -14
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +42 -14
- data/lib/isodoc/ogc/ogc.other.xsl +42 -14
- data/lib/isodoc/ogc/ogc.policy.xsl +42 -14
- data/lib/isodoc/ogc/ogc.reference-model.xsl +42 -14
- data/lib/isodoc/ogc/ogc.release-notes.xsl +42 -14
- data/lib/isodoc/ogc/ogc.standard.xsl +42 -14
- data/lib/isodoc/ogc/ogc.test-suite.xsl +42 -14
- data/lib/isodoc/ogc/ogc.user-guide.xsl +42 -14
- data/lib/isodoc/ogc/ogc.white-paper.xsl +26 -9
- data/lib/isodoc/ogc/xref.rb +19 -19
- data/lib/metanorma/ogc/basicdoc.rng +0 -27
- data/lib/metanorma/ogc/biblio-standoc.rng +164 -0
- data/lib/metanorma/ogc/biblio.rng +45 -18
- data/lib/metanorma/ogc/isodoc.rng +31 -194
- data/lib/metanorma/ogc/ogc.rng +1 -74
- data/lib/metanorma/ogc/relaton-ogc.rng +82 -0
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9064de05c3fbdef4e2ff7f883c35d94c9dc91ecb08ad51f8a0d92ce72fb25102
|
4
|
+
data.tar.gz: 375a9fc31158575e59a83e7a758f5071d5afeb88bb3512bd3147550ae042a844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3a71a45d2213b55843e0ce6efa6baef02ea3da4c36bc82bbbe97841ee0e7538ae6ac0592a0dd731e5f809ac1425bc27d82d78aaf39904819cd6a86af26f259e
|
7
|
+
data.tar.gz: 6a6c5f0d69937f240db9fd3894987a3a3ee4f17c9985da5918d137fe28c91059f1dc6b4d516b5d49817dd99f32f42a2dd51765d7152fa5aac20403abbcec1119
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
# source: https://github.com/marketplace/actions/merge-pull-requests#usage
|
4
|
+
name: automerge
|
5
|
+
on:
|
6
|
+
pull_request:
|
7
|
+
types:
|
8
|
+
- labeled
|
9
|
+
- unlabeled
|
10
|
+
- synchronize
|
11
|
+
- opened
|
12
|
+
- edited
|
13
|
+
- ready_for_review
|
14
|
+
- reopened
|
15
|
+
- unlocked
|
16
|
+
pull_request_review:
|
17
|
+
types:
|
18
|
+
- submitted
|
19
|
+
check_suite:
|
20
|
+
types:
|
21
|
+
- completed
|
22
|
+
status: {}
|
23
|
+
jobs:
|
24
|
+
automerge:
|
25
|
+
runs-on: ubuntu-latest
|
26
|
+
steps:
|
27
|
+
- id: automerge
|
28
|
+
name: automerge
|
29
|
+
uses: "pascalgn/automerge-action@v0.15.3"
|
30
|
+
env:
|
31
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -2083,6 +2083,8 @@
|
|
2083
2083
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2084
2084
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
2085
2085
|
|
2086
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
2087
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
2086
2088
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
2087
2089
|
|
2088
2090
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
@@ -3184,9 +3186,9 @@
|
|
3184
3186
|
|
3185
3187
|
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
3186
3188
|
|
3187
|
-
<xsl:if test="ancestor::*[local-name()='sections']">
|
3189
|
+
<!-- <xsl:if test="ancestor::*[local-name()='sections']"> -->
|
3188
3190
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3189
|
-
</xsl:if>
|
3191
|
+
<!-- </xsl:if> -->
|
3190
3192
|
|
3191
3193
|
<!-- end table block-container attributes -->
|
3192
3194
|
|
@@ -3960,9 +3962,12 @@
|
|
3960
3962
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3961
3963
|
|
3962
3964
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3963
|
-
<xsl:
|
3964
|
-
<xsl:
|
3965
|
-
|
3965
|
+
<xsl:attribute name="background-color">
|
3966
|
+
<xsl:choose>
|
3967
|
+
<xsl:when test="$number mod 2 = 0">rgb(252, 246, 222)</xsl:when>
|
3968
|
+
<xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
|
3969
|
+
</xsl:choose>
|
3970
|
+
</xsl:attribute>
|
3966
3971
|
|
3967
3972
|
<xsl:call-template name="setTableRowAttributes"/>
|
3968
3973
|
<xsl:apply-templates/>
|
@@ -3983,6 +3988,12 @@
|
|
3983
3988
|
<xsl:with-param name="default">center</xsl:with-param>
|
3984
3989
|
</xsl:call-template>
|
3985
3990
|
|
3991
|
+
<xsl:if test="starts-with(ancestor::*[local-name() = 'table'][1]/@type, 'recommend') and normalize-space(@align) = ''">
|
3992
|
+
<xsl:call-template name="setTextAlignment">
|
3993
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
3994
|
+
</xsl:call-template>
|
3995
|
+
</xsl:if>
|
3996
|
+
|
3986
3997
|
<xsl:if test="$lang = 'ar'">
|
3987
3998
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3988
3999
|
</xsl:if>
|
@@ -4994,8 +5005,10 @@
|
|
4994
5005
|
|
4995
5006
|
<!-- 10 -->
|
4996
5007
|
|
4997
|
-
|
4998
|
-
|
5008
|
+
<xsl:choose>
|
5009
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5010
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
5011
|
+
</xsl:choose>
|
4999
5012
|
|
5000
5013
|
</xsl:variable>
|
5001
5014
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -5013,8 +5026,17 @@
|
|
5013
5026
|
</fo:inline>
|
5014
5027
|
</xsl:template> <!-- tt -->
|
5015
5028
|
|
5029
|
+
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
5016
5030
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
5017
|
-
<xsl:
|
5031
|
+
<xsl:choose>
|
5032
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
|
5033
|
+
<!-- url -->
|
5034
|
+
<xsl:call-template name="add-zero-spaces-link-java"/>
|
5035
|
+
</xsl:when>
|
5036
|
+
<xsl:otherwise>
|
5037
|
+
<xsl:call-template name="add_spaces_to_sourcecode"/>
|
5038
|
+
</xsl:otherwise>
|
5039
|
+
</xsl:choose>
|
5018
5040
|
</xsl:template>
|
5019
5041
|
|
5020
5042
|
<xsl:template match="*[local-name()='underline']">
|
@@ -5370,8 +5392,11 @@
|
|
5370
5392
|
|
5371
5393
|
<xsl:template name="add-zero-spaces-link-java">
|
5372
5394
|
<xsl:param name="text" select="."/>
|
5395
|
+
|
5396
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
|
5397
|
+
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
5373
5398
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
|
5374
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
5399
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1')"/>
|
5375
5400
|
</xsl:template>
|
5376
5401
|
|
5377
5402
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7483,8 +7508,10 @@
|
|
7483
7508
|
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7484
7509
|
</xsl:if> -->
|
7485
7510
|
|
7486
|
-
|
7487
|
-
|
7511
|
+
<xsl:choose>
|
7512
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
7513
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
7514
|
+
</xsl:choose>
|
7488
7515
|
|
7489
7516
|
</xsl:variable>
|
7490
7517
|
|
@@ -8031,7 +8058,8 @@
|
|
8031
8058
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
8032
8059
|
<fo:block font-size="11pt">
|
8033
8060
|
|
8034
|
-
<xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute>
|
8061
|
+
<!-- <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute> -->
|
8062
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
8035
8063
|
|
8036
8064
|
<xsl:apply-templates/>
|
8037
8065
|
</fo:block>
|
@@ -8384,7 +8412,7 @@
|
|
8384
8412
|
<!-- ====== -->
|
8385
8413
|
<!-- eref -->
|
8386
8414
|
<!-- ====== -->
|
8387
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8415
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8388
8416
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8389
8417
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8390
8418
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -9837,7 +9865,7 @@
|
|
9837
9865
|
|
9838
9866
|
<xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
|
9839
9867
|
|
9840
|
-
<xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or
|
9868
|
+
<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 starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
9841
9869
|
|
9842
9870
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
9843
9871
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
@@ -2083,6 +2083,8 @@
|
|
2083
2083
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2084
2084
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
2085
2085
|
|
2086
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
2087
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
2086
2088
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
2087
2089
|
|
2088
2090
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
@@ -3184,9 +3186,9 @@
|
|
3184
3186
|
|
3185
3187
|
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
3186
3188
|
|
3187
|
-
<xsl:if test="ancestor::*[local-name()='sections']">
|
3189
|
+
<!-- <xsl:if test="ancestor::*[local-name()='sections']"> -->
|
3188
3190
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3189
|
-
</xsl:if>
|
3191
|
+
<!-- </xsl:if> -->
|
3190
3192
|
|
3191
3193
|
<!-- end table block-container attributes -->
|
3192
3194
|
|
@@ -3960,9 +3962,12 @@
|
|
3960
3962
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3961
3963
|
|
3962
3964
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3963
|
-
<xsl:
|
3964
|
-
<xsl:
|
3965
|
-
|
3965
|
+
<xsl:attribute name="background-color">
|
3966
|
+
<xsl:choose>
|
3967
|
+
<xsl:when test="$number mod 2 = 0">rgb(252, 246, 222)</xsl:when>
|
3968
|
+
<xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
|
3969
|
+
</xsl:choose>
|
3970
|
+
</xsl:attribute>
|
3966
3971
|
|
3967
3972
|
<xsl:call-template name="setTableRowAttributes"/>
|
3968
3973
|
<xsl:apply-templates/>
|
@@ -3983,6 +3988,12 @@
|
|
3983
3988
|
<xsl:with-param name="default">center</xsl:with-param>
|
3984
3989
|
</xsl:call-template>
|
3985
3990
|
|
3991
|
+
<xsl:if test="starts-with(ancestor::*[local-name() = 'table'][1]/@type, 'recommend') and normalize-space(@align) = ''">
|
3992
|
+
<xsl:call-template name="setTextAlignment">
|
3993
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
3994
|
+
</xsl:call-template>
|
3995
|
+
</xsl:if>
|
3996
|
+
|
3986
3997
|
<xsl:if test="$lang = 'ar'">
|
3987
3998
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3988
3999
|
</xsl:if>
|
@@ -4994,8 +5005,10 @@
|
|
4994
5005
|
|
4995
5006
|
<!-- 10 -->
|
4996
5007
|
|
4997
|
-
|
4998
|
-
|
5008
|
+
<xsl:choose>
|
5009
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5010
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
5011
|
+
</xsl:choose>
|
4999
5012
|
|
5000
5013
|
</xsl:variable>
|
5001
5014
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -5013,8 +5026,17 @@
|
|
5013
5026
|
</fo:inline>
|
5014
5027
|
</xsl:template> <!-- tt -->
|
5015
5028
|
|
5029
|
+
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
5016
5030
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
5017
|
-
<xsl:
|
5031
|
+
<xsl:choose>
|
5032
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
|
5033
|
+
<!-- url -->
|
5034
|
+
<xsl:call-template name="add-zero-spaces-link-java"/>
|
5035
|
+
</xsl:when>
|
5036
|
+
<xsl:otherwise>
|
5037
|
+
<xsl:call-template name="add_spaces_to_sourcecode"/>
|
5038
|
+
</xsl:otherwise>
|
5039
|
+
</xsl:choose>
|
5018
5040
|
</xsl:template>
|
5019
5041
|
|
5020
5042
|
<xsl:template match="*[local-name()='underline']">
|
@@ -5370,8 +5392,11 @@
|
|
5370
5392
|
|
5371
5393
|
<xsl:template name="add-zero-spaces-link-java">
|
5372
5394
|
<xsl:param name="text" select="."/>
|
5395
|
+
|
5396
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
|
5397
|
+
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
5373
5398
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
|
5374
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
5399
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1')"/>
|
5375
5400
|
</xsl:template>
|
5376
5401
|
|
5377
5402
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7483,8 +7508,10 @@
|
|
7483
7508
|
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7484
7509
|
</xsl:if> -->
|
7485
7510
|
|
7486
|
-
|
7487
|
-
|
7511
|
+
<xsl:choose>
|
7512
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
7513
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
7514
|
+
</xsl:choose>
|
7488
7515
|
|
7489
7516
|
</xsl:variable>
|
7490
7517
|
|
@@ -8031,7 +8058,8 @@
|
|
8031
8058
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
8032
8059
|
<fo:block font-size="11pt">
|
8033
8060
|
|
8034
|
-
<xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute>
|
8061
|
+
<!-- <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute> -->
|
8062
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
8035
8063
|
|
8036
8064
|
<xsl:apply-templates/>
|
8037
8065
|
</fo:block>
|
@@ -8384,7 +8412,7 @@
|
|
8384
8412
|
<!-- ====== -->
|
8385
8413
|
<!-- eref -->
|
8386
8414
|
<!-- ====== -->
|
8387
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8415
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8388
8416
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8389
8417
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8390
8418
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -9837,7 +9865,7 @@
|
|
9837
9865
|
|
9838
9866
|
<xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
|
9839
9867
|
|
9840
|
-
<xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or
|
9868
|
+
<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 starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
9841
9869
|
|
9842
9870
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
9843
9871
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
@@ -2083,6 +2083,8 @@
|
|
2083
2083
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2084
2084
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
2085
2085
|
|
2086
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
2087
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
2086
2088
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
2087
2089
|
|
2088
2090
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
@@ -3184,9 +3186,9 @@
|
|
3184
3186
|
|
3185
3187
|
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
3186
3188
|
|
3187
|
-
<xsl:if test="ancestor::*[local-name()='sections']">
|
3189
|
+
<!-- <xsl:if test="ancestor::*[local-name()='sections']"> -->
|
3188
3190
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3189
|
-
</xsl:if>
|
3191
|
+
<!-- </xsl:if> -->
|
3190
3192
|
|
3191
3193
|
<!-- end table block-container attributes -->
|
3192
3194
|
|
@@ -3960,9 +3962,12 @@
|
|
3960
3962
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3961
3963
|
|
3962
3964
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3963
|
-
<xsl:
|
3964
|
-
<xsl:
|
3965
|
-
|
3965
|
+
<xsl:attribute name="background-color">
|
3966
|
+
<xsl:choose>
|
3967
|
+
<xsl:when test="$number mod 2 = 0">rgb(252, 246, 222)</xsl:when>
|
3968
|
+
<xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
|
3969
|
+
</xsl:choose>
|
3970
|
+
</xsl:attribute>
|
3966
3971
|
|
3967
3972
|
<xsl:call-template name="setTableRowAttributes"/>
|
3968
3973
|
<xsl:apply-templates/>
|
@@ -3983,6 +3988,12 @@
|
|
3983
3988
|
<xsl:with-param name="default">center</xsl:with-param>
|
3984
3989
|
</xsl:call-template>
|
3985
3990
|
|
3991
|
+
<xsl:if test="starts-with(ancestor::*[local-name() = 'table'][1]/@type, 'recommend') and normalize-space(@align) = ''">
|
3992
|
+
<xsl:call-template name="setTextAlignment">
|
3993
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
3994
|
+
</xsl:call-template>
|
3995
|
+
</xsl:if>
|
3996
|
+
|
3986
3997
|
<xsl:if test="$lang = 'ar'">
|
3987
3998
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3988
3999
|
</xsl:if>
|
@@ -4994,8 +5005,10 @@
|
|
4994
5005
|
|
4995
5006
|
<!-- 10 -->
|
4996
5007
|
|
4997
|
-
|
4998
|
-
|
5008
|
+
<xsl:choose>
|
5009
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5010
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
5011
|
+
</xsl:choose>
|
4999
5012
|
|
5000
5013
|
</xsl:variable>
|
5001
5014
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -5013,8 +5026,17 @@
|
|
5013
5026
|
</fo:inline>
|
5014
5027
|
</xsl:template> <!-- tt -->
|
5015
5028
|
|
5029
|
+
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
5016
5030
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
5017
|
-
<xsl:
|
5031
|
+
<xsl:choose>
|
5032
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
|
5033
|
+
<!-- url -->
|
5034
|
+
<xsl:call-template name="add-zero-spaces-link-java"/>
|
5035
|
+
</xsl:when>
|
5036
|
+
<xsl:otherwise>
|
5037
|
+
<xsl:call-template name="add_spaces_to_sourcecode"/>
|
5038
|
+
</xsl:otherwise>
|
5039
|
+
</xsl:choose>
|
5018
5040
|
</xsl:template>
|
5019
5041
|
|
5020
5042
|
<xsl:template match="*[local-name()='underline']">
|
@@ -5370,8 +5392,11 @@
|
|
5370
5392
|
|
5371
5393
|
<xsl:template name="add-zero-spaces-link-java">
|
5372
5394
|
<xsl:param name="text" select="."/>
|
5395
|
+
|
5396
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
|
5397
|
+
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
5373
5398
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
|
5374
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
5399
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1')"/>
|
5375
5400
|
</xsl:template>
|
5376
5401
|
|
5377
5402
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7483,8 +7508,10 @@
|
|
7483
7508
|
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7484
7509
|
</xsl:if> -->
|
7485
7510
|
|
7486
|
-
|
7487
|
-
|
7511
|
+
<xsl:choose>
|
7512
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
7513
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
7514
|
+
</xsl:choose>
|
7488
7515
|
|
7489
7516
|
</xsl:variable>
|
7490
7517
|
|
@@ -8031,7 +8058,8 @@
|
|
8031
8058
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
8032
8059
|
<fo:block font-size="11pt">
|
8033
8060
|
|
8034
|
-
<xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute>
|
8061
|
+
<!-- <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute> -->
|
8062
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
8035
8063
|
|
8036
8064
|
<xsl:apply-templates/>
|
8037
8065
|
</fo:block>
|
@@ -8384,7 +8412,7 @@
|
|
8384
8412
|
<!-- ====== -->
|
8385
8413
|
<!-- eref -->
|
8386
8414
|
<!-- ====== -->
|
8387
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8415
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8388
8416
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8389
8417
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8390
8418
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -9837,7 +9865,7 @@
|
|
9837
9865
|
|
9838
9866
|
<xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
|
9839
9867
|
|
9840
|
-
<xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or
|
9868
|
+
<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 starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
9841
9869
|
|
9842
9870
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
9843
9871
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|
@@ -2083,6 +2083,8 @@
|
|
2083
2083
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2084
2084
|
<xsl:attribute name="display-align">center</xsl:attribute>
|
2085
2085
|
|
2086
|
+
<xsl:attribute name="padding-top">1mm</xsl:attribute>
|
2087
|
+
<xsl:attribute name="padding-bottom">1mm</xsl:attribute>
|
2086
2088
|
<xsl:attribute name="border">solid black 0pt</xsl:attribute>
|
2087
2089
|
|
2088
2090
|
</xsl:attribute-set> <!-- table-header-cell-style -->
|
@@ -3184,9 +3186,9 @@
|
|
3184
3186
|
|
3185
3187
|
<fo:block-container xsl:use-attribute-sets="table-container-style">
|
3186
3188
|
|
3187
|
-
<xsl:if test="ancestor::*[local-name()='sections']">
|
3189
|
+
<!-- <xsl:if test="ancestor::*[local-name()='sections']"> -->
|
3188
3190
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
3189
|
-
</xsl:if>
|
3191
|
+
<!-- </xsl:if> -->
|
3190
3192
|
|
3191
3193
|
<!-- end table block-container attributes -->
|
3192
3194
|
|
@@ -3960,9 +3962,12 @@
|
|
3960
3962
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3961
3963
|
|
3962
3964
|
<xsl:variable name="number"><xsl:number/></xsl:variable>
|
3963
|
-
<xsl:
|
3964
|
-
<xsl:
|
3965
|
-
|
3965
|
+
<xsl:attribute name="background-color">
|
3966
|
+
<xsl:choose>
|
3967
|
+
<xsl:when test="$number mod 2 = 0">rgb(252, 246, 222)</xsl:when>
|
3968
|
+
<xsl:otherwise>rgb(254, 252, 245)</xsl:otherwise>
|
3969
|
+
</xsl:choose>
|
3970
|
+
</xsl:attribute>
|
3966
3971
|
|
3967
3972
|
<xsl:call-template name="setTableRowAttributes"/>
|
3968
3973
|
<xsl:apply-templates/>
|
@@ -3983,6 +3988,12 @@
|
|
3983
3988
|
<xsl:with-param name="default">center</xsl:with-param>
|
3984
3989
|
</xsl:call-template>
|
3985
3990
|
|
3991
|
+
<xsl:if test="starts-with(ancestor::*[local-name() = 'table'][1]/@type, 'recommend') and normalize-space(@align) = ''">
|
3992
|
+
<xsl:call-template name="setTextAlignment">
|
3993
|
+
<xsl:with-param name="default">left</xsl:with-param>
|
3994
|
+
</xsl:call-template>
|
3995
|
+
</xsl:if>
|
3996
|
+
|
3986
3997
|
<xsl:if test="$lang = 'ar'">
|
3987
3998
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
3988
3999
|
</xsl:if>
|
@@ -4994,8 +5005,10 @@
|
|
4994
5005
|
|
4995
5006
|
<!-- 10 -->
|
4996
5007
|
|
4997
|
-
|
4998
|
-
|
5008
|
+
<xsl:choose>
|
5009
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
5010
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
5011
|
+
</xsl:choose>
|
4999
5012
|
|
5000
5013
|
</xsl:variable>
|
5001
5014
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -5013,8 +5026,17 @@
|
|
5013
5026
|
</fo:inline>
|
5014
5027
|
</xsl:template> <!-- tt -->
|
5015
5028
|
|
5029
|
+
<xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
|
5016
5030
|
<xsl:template match="*[local-name()='tt']/text()" priority="2">
|
5017
|
-
<xsl:
|
5031
|
+
<xsl:choose>
|
5032
|
+
<xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
|
5033
|
+
<!-- url -->
|
5034
|
+
<xsl:call-template name="add-zero-spaces-link-java"/>
|
5035
|
+
</xsl:when>
|
5036
|
+
<xsl:otherwise>
|
5037
|
+
<xsl:call-template name="add_spaces_to_sourcecode"/>
|
5038
|
+
</xsl:otherwise>
|
5039
|
+
</xsl:choose>
|
5018
5040
|
</xsl:template>
|
5019
5041
|
|
5020
5042
|
<xsl:template match="*[local-name()='underline']">
|
@@ -5370,8 +5392,11 @@
|
|
5370
5392
|
|
5371
5393
|
<xsl:template name="add-zero-spaces-link-java">
|
5372
5394
|
<xsl:param name="text" select="."/>
|
5395
|
+
|
5396
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
|
5397
|
+
<xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
|
5373
5398
|
<!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
|
5374
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($
|
5399
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1')"/>
|
5375
5400
|
</xsl:template>
|
5376
5401
|
|
5377
5402
|
<!-- add zero space after dash character (for table's entries) -->
|
@@ -7483,8 +7508,10 @@
|
|
7483
7508
|
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
7484
7509
|
</xsl:if> -->
|
7485
7510
|
|
7486
|
-
|
7487
|
-
|
7511
|
+
<xsl:choose>
|
7512
|
+
<xsl:when test="ancestor::*[local-name() = 'table']">8.5</xsl:when>
|
7513
|
+
<xsl:otherwise>9.5</xsl:otherwise>
|
7514
|
+
</xsl:choose>
|
7488
7515
|
|
7489
7516
|
</xsl:variable>
|
7490
7517
|
|
@@ -8031,7 +8058,8 @@
|
|
8031
8058
|
<xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
8032
8059
|
<fo:block font-size="11pt">
|
8033
8060
|
|
8034
|
-
<xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute>
|
8061
|
+
<!-- <xsl:attribute name="color"><xsl:value-of select="$color_design"/></xsl:attribute> -->
|
8062
|
+
<xsl:attribute name="color">white</xsl:attribute>
|
8035
8063
|
|
8036
8064
|
<xsl:apply-templates/>
|
8037
8065
|
</fo:block>
|
@@ -8384,7 +8412,7 @@
|
|
8384
8412
|
<!-- ====== -->
|
8385
8413
|
<!-- eref -->
|
8386
8414
|
<!-- ====== -->
|
8387
|
-
<xsl:template match="*[local-name() = 'eref']">
|
8415
|
+
<xsl:template match="*[local-name() = 'eref']" name="eref">
|
8388
8416
|
<xsl:variable name="current_bibitemid" select="@bibitemid"/>
|
8389
8417
|
<!-- <xsl:variable name="external-destination" select="normalize-space(key('bibitems', $current_bibitemid)/*[local-name() = 'uri'][@type = 'citation'])"/> -->
|
8390
8418
|
<xsl:variable name="external-destination" select="normalize-space($bibitems/*[local-name() ='bibitem'][@id = $current_bibitemid]/*[local-name() = 'uri'][@type = 'citation'])"/>
|
@@ -9837,7 +9865,7 @@
|
|
9837
9865
|
|
9838
9866
|
<xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
|
9839
9867
|
|
9840
|
-
<xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or
|
9868
|
+
<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 starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
9841
9869
|
|
9842
9870
|
<!-- enclose standard's number into tag 'keep-together_within-line' -->
|
9843
9871
|
<xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
|