metanorma-ogc 1.3.8 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/ogc/ogc.rng +13 -13
- data/lib/asciidoctor/ogc/reqt.rng +15 -4
- data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +52 -30
- data/lib/isodoc/ogc/ogc.best-practice.xsl +52 -30
- data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +52 -30
- data/lib/isodoc/ogc/ogc.community-practice.xsl +52 -30
- data/lib/isodoc/ogc/ogc.community-standard.xsl +52 -30
- data/lib/isodoc/ogc/ogc.discussion-paper.xsl +52 -30
- data/lib/isodoc/ogc/ogc.engineering-report.xsl +52 -30
- data/lib/isodoc/ogc/ogc.other.xsl +52 -30
- data/lib/isodoc/ogc/ogc.policy.xsl +52 -30
- data/lib/isodoc/ogc/ogc.reference-model.xsl +52 -30
- data/lib/isodoc/ogc/ogc.release-notes.xsl +52 -30
- data/lib/isodoc/ogc/ogc.standard.xsl +52 -30
- data/lib/isodoc/ogc/ogc.test-suite.xsl +52 -30
- data/lib/isodoc/ogc/ogc.user-guide.xsl +52 -30
- data/lib/isodoc/ogc/ogc.white-paper.xsl +54 -32
- data/lib/isodoc/ogc/reqt.rb +46 -9
- data/lib/isodoc/ogc/xref.rb +58 -41
- data/lib/metanorma/ogc/processor.rb +2 -1
- data/lib/metanorma/ogc/version.rb +1 -1
- metadata +2 -2
@@ -1774,6 +1774,7 @@
|
|
1774
1774
|
|
1775
1775
|
|
1776
1776
|
|
1777
|
+
|
1777
1778
|
|
1778
1779
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1779
1780
|
|
@@ -2263,6 +2264,8 @@
|
|
2263
2264
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2264
2265
|
</xsl:if>
|
2265
2266
|
|
2267
|
+
|
2268
|
+
|
2266
2269
|
<xsl:choose>
|
2267
2270
|
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
2268
2271
|
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
@@ -2547,9 +2550,9 @@
|
|
2547
2550
|
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
2548
2551
|
<xsl:with-param name="continued">true</xsl:with-param>
|
2549
2552
|
</xsl:apply-templates>
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
+
|
2554
|
+
|
2555
|
+
|
2553
2556
|
|
2554
2557
|
</fo:table-cell>
|
2555
2558
|
</fo:table-row>
|
@@ -2633,7 +2636,11 @@
|
|
2633
2636
|
|
2634
2637
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
2635
2638
|
|
2636
|
-
<xsl:
|
2639
|
+
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
2640
|
+
|
2641
|
+
</xsl:variable>
|
2642
|
+
|
2643
|
+
<xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
|
2637
2644
|
|
2638
2645
|
<xsl:variable name="cols-count">
|
2639
2646
|
<xsl:choose>
|
@@ -2776,6 +2783,19 @@
|
|
2776
2783
|
|
2777
2784
|
</fo:table-body>
|
2778
2785
|
|
2786
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
|
2787
|
+
<xsl:choose>
|
2788
|
+
<xsl:when test="substring-after(., '—') != ''">
|
2789
|
+
<xsl:text>—</xsl:text><xsl:value-of select="substring-after(., '—')"/>
|
2790
|
+
</xsl:when>
|
2791
|
+
<xsl:otherwise>
|
2792
|
+
<xsl:value-of select="."/>
|
2793
|
+
</xsl:otherwise>
|
2794
|
+
</xsl:choose>
|
2795
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="presentation_name">
|
2796
|
+
<xsl:apply-templates mode="presentation_name"/>
|
2797
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/node()" mode="presentation_name">
|
2798
|
+
<xsl:apply-templates select="."/>
|
2779
2799
|
</xsl:template><xsl:template match="*[local-name()='tr']">
|
2780
2800
|
<xsl:variable name="parent-name" select="local-name(..)"/>
|
2781
2801
|
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
@@ -2964,20 +2984,12 @@
|
|
2964
2984
|
<xsl:apply-templates/>
|
2965
2985
|
</xsl:template><xsl:template name="fn_display">
|
2966
2986
|
<xsl:variable name="references">
|
2987
|
+
|
2967
2988
|
<xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
|
2968
|
-
<
|
2969
|
-
|
2970
|
-
|
2971
|
-
<xsl:attribute name="id">
|
2972
|
-
<xsl:value-of select="@reference"/>
|
2973
|
-
<xsl:text>_</xsl:text>
|
2974
|
-
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
2975
|
-
</xsl:attribute>
|
2976
|
-
|
2977
|
-
<xsl:apply-templates/>
|
2978
|
-
</fn>
|
2989
|
+
<xsl:call-template name="create_fn"/>
|
2979
2990
|
</xsl:for-each>
|
2980
2991
|
</xsl:variable>
|
2992
|
+
|
2981
2993
|
<xsl:for-each select="xalan:nodeset($references)//fn">
|
2982
2994
|
<xsl:variable name="reference" select="@reference"/>
|
2983
2995
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
@@ -3013,6 +3025,18 @@
|
|
3013
3025
|
</fo:block>
|
3014
3026
|
</xsl:if>
|
3015
3027
|
</xsl:for-each>
|
3028
|
+
</xsl:template><xsl:template name="create_fn">
|
3029
|
+
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
3030
|
+
|
3031
|
+
|
3032
|
+
<xsl:attribute name="id">
|
3033
|
+
<xsl:value-of select="@reference"/>
|
3034
|
+
<xsl:text>_</xsl:text>
|
3035
|
+
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
3036
|
+
</xsl:attribute>
|
3037
|
+
|
3038
|
+
<xsl:apply-templates/>
|
3039
|
+
</fn>
|
3016
3040
|
</xsl:template><xsl:template name="fn_name_display">
|
3017
3041
|
<!-- <xsl:variable name="references">
|
3018
3042
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
@@ -4023,19 +4047,6 @@
|
|
4023
4047
|
<!-- replace start and end spaces to non-break space -->
|
4024
4048
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
|
4025
4049
|
</xsl:copy>
|
4026
|
-
</xsl:template><xsl:template match="mathml:mi[. = ',' and not(following-sibling::*[1][local-name() = 'mtext' and text() = ' '])]" mode="mathml">
|
4027
|
-
<xsl:copy>
|
4028
|
-
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
4029
|
-
</xsl:copy>
|
4030
|
-
<xsl:choose>
|
4031
|
-
<!-- if in msub, then don't add space -->
|
4032
|
-
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
4033
|
-
<!-- if next char in digit, don't add space -->
|
4034
|
-
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
4035
|
-
<xsl:otherwise>
|
4036
|
-
<mathml:mspace width="0.5ex"/>
|
4037
|
-
</xsl:otherwise>
|
4038
|
-
</xsl:choose>
|
4039
4050
|
</xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
4040
4051
|
<xsl:variable name="target">
|
4041
4052
|
<xsl:choose>
|
@@ -5274,7 +5285,19 @@
|
|
5274
5285
|
</fo:inline>
|
5275
5286
|
</xsl:if>
|
5276
5287
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
5277
|
-
<
|
5288
|
+
<xsl:variable name="element">inline
|
5289
|
+
|
5290
|
+
</xsl:variable>
|
5291
|
+
<xsl:choose>
|
5292
|
+
<xsl:when test="contains($element, 'block')">
|
5293
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
5294
|
+
<xsl:apply-templates/>
|
5295
|
+
</fo:block>
|
5296
|
+
</xsl:when>
|
5297
|
+
<xsl:otherwise>
|
5298
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
5299
|
+
</xsl:otherwise>
|
5300
|
+
</xsl:choose>
|
5278
5301
|
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
5279
5302
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
5280
5303
|
|
@@ -5857,7 +5880,6 @@
|
|
5857
5880
|
</xsl:template><xsl:template name="processBibitem">
|
5858
5881
|
|
5859
5882
|
|
5860
|
-
<!-- end BIPM bibitem processing-->
|
5861
5883
|
|
5862
5884
|
|
5863
5885
|
<!-- start OGC bibtem processing -->
|
@@ -1774,6 +1774,7 @@
|
|
1774
1774
|
|
1775
1775
|
|
1776
1776
|
|
1777
|
+
|
1777
1778
|
|
1778
1779
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1779
1780
|
|
@@ -2263,6 +2264,8 @@
|
|
2263
2264
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2264
2265
|
</xsl:if>
|
2265
2266
|
|
2267
|
+
|
2268
|
+
|
2266
2269
|
<xsl:choose>
|
2267
2270
|
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
2268
2271
|
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
@@ -2547,9 +2550,9 @@
|
|
2547
2550
|
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
2548
2551
|
<xsl:with-param name="continued">true</xsl:with-param>
|
2549
2552
|
</xsl:apply-templates>
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
+
|
2554
|
+
|
2555
|
+
|
2553
2556
|
|
2554
2557
|
</fo:table-cell>
|
2555
2558
|
</fo:table-row>
|
@@ -2633,7 +2636,11 @@
|
|
2633
2636
|
|
2634
2637
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
2635
2638
|
|
2636
|
-
<xsl:
|
2639
|
+
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
2640
|
+
|
2641
|
+
</xsl:variable>
|
2642
|
+
|
2643
|
+
<xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
|
2637
2644
|
|
2638
2645
|
<xsl:variable name="cols-count">
|
2639
2646
|
<xsl:choose>
|
@@ -2776,6 +2783,19 @@
|
|
2776
2783
|
|
2777
2784
|
</fo:table-body>
|
2778
2785
|
|
2786
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
|
2787
|
+
<xsl:choose>
|
2788
|
+
<xsl:when test="substring-after(., '—') != ''">
|
2789
|
+
<xsl:text>—</xsl:text><xsl:value-of select="substring-after(., '—')"/>
|
2790
|
+
</xsl:when>
|
2791
|
+
<xsl:otherwise>
|
2792
|
+
<xsl:value-of select="."/>
|
2793
|
+
</xsl:otherwise>
|
2794
|
+
</xsl:choose>
|
2795
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="presentation_name">
|
2796
|
+
<xsl:apply-templates mode="presentation_name"/>
|
2797
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/node()" mode="presentation_name">
|
2798
|
+
<xsl:apply-templates select="."/>
|
2779
2799
|
</xsl:template><xsl:template match="*[local-name()='tr']">
|
2780
2800
|
<xsl:variable name="parent-name" select="local-name(..)"/>
|
2781
2801
|
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
@@ -2964,20 +2984,12 @@
|
|
2964
2984
|
<xsl:apply-templates/>
|
2965
2985
|
</xsl:template><xsl:template name="fn_display">
|
2966
2986
|
<xsl:variable name="references">
|
2987
|
+
|
2967
2988
|
<xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
|
2968
|
-
<
|
2969
|
-
|
2970
|
-
|
2971
|
-
<xsl:attribute name="id">
|
2972
|
-
<xsl:value-of select="@reference"/>
|
2973
|
-
<xsl:text>_</xsl:text>
|
2974
|
-
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
2975
|
-
</xsl:attribute>
|
2976
|
-
|
2977
|
-
<xsl:apply-templates/>
|
2978
|
-
</fn>
|
2989
|
+
<xsl:call-template name="create_fn"/>
|
2979
2990
|
</xsl:for-each>
|
2980
2991
|
</xsl:variable>
|
2992
|
+
|
2981
2993
|
<xsl:for-each select="xalan:nodeset($references)//fn">
|
2982
2994
|
<xsl:variable name="reference" select="@reference"/>
|
2983
2995
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
@@ -3013,6 +3025,18 @@
|
|
3013
3025
|
</fo:block>
|
3014
3026
|
</xsl:if>
|
3015
3027
|
</xsl:for-each>
|
3028
|
+
</xsl:template><xsl:template name="create_fn">
|
3029
|
+
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
3030
|
+
|
3031
|
+
|
3032
|
+
<xsl:attribute name="id">
|
3033
|
+
<xsl:value-of select="@reference"/>
|
3034
|
+
<xsl:text>_</xsl:text>
|
3035
|
+
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
3036
|
+
</xsl:attribute>
|
3037
|
+
|
3038
|
+
<xsl:apply-templates/>
|
3039
|
+
</fn>
|
3016
3040
|
</xsl:template><xsl:template name="fn_name_display">
|
3017
3041
|
<!-- <xsl:variable name="references">
|
3018
3042
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
@@ -4023,19 +4047,6 @@
|
|
4023
4047
|
<!-- replace start and end spaces to non-break space -->
|
4024
4048
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
|
4025
4049
|
</xsl:copy>
|
4026
|
-
</xsl:template><xsl:template match="mathml:mi[. = ',' and not(following-sibling::*[1][local-name() = 'mtext' and text() = ' '])]" mode="mathml">
|
4027
|
-
<xsl:copy>
|
4028
|
-
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
4029
|
-
</xsl:copy>
|
4030
|
-
<xsl:choose>
|
4031
|
-
<!-- if in msub, then don't add space -->
|
4032
|
-
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
4033
|
-
<!-- if next char in digit, don't add space -->
|
4034
|
-
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
4035
|
-
<xsl:otherwise>
|
4036
|
-
<mathml:mspace width="0.5ex"/>
|
4037
|
-
</xsl:otherwise>
|
4038
|
-
</xsl:choose>
|
4039
4050
|
</xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
4040
4051
|
<xsl:variable name="target">
|
4041
4052
|
<xsl:choose>
|
@@ -5274,7 +5285,19 @@
|
|
5274
5285
|
</fo:inline>
|
5275
5286
|
</xsl:if>
|
5276
5287
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
5277
|
-
<
|
5288
|
+
<xsl:variable name="element">inline
|
5289
|
+
|
5290
|
+
</xsl:variable>
|
5291
|
+
<xsl:choose>
|
5292
|
+
<xsl:when test="contains($element, 'block')">
|
5293
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
5294
|
+
<xsl:apply-templates/>
|
5295
|
+
</fo:block>
|
5296
|
+
</xsl:when>
|
5297
|
+
<xsl:otherwise>
|
5298
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
5299
|
+
</xsl:otherwise>
|
5300
|
+
</xsl:choose>
|
5278
5301
|
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
5279
5302
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
5280
5303
|
|
@@ -5857,7 +5880,6 @@
|
|
5857
5880
|
</xsl:template><xsl:template name="processBibitem">
|
5858
5881
|
|
5859
5882
|
|
5860
|
-
<!-- end BIPM bibitem processing-->
|
5861
5883
|
|
5862
5884
|
|
5863
5885
|
<!-- start OGC bibtem processing -->
|
@@ -1080,7 +1080,7 @@
|
|
1080
1080
|
|
1081
1081
|
|
1082
1082
|
|
1083
|
-
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
1083
|
+
<xsl:attribute name="font-family">Courier New</xsl:attribute>
|
1084
1084
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1085
1085
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1086
1086
|
<xsl:attribute name="line-height">113%</xsl:attribute>
|
@@ -1212,6 +1212,7 @@
|
|
1212
1212
|
|
1213
1213
|
|
1214
1214
|
|
1215
|
+
|
1215
1216
|
|
1216
1217
|
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1217
1218
|
|
@@ -1463,7 +1464,7 @@
|
|
1463
1464
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1464
1465
|
|
1465
1466
|
|
1466
|
-
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
1467
|
+
<xsl:attribute name="font-family">Courier New</xsl:attribute>
|
1467
1468
|
|
1468
1469
|
|
1469
1470
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
@@ -1708,6 +1709,8 @@
|
|
1708
1709
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
1709
1710
|
</xsl:if>
|
1710
1711
|
|
1712
|
+
|
1713
|
+
|
1711
1714
|
<xsl:choose>
|
1712
1715
|
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
1713
1716
|
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
@@ -1994,9 +1997,9 @@
|
|
1994
1997
|
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
1995
1998
|
<xsl:with-param name="continued">true</xsl:with-param>
|
1996
1999
|
</xsl:apply-templates>
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
+
|
2001
|
+
|
2002
|
+
|
2000
2003
|
|
2001
2004
|
</fo:table-cell>
|
2002
2005
|
</fo:table-row>
|
@@ -2078,7 +2081,11 @@
|
|
2078
2081
|
|
2079
2082
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
2080
2083
|
|
2081
|
-
<xsl:
|
2084
|
+
<xsl:variable name="isNoteOrFnExistShowAfterTable">
|
2085
|
+
|
2086
|
+
</xsl:variable>
|
2087
|
+
|
2088
|
+
<xsl:if test="$isNoteOrFnExist = 'true' or normalize-space($isNoteOrFnExistShowAfterTable) = 'true'">
|
2082
2089
|
|
2083
2090
|
<xsl:variable name="cols-count">
|
2084
2091
|
<xsl:choose>
|
@@ -2219,6 +2226,19 @@
|
|
2219
2226
|
|
2220
2227
|
</fo:table-body>
|
2221
2228
|
|
2229
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/text()[1]" priority="2" mode="presentation_name">
|
2230
|
+
<xsl:choose>
|
2231
|
+
<xsl:when test="substring-after(., '—') != ''">
|
2232
|
+
<xsl:text>—</xsl:text><xsl:value-of select="substring-after(., '—')"/>
|
2233
|
+
</xsl:when>
|
2234
|
+
<xsl:otherwise>
|
2235
|
+
<xsl:value-of select="."/>
|
2236
|
+
</xsl:otherwise>
|
2237
|
+
</xsl:choose>
|
2238
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="presentation_name">
|
2239
|
+
<xsl:apply-templates mode="presentation_name"/>
|
2240
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']/node()" mode="presentation_name">
|
2241
|
+
<xsl:apply-templates select="."/>
|
2222
2242
|
</xsl:template><xsl:template match="*[local-name()='tr']">
|
2223
2243
|
<xsl:variable name="parent-name" select="local-name(..)"/>
|
2224
2244
|
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
@@ -2401,20 +2421,12 @@
|
|
2401
2421
|
<xsl:apply-templates/>
|
2402
2422
|
</xsl:template><xsl:template name="fn_display">
|
2403
2423
|
<xsl:variable name="references">
|
2424
|
+
|
2404
2425
|
<xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
|
2405
|
-
<
|
2406
|
-
|
2407
|
-
|
2408
|
-
<xsl:attribute name="id">
|
2409
|
-
<xsl:value-of select="@reference"/>
|
2410
|
-
<xsl:text>_</xsl:text>
|
2411
|
-
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
2412
|
-
</xsl:attribute>
|
2413
|
-
|
2414
|
-
<xsl:apply-templates/>
|
2415
|
-
</fn>
|
2426
|
+
<xsl:call-template name="create_fn"/>
|
2416
2427
|
</xsl:for-each>
|
2417
2428
|
</xsl:variable>
|
2429
|
+
|
2418
2430
|
<xsl:for-each select="xalan:nodeset($references)//fn">
|
2419
2431
|
<xsl:variable name="reference" select="@reference"/>
|
2420
2432
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
@@ -2450,6 +2462,18 @@
|
|
2450
2462
|
</fo:block>
|
2451
2463
|
</xsl:if>
|
2452
2464
|
</xsl:for-each>
|
2465
|
+
</xsl:template><xsl:template name="create_fn">
|
2466
|
+
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
2467
|
+
|
2468
|
+
|
2469
|
+
<xsl:attribute name="id">
|
2470
|
+
<xsl:value-of select="@reference"/>
|
2471
|
+
<xsl:text>_</xsl:text>
|
2472
|
+
<xsl:value-of select="ancestor::*[local-name()='table'][1]/@id"/>
|
2473
|
+
</xsl:attribute>
|
2474
|
+
|
2475
|
+
<xsl:apply-templates/>
|
2476
|
+
</fn>
|
2453
2477
|
</xsl:template><xsl:template name="fn_name_display">
|
2454
2478
|
<!-- <xsl:variable name="references">
|
2455
2479
|
<xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
|
@@ -3461,19 +3485,6 @@
|
|
3461
3485
|
<!-- replace start and end spaces to non-break space -->
|
3462
3486
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),'(^ )|( $)',' ')"/>
|
3463
3487
|
</xsl:copy>
|
3464
|
-
</xsl:template><xsl:template match="mathml:mi[. = ',' and not(following-sibling::*[1][local-name() = 'mtext' and text() = ' '])]" mode="mathml">
|
3465
|
-
<xsl:copy>
|
3466
|
-
<xsl:apply-templates select="@*|node()" mode="mathml"/>
|
3467
|
-
</xsl:copy>
|
3468
|
-
<xsl:choose>
|
3469
|
-
<!-- if in msub, then don't add space -->
|
3470
|
-
<xsl:when test="ancestor::mathml:mrow[parent::mathml:msub and preceding-sibling::*[1][self::mathml:mrow]]"/>
|
3471
|
-
<!-- if next char in digit, don't add space -->
|
3472
|
-
<xsl:when test="translate(substring(following-sibling::*[1]/text(),1,1),'0123456789','') = ''"/>
|
3473
|
-
<xsl:otherwise>
|
3474
|
-
<mathml:mspace width="0.5ex"/>
|
3475
|
-
</xsl:otherwise>
|
3476
|
-
</xsl:choose>
|
3477
3488
|
</xsl:template><xsl:template match="mathml:math/*[local-name()='unit']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='prefix']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='dimension']" mode="mathml"/><xsl:template match="mathml:math/*[local-name()='quantity']" mode="mathml"/><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
3478
3489
|
<xsl:variable name="target">
|
3479
3490
|
<xsl:choose>
|
@@ -4678,7 +4689,19 @@
|
|
4678
4689
|
</fo:inline>
|
4679
4690
|
</xsl:if>
|
4680
4691
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
4681
|
-
<
|
4692
|
+
<xsl:variable name="element">inline
|
4693
|
+
|
4694
|
+
</xsl:variable>
|
4695
|
+
<xsl:choose>
|
4696
|
+
<xsl:when test="contains($element, 'block')">
|
4697
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
4698
|
+
<xsl:apply-templates/>
|
4699
|
+
</fo:block>
|
4700
|
+
</xsl:when>
|
4701
|
+
<xsl:otherwise>
|
4702
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
4703
|
+
</xsl:otherwise>
|
4704
|
+
</xsl:choose>
|
4682
4705
|
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
4683
4706
|
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
4684
4707
|
|
@@ -5268,7 +5291,6 @@
|
|
5268
5291
|
</xsl:template><xsl:template name="processBibitem">
|
5269
5292
|
|
5270
5293
|
|
5271
|
-
<!-- end BIPM bibitem processing-->
|
5272
5294
|
|
5273
5295
|
|
5274
5296
|
<!-- start OGC bibtem processing -->
|