metanorma-itu 2.1.10 → 2.1.12

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: ff80a10c49839631d4c76846f353bf8e180ce0ec482a126f63474ecbe091b3ad
4
- data.tar.gz: e4d8301448368fbd4c9f01a512c8fd7372c88d2adfd34cec55a5e9f33d75c50d
3
+ metadata.gz: b5393dc3cee8090f06aa62a1232cea3cf22d13f0e036ee0ec62a84d333bd2a67
4
+ data.tar.gz: 0a63a589bf8155bef1b4912218b3eb0ba8db32373db44002ea182554dee23efb
5
5
  SHA512:
6
- metadata.gz: cca3ddc45419d73b876c58cc13f1a3fd3328642bb815308125ceb58a5add436483645160f0975e4385567b7f294e59a2b78e306b5bff7be530092d933d05156d
7
- data.tar.gz: bd00bfced817a40dce7e195d36638c15255bd8f76d5429ac5c105bb00852dbba0320d3b72326990be6f9b74cf91add3356069fc3fcf4e35dbffe24ac7ab00edb
6
+ metadata.gz: d62a67ecfb1d2de974adb8018f3400d4dd54973f208cb9de7d78d06bcb374f16078973bc39281cb5a0362f6eceb1f0cd24bcd92831eaf140d33131c6739475e3
7
+ data.tar.gz: a3ea90814d66b1b2e9df11caa2064cfbad13e7ab705d1fd685c81354f4b18b1b9f292a95b3db8dc190f85cdc31b30035cb0a530fb075df2d927db3e9db0fb4e9
@@ -811,7 +811,7 @@ nav #toc {
811
811
  font-weight: 700;
812
812
  font-size: 1em;
813
813
  text-align: center; }
814
- .figure > img {
814
+ .figure > img, .figure > svg {
815
815
  margin-left: auto;
816
816
  margin-right: auto;
817
817
  display: block;
@@ -219,7 +219,7 @@
219
219
  <fo:page-sequence master-reference="TR-first-page">
220
220
  <fo:flow flow-name="xsl-region-body">
221
221
  <fo:block>
222
- <fo:table width="175mm" table-layout="fixed" border-top="1.5pt solid black">
222
+ <fo:table width="175mm" table-layout="fixed" border-top="1.5pt solid black" id="__internal_layout__meeting_{generate-id()}">
223
223
  <fo:table-column column-width="29mm"/>
224
224
  <fo:table-column column-width="45mm"/>
225
225
  <fo:table-column column-width="28mm"/>
@@ -252,7 +252,7 @@
252
252
  </fo:table-body>
253
253
  </fo:table>
254
254
 
255
- <fo:table width="175mm" table-layout="fixed">
255
+ <fo:table width="175mm" table-layout="fixed" id="__internal_layout__groups_{generate-id()}">
256
256
  <fo:table-column column-width="29mm"/>
257
257
  <fo:table-column column-width="10mm"/>
258
258
  <fo:table-column column-width="35mm"/>
@@ -300,7 +300,7 @@
300
300
  </fo:table>
301
301
 
302
302
  <xsl:if test="/itu:itu-standard/itu:bibdata/itu:contributor/itu:person">
303
- <fo:table width="175mm" table-layout="fixed" line-height="110%">
303
+ <fo:table width="175mm" table-layout="fixed" line-height="110%" id="__internal_layout__person_{generate-id()}">
304
304
  <fo:table-column column-width="29mm"/>
305
305
  <fo:table-column column-width="75mm"/>
306
306
  <fo:table-column column-width="71mm"/>
@@ -395,10 +395,18 @@
395
395
  </xsl:variable>
396
396
  <xsl:value-of select="java:toUpperCase(java:java.lang.String.new($tsb_full))"/>
397
397
  </fo:block>
398
- <fo:block-container height="20mm" display-align="center">
398
+ <fo:block-container height="20mm" display-align="center" width="90%">
399
399
  <fo:block font-weight="bold">
400
400
  <!-- complements -->
401
401
  <!-- To do: Example: COMPLEMENT TO ITU-T RECOMMENDATIONS F.69 (06/1994) AND F.68 (11/1988) -->
402
+ <fo:inline>COMPLEMENT TO ITU-T RECOMMENDATIONS </fo:inline>
403
+ <xsl:for-each select="/*/itu:bibdata/itu:relation[@type = 'complements']">
404
+ <xsl:value-of select="translate(itu:bibitem/itu:docidentifier, ' ', ' ')"/>
405
+ <xsl:choose>
406
+ <xsl:when test="count(following-sibling::itu:relation[@type = 'complements']) = 1"> AND </xsl:when>
407
+ <xsl:when test="following-sibling::itu:relation[@type = 'complements']">, </xsl:when>
408
+ </xsl:choose>
409
+ </xsl:for-each>
402
410
  </fo:block>
403
411
  </fo:block-container>
404
412
  <fo:block-container>
@@ -530,7 +538,7 @@
530
538
  </fo:block-container>
531
539
  <fo:block-container font-family="Arial">
532
540
  <xsl:variable name="annexid" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:ext/itu:structuredidentifier/itu:annexid)"/>
533
- <fo:table width="100%" table-layout="fixed"> <!-- 175.4mm-->
541
+ <fo:table width="100%" table-layout="fixed" id="__internal_layout__coverpage_{generate-id()}"> <!-- 175.4mm-->
534
542
  <fo:table-column column-width="25.2mm"/>
535
543
  <fo:table-column column-width="44.4mm"/>
536
544
  <fo:table-column column-width="35.8mm"/>
@@ -678,7 +686,7 @@
678
686
  <fo:table-cell>
679
687
  <fo:block> </fo:block>
680
688
  </fo:table-cell>
681
- <fo:table-cell font-size="16pt" number-columns-spanned="3" border-bottom="0.5mm solid black" padding-right="2mm" display-align="after">
689
+ <fo:table-cell font-size="16pt" number-columns-spanned="3" border-bottom="0.5mm solid black" display-align="after">
682
690
  <fo:block-container>
683
691
  <xsl:call-template name="setWritingMode"/>
684
692
  <fo:block padding-bottom="7mm">
@@ -722,8 +730,18 @@
722
730
  </xsl:if>
723
731
  </fo:block>
724
732
  </xsl:if>
733
+ <xsl:if test="$doctype = 'focus-group'">
734
+ <xsl:attribute name="padding-bottom">0mm</xsl:attribute>
735
+ <xsl:attribute name="border-bottom">1pt solid black</xsl:attribute>
736
+ </xsl:if>
725
737
  <fo:block text-transform="uppercase">
726
- <xsl:variable name="series_title" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'full'])"/>
738
+ <xsl:variable name="series_title_full" select="normalize-space(/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type = 'full'])"/>
739
+ <xsl:variable name="series_title">
740
+ <xsl:value-of select="$series_title_full"/>
741
+ <xsl:if test="$series_title_full = ''">
742
+ <xsl:value-of select="normalize-space(/itu:itu-standard/itu:bibdata/itu:series[@type = 'main']/itu:title[@type != 'full' and @type != 'abbrev'])"/>
743
+ </xsl:if>
744
+ </xsl:variable>
727
745
  <xsl:if test="$series_title != ''">
728
746
  <xsl:variable name="title">
729
747
  <xsl:if test="$doctype != 'resolution'">
@@ -1296,6 +1314,7 @@
1296
1314
  </fo:block>
1297
1315
  <xsl:apply-templates/>
1298
1316
  </xsl:template>
1317
+ <xsl:template match="itu:itu-standard/itu:preface/itu:abstract[@id = '_summary']/itu:title" priority="4"/>
1299
1318
 
1300
1319
  <xsl:template match="itu:preface/itu:clause" priority="3">
1301
1320
  <xsl:if test="$doctype != 'service-publication'">
@@ -2448,6 +2467,14 @@
2448
2467
 
2449
2468
  </xsl:attribute-set>
2450
2469
 
2470
+ <xsl:attribute-set name="pre-style">
2471
+ <xsl:attribute name="font-family">Courier New, <xsl:value-of select="$font_noto_sans_mono"/></xsl:attribute>
2472
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
2473
+
2474
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
2475
+
2476
+ </xsl:attribute-set>
2477
+
2451
2478
  <xsl:attribute-set name="permission-style">
2452
2479
 
2453
2480
  </xsl:attribute-set>
@@ -2551,6 +2578,11 @@
2551
2578
  </xsl:variable>
2552
2579
  <xsl:variable name="table-border" select="normalize-space($table-border_)"/>
2553
2580
 
2581
+ <xsl:variable name="table-cell-border_">
2582
+
2583
+ </xsl:variable>
2584
+ <xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
2585
+
2554
2586
  <xsl:attribute-set name="table-container-style">
2555
2587
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
2556
2588
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
@@ -2563,8 +2595,6 @@
2563
2595
  <xsl:attribute-set name="table-style">
2564
2596
  <xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
2565
2597
  <xsl:attribute name="table-layout">fixed</xsl:attribute>
2566
- <xsl:attribute name="margin-left">0mm</xsl:attribute>
2567
- <xsl:attribute name="margin-right">0mm</xsl:attribute>
2568
2598
 
2569
2599
  </xsl:attribute-set><!-- table-style -->
2570
2600
 
@@ -3053,8 +3083,6 @@
3053
3083
  <xsl:attribute-set name="bibitem-non-normative-style">
3054
3084
 
3055
3085
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
3056
- <xsl:attribute name="margin-left">14mm</xsl:attribute>
3057
- <xsl:attribute name="text-indent">-14mm</xsl:attribute>
3058
3086
 
3059
3087
  </xsl:attribute-set> <!-- bibitem-non-normative-style -->
3060
3088
 
@@ -3681,6 +3709,12 @@
3681
3709
  <xsl:variable name="table_attributes">
3682
3710
 
3683
3711
  <xsl:element name="table_attributes" use-attribute-sets="table-style">
3712
+
3713
+ <xsl:if test="$margin-side != 0">
3714
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
3715
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
3716
+ </xsl:if>
3717
+
3684
3718
  <xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
3685
3719
 
3686
3720
  <xsl:if test="$doctype = 'service-publication'">
@@ -4464,6 +4498,10 @@
4464
4498
  <xsl:template match="*[local-name()='tr']">
4465
4499
  <fo:table-row xsl:use-attribute-sets="table-body-row-style">
4466
4500
 
4501
+ <xsl:if test="*[local-name() = 'th']">
4502
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
4503
+ </xsl:if>
4504
+
4467
4505
  <xsl:call-template name="setTableRowAttributes"/>
4468
4506
  <xsl:apply-templates/>
4469
4507
  </fo:table-row>
@@ -5548,8 +5586,17 @@
5548
5586
  </fo:inline>
5549
5587
  </xsl:template> <!-- tt -->
5550
5588
 
5589
+ <xsl:variable name="regex_url_start">^(http://|https://|www\.)?(.*)</xsl:variable>
5551
5590
  <xsl:template match="*[local-name()='tt']/text()" priority="2">
5552
- <xsl:call-template name="add_spaces_to_sourcecode"/>
5591
+ <xsl:choose>
5592
+ <xsl:when test="java:replaceAll(java:java.lang.String.new(.), '$2', '') != ''">
5593
+ <!-- url -->
5594
+ <xsl:call-template name="add-zero-spaces-link-java"/>
5595
+ </xsl:when>
5596
+ <xsl:otherwise>
5597
+ <xsl:call-template name="add_spaces_to_sourcecode"/>
5598
+ </xsl:otherwise>
5599
+ </xsl:choose>
5553
5600
  </xsl:template>
5554
5601
 
5555
5602
  <xsl:template match="*[local-name()='underline']">
@@ -5905,8 +5952,11 @@
5905
5952
 
5906
5953
  <xsl:template name="add-zero-spaces-link-java">
5907
5954
  <xsl:param name="text" select="."/>
5955
+
5956
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$1')"/> <!-- http://. https:// or www. -->
5957
+ <xsl:variable name="url_continue" select="java:replaceAll(java:java.lang.String.new($text), $regex_url_start, '$2')"/>
5908
5958
  <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
5909
- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| |,)','$1​')"/>
5959
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($url_continue),'(-|\.|:|=|_|—| |,|/)','$1​')"/>
5910
5960
  </xsl:template>
5911
5961
 
5912
5962
  <!-- add zero space after dash character (for table's entries) -->
@@ -6463,6 +6513,9 @@
6463
6513
  <xsl:value-of select="substring($str, 2)"/>
6464
6514
  </xsl:template>
6465
6515
 
6516
+ <!-- ======================================= -->
6517
+ <!-- math -->
6518
+ <!-- ======================================= -->
6466
6519
  <xsl:template match="mathml:math">
6467
6520
  <xsl:variable name="isAdded" select="@added"/>
6468
6521
  <xsl:variable name="isDeleted" select="@deleted"/>
@@ -6513,14 +6566,57 @@
6513
6566
  <xsl:value-of select="$comment_text"/>
6514
6567
  </xsl:template>
6515
6568
 
6569
+ <xsl:template match="*[local-name() = 'asciimath']">
6570
+ <xsl:param name="process" select="'false'"/>
6571
+ <xsl:if test="$process = 'true'">
6572
+ <xsl:apply-templates/>
6573
+ </xsl:if>
6574
+ </xsl:template>
6575
+
6576
+ <xsl:template match="*[local-name() = 'latexmath']"/>
6577
+
6578
+ <xsl:template name="getMathml_asciimath_text">
6579
+ <xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
6580
+ <xsl:variable name="latexmath">
6581
+
6582
+ </xsl:variable>
6583
+ <xsl:variable name="asciimath_text_following">
6584
+ <xsl:choose>
6585
+ <xsl:when test="normalize-space($latexmath) != ''">
6586
+ <xsl:value-of select="$latexmath"/>
6587
+ </xsl:when>
6588
+ <xsl:when test="normalize-space($asciimath) != ''">
6589
+ <xsl:value-of select="$asciimath"/>
6590
+ </xsl:when>
6591
+ <xsl:otherwise>
6592
+ <xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
6593
+ </xsl:otherwise>
6594
+ </xsl:choose>
6595
+ </xsl:variable>
6596
+ <xsl:variable name="asciimath_text_">
6597
+ <xsl:choose>
6598
+ <xsl:when test="normalize-space($asciimath_text_following) != ''">
6599
+ <xsl:value-of select="$asciimath_text_following"/>
6600
+ </xsl:when>
6601
+ <xsl:otherwise>
6602
+ <xsl:value-of select="normalize-space(translate(.,' ⁢',' '))"/>
6603
+ </xsl:otherwise>
6604
+ </xsl:choose>
6605
+ </xsl:variable>
6606
+ <xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
6607
+ <xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
6608
+ <xsl:value-of select="$asciimath_text"/>
6609
+ </xsl:template>
6610
+
6516
6611
  <xsl:template name="mathml_instream_object">
6517
- <xsl:param name="comment_text"/>
6612
+ <xsl:param name="asciimath_text"/>
6518
6613
  <xsl:param name="mathml_content"/>
6519
6614
 
6520
- <xsl:variable name="comment_text_">
6615
+ <xsl:variable name="asciimath_text_">
6521
6616
  <xsl:choose>
6522
- <xsl:when test="normalize-space($comment_text) != ''"><xsl:value-of select="$comment_text"/></xsl:when>
6523
- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
6617
+ <xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
6618
+ <!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
6619
+ <xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
6524
6620
  </xsl:choose>
6525
6621
  </xsl:variable>
6526
6622
 
@@ -6537,10 +6633,10 @@
6537
6633
  </xsl:attribute>
6538
6634
 
6539
6635
  <!-- <xsl:if test="$add_math_as_text = 'true'"> -->
6540
- <xsl:if test="normalize-space($comment_text_) != ''">
6636
+ <xsl:if test="normalize-space($asciimath_text_) != ''">
6541
6637
  <!-- put Mathin Alternate Text -->
6542
6638
  <xsl:attribute name="fox:alt-text">
6543
- <xsl:value-of select="$comment_text_"/>
6639
+ <xsl:value-of select="$asciimath_text_"/>
6544
6640
  </xsl:attribute>
6545
6641
  </xsl:if>
6546
6642
  <!-- </xsl:if> -->
@@ -6613,6 +6709,29 @@
6613
6709
  <xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
6614
6710
  </xsl:template>
6615
6711
 
6712
+ <!-- Examples:
6713
+ <stem type="AsciiMath">x = 1</stem>
6714
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
6715
+ <stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
6716
+ -->
6717
+ <xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
6718
+ <fo:inline xsl:use-attribute-sets="mathml-style">
6719
+
6720
+ <xsl:choose>
6721
+ <xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
6722
+ <xsl:otherwise>
6723
+ <xsl:apply-templates>
6724
+ <xsl:with-param name="process">true</xsl:with-param>
6725
+ </xsl:apply-templates>
6726
+ </xsl:otherwise>
6727
+ </xsl:choose>
6728
+
6729
+ </fo:inline>
6730
+ </xsl:template>
6731
+ <!-- ======================================= -->
6732
+ <!-- END: math -->
6733
+ <!-- ======================================= -->
6734
+
6616
6735
  <xsl:template match="*[local-name()='localityStack']"/>
6617
6736
 
6618
6737
  <xsl:template match="*[local-name()='link']" name="link">
@@ -7957,9 +8076,9 @@
7957
8076
  <xsl:apply-templates mode="contents_item"/>
7958
8077
  </xsl:template>
7959
8078
 
7960
- <!-- ====== -->
7961
- <!-- sourcecode -->
7962
- <!-- ====== -->
8079
+ <!-- =============== -->
8080
+ <!-- sourcecode -->
8081
+ <!-- =============== -->
7963
8082
  <xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
7964
8083
 
7965
8084
  <fo:block-container xsl:use-attribute-sets="sourcecode-container-style">
@@ -8258,8 +8377,22 @@
8258
8377
  </fo:block>
8259
8378
  </xsl:if>
8260
8379
  </xsl:template>
8261
- <!-- ====== -->
8262
- <!-- ====== -->
8380
+ <!-- =============== -->
8381
+ <!-- END sourcecode -->
8382
+ <!-- =============== -->
8383
+
8384
+ <!-- =============== -->
8385
+ <!-- pre -->
8386
+ <!-- =============== -->
8387
+ <xsl:template match="*[local-name()='pre']" name="pre">
8388
+ <fo:block xsl:use-attribute-sets="pre-style">
8389
+ <xsl:copy-of select="@id"/>
8390
+ <xsl:apply-templates/>
8391
+ </fo:block>
8392
+ </xsl:template>
8393
+ <!-- =============== -->
8394
+ <!-- pre -->
8395
+ <!-- =============== -->
8263
8396
 
8264
8397
  <!-- ========== -->
8265
8398
  <!-- permission -->
@@ -9711,28 +9844,42 @@
9711
9844
  <xsl:attribute name="text-indent">0mm</xsl:attribute>
9712
9845
  </xsl:if>
9713
9846
 
9847
+ <xsl:variable name="docidentifier_metanorma" select="normalize-space(itu:docidentifier[@type = 'metanorma'])"/>
9848
+ <xsl:variable name="docidentifier_metanorma_ordinal" select="normalize-space(itu:docidentifier[@type = 'metanorma-ordinal'])"/>
9849
+
9714
9850
  <xsl:variable name="bibitem_label">
9715
- <xsl:value-of select="itu:docidentifier[@type = 'metanorma']"/>
9716
- <xsl:if test="not(itu:docidentifier[@type = 'metanorma'])">
9851
+ <xsl:value-of select="$docidentifier_metanorma"/>
9852
+ <xsl:if test="$docidentifier_metanorma = ''">
9717
9853
  <fo:inline padding-right="5mm">
9718
- <xsl:text>[</xsl:text>
9719
- <xsl:value-of select="itu:docidentifier[not(@type = 'metanorma-ordinal')]"/>
9720
- <xsl:text>] </xsl:text>
9854
+ <xsl:variable name="docidentifier" select="normalize-space(itu:docidentifier[not(@type = 'metanorma-ordinal')])"/>
9855
+ <xsl:choose>
9856
+ <xsl:when test="$docidentifier != ''">
9857
+ <xsl:text>[</xsl:text>
9858
+ <xsl:value-of select="$docidentifier"/>
9859
+ <xsl:text>] </xsl:text>
9860
+ </xsl:when>
9861
+ <xsl:otherwise>
9862
+ <xsl:value-of select="$docidentifier_metanorma_ordinal"/>
9863
+ </xsl:otherwise>
9864
+ </xsl:choose>
9721
9865
  </fo:inline>
9722
9866
  </xsl:if>
9723
9867
  </xsl:variable>
9724
9868
 
9725
9869
  <xsl:variable name="bibitem_body">
9726
- <xsl:text> </xsl:text>
9727
- <xsl:choose>
9728
- <xsl:when test="itu:docidentifier[@type = 'metanorma']">
9729
- <xsl:value-of select="itu:docidentifier[not(@type) or not(@type = 'metanorma' or @type = 'metanorma-ordinal')]"/>
9730
- </xsl:when>
9731
- <xsl:otherwise>
9732
- <xsl:value-of select="itu:docidentifier[not(@type = 'metanorma-ordinal')]"/>
9733
- </xsl:otherwise>
9734
- </xsl:choose>
9735
- <xsl:if test="itu:formattedref and not(itu:docidentifier[@type = 'metanorma'])">, </xsl:if>
9870
+ <xsl:variable name="docidentifier">
9871
+ <xsl:text> </xsl:text>
9872
+ <xsl:choose>
9873
+ <xsl:when test="$docidentifier_metanorma != ''">
9874
+ <xsl:value-of select="itu:docidentifier[not(@type) or not(@type = 'metanorma' or @type = 'metanorma-ordinal')]"/>
9875
+ </xsl:when>
9876
+ <xsl:otherwise>
9877
+ <xsl:value-of select="itu:docidentifier[not(@type = 'metanorma-ordinal')]"/>
9878
+ </xsl:otherwise>
9879
+ </xsl:choose>
9880
+ </xsl:variable>
9881
+ <xsl:value-of select="$docidentifier"/>
9882
+ <xsl:if test="normalize-space($docidentifier) != ''">, </xsl:if>
9736
9883
  <xsl:apply-templates select="itu:formattedref"/>
9737
9884
  </xsl:variable>
9738
9885
 
@@ -9743,15 +9890,33 @@
9743
9890
  <fo:table-column column-width="80%"/>
9744
9891
  <fo:table-body>
9745
9892
  <fo:table-row>
9746
- <fo:table-cell><fo:block><xsl:copy-of select="$bibitem_label"/></fo:block></fo:table-cell>
9893
+ <fo:table-cell><fo:block><xsl:value-of select="$bibitem_label"/></fo:block></fo:table-cell>
9747
9894
  <fo:table-cell><fo:block><xsl:copy-of select="$bibitem_body"/></fo:block></fo:table-cell>
9748
9895
  </fo:table-row>
9749
9896
  </fo:table-body>
9750
9897
  </fo:table>
9751
9898
  </xsl:when> <!-- $doctype = 'implementers-guide' -->
9752
- <xsl:otherwise>
9899
+ <xsl:when test="$bibitem_label != $docidentifier_metanorma_ordinal">
9900
+ <xsl:attribute name="margin-left">14mm</xsl:attribute>
9901
+ <xsl:attribute name="text-indent">-14mm</xsl:attribute>
9753
9902
  <xsl:copy-of select="$bibitem_label"/>
9754
9903
  <xsl:copy-of select="$bibitem_body"/>
9904
+ </xsl:when>
9905
+ <xsl:otherwise>
9906
+ <fo:list-block provisional-distance-between-starts="14mm">
9907
+ <fo:list-item>
9908
+ <fo:list-item-label end-indent="label-end()">
9909
+ <fo:block>
9910
+ <xsl:value-of select="$bibitem_label"/>
9911
+ </fo:block>
9912
+ </fo:list-item-label>
9913
+ <fo:list-item-body start-indent="body-start()">
9914
+ <fo:block>
9915
+ <xsl:copy-of select="$bibitem_body"/>
9916
+ </fo:block>
9917
+ </fo:list-item-body>
9918
+ </fo:list-item>
9919
+ </fo:list-block>
9755
9920
  </xsl:otherwise>
9756
9921
  </xsl:choose>
9757
9922
 
@@ -10339,7 +10504,7 @@
10339
10504
 
10340
10505
  <xsl:variable name="element_name_keep-together_within-line">keep-together_within-line</xsl:variable>
10341
10506
 
10342
- <xsl:template match="text()[not(ancestor::*[local-name() = 'bibdata'] or ancestor::*[local-name() = 'sourcecode'] or ancestor::*[local-name() = 'math'])]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
10507
+ <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">
10343
10508
 
10344
10509
  <!-- enclose standard's number into tag 'keep-together_within-line' -->
10345
10510
  <xsl:variable name="regex_standard_reference">([A-Z]{2,}(/[A-Z]{2,})* \d+(-\d+)*(:\d{4})?)</xsl:variable>
@@ -10815,13 +10980,14 @@
10815
10980
  </xsl:template>
10816
10981
 
10817
10982
  <xsl:template name="setId">
10983
+ <xsl:param name="prefix"/>
10818
10984
  <xsl:attribute name="id">
10819
10985
  <xsl:choose>
10820
10986
  <xsl:when test="@id">
10821
- <xsl:value-of select="@id"/>
10987
+ <xsl:value-of select="concat($prefix, @id)"/>
10822
10988
  </xsl:when>
10823
10989
  <xsl:otherwise>
10824
- <xsl:value-of select="generate-id()"/>
10990
+ <xsl:value-of select="concat($prefix, generate-id())"/>
10825
10991
  </xsl:otherwise>
10826
10992
  </xsl:choose>
10827
10993
  </xsl:attribute>