metanorma-nist 1.2.14 → 1.2.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1300,6 +1300,7 @@
1300
1300
 
1301
1301
 
1302
1302
 
1303
+
1303
1304
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1304
1305
 
1305
1306
 
@@ -1907,7 +1908,15 @@
1907
1908
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
1908
1909
  <xsl:value-of select="@target"/>
1909
1910
  </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
1910
- <xsl:variable name="math_text" select="normalize-space(.)"/>
1911
+ <xsl:variable name="mathml">
1912
+ <xsl:for-each select="*">
1913
+ <xsl:if test="local-name() != 'unit' and local-name() != 'prefix' and local-name() != 'dimension' and local-name() != 'quantity'">
1914
+ <xsl:copy-of select="."/>
1915
+ </xsl:if>
1916
+ </xsl:for-each>
1917
+ </xsl:variable>
1918
+
1919
+ <xsl:variable name="math_text" select="normalize-space(xalan:nodeset($mathml))"/>
1911
1920
  <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
1912
1921
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
1913
1922
  <xsl:param name="cols-count"/>
@@ -2898,6 +2907,10 @@
2898
2907
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2899
2908
  <xsl:apply-templates/>
2900
2909
  </fo:inline>
2910
+ </xsl:template><xsl:template match="*[local-name()='hi']">
2911
+ <fo:inline background-color="yellow">
2912
+ <xsl:apply-templates/>
2913
+ </fo:inline>
2901
2914
  </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
2902
2915
  <xsl:variable name="text" select="normalize-space(.)"/>
2903
2916
  <fo:inline font-size="75%">
@@ -3238,6 +3251,7 @@
3238
3251
  <xsl:apply-templates select="." mode="mathml"/>
3239
3252
  </xsl:variable>
3240
3253
  <fo:instream-foreign-object fox:alt-text="Math">
3254
+
3241
3255
  <!-- <xsl:copy-of select="."/> -->
3242
3256
  <xsl:copy-of select="xalan:nodeset($mathml)"/>
3243
3257
  </fo:instream-foreign-object>
@@ -3256,7 +3270,7 @@
3256
3270
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
3257
3271
  </xsl:copy>
3258
3272
  <mathml:mspace width="0.5ex"/>
3259
- </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
3273
+ </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">
3260
3274
  <xsl:variable name="target">
3261
3275
  <xsl:choose>
3262
3276
  <xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
@@ -3290,8 +3304,6 @@
3290
3304
  </xsl:otherwise>
3291
3305
  </xsl:choose>
3292
3306
  </fo:inline>
3293
- </xsl:template><xsl:template match="*[local-name()='bookmark']">
3294
- <fo:inline id="{@id}"/>
3295
3307
  </xsl:template><xsl:template match="*[local-name()='appendix']">
3296
3308
  <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
3297
3309
  <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
@@ -3502,6 +3514,7 @@
3502
3514
  <fo:block id="{@id}">
3503
3515
  <xsl:apply-templates/>
3504
3516
  </fo:block>
3517
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3505
3518
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
3506
3519
  <fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
3507
3520
  <xsl:apply-templates/>
@@ -4089,10 +4102,11 @@
4089
4102
  </xsl:choose>
4090
4103
 
4091
4104
  </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
4092
-
4105
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
4093
4106
  <xsl:variable name="element">
4094
4107
  block
4095
4108
 
4109
+
4096
4110
  </xsl:variable>
4097
4111
  <xsl:choose>
4098
4112
  <xsl:when test="normalize-space($element) = 'block'">
@@ -4188,31 +4202,49 @@
4188
4202
  <xsl:text>— </xsl:text>
4189
4203
  <xsl:apply-templates/>
4190
4204
  </xsl:template><xsl:template match="*[local-name() = 'eref']">
4191
- <fo:inline xsl:use-attribute-sets="eref-style">
4192
- <xsl:if test="@type = 'footnote'">
4193
-
4194
- <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
4195
- <xsl:attribute name="font-size">80%</xsl:attribute>
4196
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
4197
- <xsl:attribute name="vertical-align">super</xsl:attribute>
4198
-
4199
-
4200
- </xsl:if>
4201
-
4202
- <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4203
-
4204
- <xsl:if test="@type = 'inline'">
4205
-
4206
-
4207
-
4208
- <xsl:attribute name="text-decoration">underline</xsl:attribute>
4209
-
4210
- </xsl:if>
4211
-
4212
-
4213
- <xsl:apply-templates/>
4214
- </fo:basic-link>
4215
- </fo:inline>
4205
+
4206
+ <xsl:variable name="bibitemid">
4207
+ <xsl:choose>
4208
+ <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
4209
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
4210
+ <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
4211
+ </xsl:choose>
4212
+ </xsl:variable>
4213
+
4214
+ <xsl:choose>
4215
+ <xsl:when test="normalize-space($bibitemid) != ''">
4216
+ <fo:inline xsl:use-attribute-sets="eref-style">
4217
+ <xsl:if test="@type = 'footnote'">
4218
+
4219
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
4220
+ <xsl:attribute name="font-size">80%</xsl:attribute>
4221
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
4222
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
4223
+
4224
+
4225
+ </xsl:if>
4226
+
4227
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4228
+ <xsl:if test="normalize-space(@citeas) = ''">
4229
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
4230
+ </xsl:if>
4231
+ <xsl:if test="@type = 'inline'">
4232
+
4233
+
4234
+
4235
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
4236
+
4237
+ </xsl:if>
4238
+
4239
+ <xsl:apply-templates/>
4240
+ </fo:basic-link>
4241
+
4242
+ </fo:inline>
4243
+ </xsl:when>
4244
+ <xsl:otherwise>
4245
+ <fo:inline><xsl:apply-templates/></fo:inline>
4246
+ </xsl:otherwise>
4247
+ </xsl:choose>
4216
4248
  </xsl:template><xsl:template match="*[local-name() = 'tab']">
4217
4249
  <!-- zero-space char -->
4218
4250
  <xsl:variable name="depth">
@@ -4396,6 +4428,153 @@
4396
4428
  </fo:block>
4397
4429
  </xsl:otherwise>
4398
4430
  </xsl:choose>
4431
+ </xsl:template><xsl:variable name="index" select="document($external_index)"/><xsl:variable name="dash" select="'–'"/><xsl:variable name="bookmark_in_fn">
4432
+ <xsl:for-each select="//*[local-name() = 'bookmark'][ancestor::*[local-name() = 'fn']]">
4433
+ <bookmark><xsl:value-of select="@id"/></bookmark>
4434
+ </xsl:for-each>
4435
+ </xsl:variable><xsl:template match="@*|node()" mode="index_add_id">
4436
+ <xsl:copy>
4437
+ <xsl:apply-templates select="@*|node()" mode="index_add_id"/>
4438
+ </xsl:copy>
4439
+ </xsl:template><xsl:template match="*[local-name() = 'xref']" mode="index_add_id">
4440
+ <xsl:variable name="id">
4441
+ <xsl:call-template name="generateIndexXrefId"/>
4442
+ </xsl:variable>
4443
+ <xsl:copy> <!-- add id to xref -->
4444
+ <xsl:apply-templates select="@*" mode="index_add_id"/>
4445
+ <xsl:attribute name="id">
4446
+ <xsl:value-of select="$id"/>
4447
+ </xsl:attribute>
4448
+ <xsl:apply-templates mode="index_add_id"/>
4449
+ </xsl:copy>
4450
+ <!-- split <xref target="bm1" to="End" pagenumber="true"> to two xref:
4451
+ <xref target="bm1" pagenumber="true"> and <xref target="End" pagenumber="true"> -->
4452
+ <xsl:if test="@to">
4453
+ <xsl:value-of select="$dash"/>
4454
+ <xsl:copy>
4455
+ <xsl:copy-of select="@*"/>
4456
+ <xsl:attribute name="target"><xsl:value-of select="@to"/></xsl:attribute>
4457
+ <xsl:attribute name="id">
4458
+ <xsl:value-of select="$id"/><xsl:text>_to</xsl:text>
4459
+ </xsl:attribute>
4460
+ <xsl:apply-templates mode="index_add_id"/>
4461
+ </xsl:copy>
4462
+ </xsl:if>
4463
+ </xsl:template><xsl:template match="@*|node()" mode="index_update">
4464
+ <xsl:copy>
4465
+ <xsl:apply-templates select="@*|node()" mode="index_update"/>
4466
+ </xsl:copy>
4467
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" mode="index_update">
4468
+ <xsl:copy>
4469
+ <xsl:apply-templates select="@*" mode="index_update"/>
4470
+ <xsl:apply-templates select="node()[1]" mode="process_li_element"/>
4471
+ </xsl:copy>
4472
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/node()" mode="process_li_element" priority="2">
4473
+ <xsl:param name="element"/>
4474
+ <xsl:param name="remove" select="'false'"/>
4475
+ <xsl:param name="target"/>
4476
+ <!-- <node></node> -->
4477
+ <xsl:choose>
4478
+ <xsl:when test="self::text() and (normalize-space(.) = ',' or normalize-space(.) = $dash) and $remove = 'true'">
4479
+ <!-- skip text (i.e. remove it) and process next element -->
4480
+ <!-- [removed_<xsl:value-of select="."/>] -->
4481
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
4482
+ <xsl:with-param name="target"><xsl:value-of select="$target"/></xsl:with-param>
4483
+ </xsl:apply-templates>
4484
+ </xsl:when>
4485
+ <xsl:when test="self::text()">
4486
+ <xsl:value-of select="."/>
4487
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
4488
+ </xsl:when>
4489
+ <xsl:when test="self::* and local-name(.) = 'xref'">
4490
+ <xsl:variable name="id" select="@id"/>
4491
+ <xsl:variable name="page" select="$index//item[@id = $id]"/>
4492
+ <xsl:variable name="id_next" select="following-sibling::*[local-name() = 'xref'][1]/@id"/>
4493
+ <xsl:variable name="page_next" select="$index//item[@id = $id_next]"/>
4494
+
4495
+ <xsl:variable name="id_prev" select="preceding-sibling::*[local-name() = 'xref'][1]/@id"/>
4496
+ <xsl:variable name="page_prev" select="$index//item[@id = $id_prev]"/>
4497
+
4498
+ <xsl:choose>
4499
+ <!-- 2nd pass -->
4500
+ <!-- if page is equal to page for next and page is not the end of range -->
4501
+ <xsl:when test="$page != '' and $page_next != '' and $page = $page_next and not(contains($page, '_to'))"> <!-- case: 12, 12-14 -->
4502
+ <!-- skip element (i.e. remove it) and remove next text ',' -->
4503
+ <!-- [removed_xref] -->
4504
+
4505
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
4506
+ <xsl:with-param name="remove">true</xsl:with-param>
4507
+ <xsl:with-param name="target">
4508
+ <xsl:choose>
4509
+ <xsl:when test="$target != ''"><xsl:value-of select="$target"/></xsl:when>
4510
+ <xsl:otherwise><xsl:value-of select="@target"/></xsl:otherwise>
4511
+ </xsl:choose>
4512
+ </xsl:with-param>
4513
+ </xsl:apply-templates>
4514
+ </xsl:when>
4515
+
4516
+ <xsl:when test="$page != '' and $page_prev != '' and $page = $page_prev and contains($page_prev, '_to')"> <!-- case: 12-14, 14, ... -->
4517
+ <!-- remove xref -->
4518
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
4519
+ <xsl:with-param name="remove">true</xsl:with-param>
4520
+ </xsl:apply-templates>
4521
+ </xsl:when>
4522
+
4523
+ <xsl:otherwise>
4524
+ <xsl:apply-templates select="." mode="xref_copy">
4525
+ <xsl:with-param name="target" select="$target"/>
4526
+ </xsl:apply-templates>
4527
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
4528
+ </xsl:otherwise>
4529
+ </xsl:choose>
4530
+ </xsl:when>
4531
+ <xsl:when test="self::* and local-name(.) = 'ul'">
4532
+ <!-- ul -->
4533
+ <xsl:apply-templates select="." mode="index_update"/>
4534
+ </xsl:when>
4535
+ <xsl:otherwise>
4536
+ <xsl:apply-templates select="." mode="xref_copy">
4537
+ <xsl:with-param name="target" select="$target"/>
4538
+ </xsl:apply-templates>
4539
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
4540
+ </xsl:otherwise>
4541
+ </xsl:choose>
4542
+ </xsl:template><xsl:template match="@*|node()" mode="xref_copy">
4543
+ <xsl:param name="target"/>
4544
+ <xsl:copy>
4545
+ <xsl:apply-templates select="@*" mode="xref_copy"/>
4546
+ <xsl:if test="$target != '' and not(xalan:nodeset($bookmark_in_fn)//bookmark[. = $target])">
4547
+ <xsl:attribute name="target"><xsl:value-of select="$target"/></xsl:attribute>
4548
+ </xsl:if>
4549
+ <xsl:apply-templates select="node()" mode="xref_copy"/>
4550
+ </xsl:copy>
4551
+ </xsl:template><xsl:template name="generateIndexXrefId">
4552
+ <xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
4553
+
4554
+ <xsl:variable name="docid">
4555
+ <xsl:call-template name="getDocumentId"/>
4556
+ </xsl:variable>
4557
+ <xsl:variable name="item_number">
4558
+ <xsl:number count="*[local-name() = 'li'][ancestor::*[local-name() = 'indexsect']]" level="any"/>
4559
+ </xsl:variable>
4560
+ <xsl:variable name="xref_number"><xsl:number count="*[local-name() = 'xref']"/></xsl:variable>
4561
+ <xsl:value-of select="concat($docid, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
4562
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'clause']" priority="4">
4563
+ <xsl:apply-templates/>
4564
+ <fo:block>
4565
+ <xsl:if test="following-sibling::*[local-name() = 'clause']">
4566
+ <fo:block> </fo:block>
4567
+ </xsl:if>
4568
+ </fo:block>
4569
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
4570
+ <xsl:apply-templates/>
4571
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
4572
+ <xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
4573
+ <fo:block start-indent="{5 * $level}mm" text-indent="-5mm">
4574
+ <xsl:apply-templates/>
4575
+ </fo:block>
4576
+ </xsl:template><xsl:template match="*[local-name() = 'bookmark']">
4577
+ <fo:inline id="{@id}"/>
4399
4578
  </xsl:template><xsl:template match="*[local-name() = 'errata']">
4400
4579
  <!-- <row>
4401
4580
  <date>05-07-2013</date>
@@ -4614,70 +4793,68 @@
4614
4793
  <xsl:variable name="lang">
4615
4794
  <xsl:call-template name="getLang"/>
4616
4795
  </xsl:variable>
4617
- <fo:declarations>
4618
- <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
4619
- <pdf:dictionary type="normal" key="ViewerPreferences">
4620
- <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
4621
- </pdf:dictionary>
4622
- </pdf:catalog>
4623
- <x:xmpmeta xmlns:x="adobe:ns:meta/">
4624
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
4625
- <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
4626
- <!-- Dublin Core properties go here -->
4627
- <dc:title>
4628
- <xsl:variable name="title">
4629
- <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
4630
-
4631
- <xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
4632
-
4633
-
4634
-
4635
-
4636
-
4637
-
4638
- </xsl:for-each>
4639
- </xsl:variable>
4640
- <xsl:choose>
4641
- <xsl:when test="normalize-space($title) != ''">
4642
- <xsl:value-of select="$title"/>
4643
- </xsl:when>
4644
- <xsl:otherwise>
4645
- <xsl:text> </xsl:text>
4646
- </xsl:otherwise>
4647
- </xsl:choose>
4648
- </dc:title>
4649
- <dc:creator>
4796
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
4797
+ <pdf:dictionary type="normal" key="ViewerPreferences">
4798
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
4799
+ </pdf:dictionary>
4800
+ </pdf:catalog>
4801
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
4802
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
4803
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
4804
+ <!-- Dublin Core properties go here -->
4805
+ <dc:title>
4806
+ <xsl:variable name="title">
4650
4807
  <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
4651
4808
 
4809
+ <xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
4652
4810
 
4653
4811
 
4654
- <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
4655
- <xsl:value-of select="*[local-name() = 'person']/*[local-name() = 'name']/*[local-name() = 'completename']"/>
4656
- <xsl:if test="position() != last()">; </xsl:if>
4657
- </xsl:for-each>
4658
-
4659
- </xsl:for-each>
4660
- </dc:creator>
4661
- <dc:description>
4662
- <xsl:variable name="abstract">
4663
4812
 
4664
- <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
4665
4813
 
4666
4814
 
4667
- </xsl:variable>
4668
- <xsl:value-of select="normalize-space($abstract)"/>
4669
- </dc:description>
4670
- <pdf:Keywords>
4671
- <xsl:call-template name="insertKeywords"/>
4672
- </pdf:Keywords>
4673
- </rdf:Description>
4674
- <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
4675
- <!-- XMP properties go here -->
4676
- <xmp:CreatorTool/>
4677
- </rdf:Description>
4678
- </rdf:RDF>
4679
- </x:xmpmeta>
4680
- </fo:declarations>
4815
+
4816
+ </xsl:for-each>
4817
+ </xsl:variable>
4818
+ <xsl:choose>
4819
+ <xsl:when test="normalize-space($title) != ''">
4820
+ <xsl:value-of select="$title"/>
4821
+ </xsl:when>
4822
+ <xsl:otherwise>
4823
+ <xsl:text> </xsl:text>
4824
+ </xsl:otherwise>
4825
+ </xsl:choose>
4826
+ </dc:title>
4827
+ <dc:creator>
4828
+ <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
4829
+
4830
+
4831
+
4832
+ <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
4833
+ <xsl:value-of select="*[local-name() = 'person']/*[local-name() = 'name']/*[local-name() = 'completename']"/>
4834
+ <xsl:if test="position() != last()">; </xsl:if>
4835
+ </xsl:for-each>
4836
+
4837
+ </xsl:for-each>
4838
+ </dc:creator>
4839
+ <dc:description>
4840
+ <xsl:variable name="abstract">
4841
+
4842
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
4843
+
4844
+
4845
+ </xsl:variable>
4846
+ <xsl:value-of select="normalize-space($abstract)"/>
4847
+ </dc:description>
4848
+ <pdf:Keywords>
4849
+ <xsl:call-template name="insertKeywords"/>
4850
+ </pdf:Keywords>
4851
+ </rdf:Description>
4852
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
4853
+ <!-- XMP properties go here -->
4854
+ <xmp:CreatorTool/>
4855
+ </rdf:Description>
4856
+ </rdf:RDF>
4857
+ </x:xmpmeta>
4681
4858
  </xsl:template><xsl:template name="getId">
4682
4859
  <xsl:choose>
4683
4860
  <xsl:when test="../@id">
@@ -2347,6 +2347,7 @@
2347
2347
 
2348
2348
 
2349
2349
 
2350
+
2350
2351
  </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
2351
2352
 
2352
2353
 
@@ -2945,7 +2946,15 @@
2945
2946
  </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
2946
2947
  <xsl:value-of select="@target"/>
2947
2948
  </xsl:template><xsl:template match="*[local-name()='math']" mode="td_text">
2948
- <xsl:variable name="math_text" select="normalize-space(.)"/>
2949
+ <xsl:variable name="mathml">
2950
+ <xsl:for-each select="*">
2951
+ <xsl:if test="local-name() != 'unit' and local-name() != 'prefix' and local-name() != 'dimension' and local-name() != 'quantity'">
2952
+ <xsl:copy-of select="."/>
2953
+ </xsl:if>
2954
+ </xsl:for-each>
2955
+ </xsl:variable>
2956
+
2957
+ <xsl:variable name="math_text" select="normalize-space(xalan:nodeset($mathml))"/>
2949
2958
  <xsl:value-of select="translate($math_text, ' ', '#')"/><!-- mathml images as one 'word' without spaces -->
2950
2959
  </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
2951
2960
  <xsl:param name="cols-count"/>
@@ -3936,6 +3945,10 @@
3936
3945
  <fo:inline font-size="10pt" color="red" text-decoration="line-through">
3937
3946
  <xsl:apply-templates/>
3938
3947
  </fo:inline>
3948
+ </xsl:template><xsl:template match="*[local-name()='hi']">
3949
+ <fo:inline background-color="yellow">
3950
+ <xsl:apply-templates/>
3951
+ </fo:inline>
3939
3952
  </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
3940
3953
  <xsl:variable name="text" select="normalize-space(.)"/>
3941
3954
  <fo:inline font-size="75%">
@@ -4276,6 +4289,7 @@
4276
4289
  <xsl:apply-templates select="." mode="mathml"/>
4277
4290
  </xsl:variable>
4278
4291
  <fo:instream-foreign-object fox:alt-text="Math">
4292
+
4279
4293
  <!-- <xsl:copy-of select="."/> -->
4280
4294
  <xsl:copy-of select="xalan:nodeset($mathml)"/>
4281
4295
  </fo:instream-foreign-object>
@@ -4294,7 +4308,7 @@
4294
4308
  <xsl:apply-templates select="@*|node()" mode="mathml"/>
4295
4309
  </xsl:copy>
4296
4310
  <mathml:mspace width="0.5ex"/>
4297
- </xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
4311
+ </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">
4298
4312
  <xsl:variable name="target">
4299
4313
  <xsl:choose>
4300
4314
  <xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
@@ -4328,8 +4342,6 @@
4328
4342
  </xsl:otherwise>
4329
4343
  </xsl:choose>
4330
4344
  </fo:inline>
4331
- </xsl:template><xsl:template match="*[local-name()='bookmark']">
4332
- <fo:inline id="{@id}"/>
4333
4345
  </xsl:template><xsl:template match="*[local-name()='appendix']">
4334
4346
  <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
4335
4347
  <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
@@ -4540,6 +4552,7 @@
4540
4552
  <fo:block id="{@id}">
4541
4553
  <xsl:apply-templates/>
4542
4554
  </fo:block>
4555
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
4543
4556
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
4544
4557
  <fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
4545
4558
  <xsl:apply-templates/>
@@ -5156,10 +5169,11 @@
5156
5169
  </xsl:choose>
5157
5170
 
5158
5171
  </xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
5159
-
5172
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
5160
5173
  <xsl:variable name="element">
5161
5174
  block
5162
5175
 
5176
+
5163
5177
  </xsl:variable>
5164
5178
  <xsl:choose>
5165
5179
  <xsl:when test="normalize-space($element) = 'block'">
@@ -5250,31 +5264,49 @@
5250
5264
  <xsl:text>— </xsl:text>
5251
5265
  <xsl:apply-templates/>
5252
5266
  </xsl:template><xsl:template match="*[local-name() = 'eref']">
5253
- <fo:inline xsl:use-attribute-sets="eref-style">
5254
- <xsl:if test="@type = 'footnote'">
5255
-
5256
- <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
5257
- <xsl:attribute name="font-size">80%</xsl:attribute>
5258
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5259
- <xsl:attribute name="vertical-align">super</xsl:attribute>
5260
-
5261
-
5262
- </xsl:if>
5263
-
5264
- <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
5265
-
5266
- <xsl:if test="@type = 'inline'">
5267
-
5268
-
5269
-
5270
- <xsl:attribute name="text-decoration">underline</xsl:attribute>
5271
-
5272
- </xsl:if>
5273
-
5274
-
5275
- <xsl:apply-templates/>
5276
- </fo:basic-link>
5277
- </fo:inline>
5267
+
5268
+ <xsl:variable name="bibitemid">
5269
+ <xsl:choose>
5270
+ <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"/>
5271
+ <xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
5272
+ <xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
5273
+ </xsl:choose>
5274
+ </xsl:variable>
5275
+
5276
+ <xsl:choose>
5277
+ <xsl:when test="normalize-space($bibitemid) != ''">
5278
+ <fo:inline xsl:use-attribute-sets="eref-style">
5279
+ <xsl:if test="@type = 'footnote'">
5280
+
5281
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
5282
+ <xsl:attribute name="font-size">80%</xsl:attribute>
5283
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
5284
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
5285
+
5286
+
5287
+ </xsl:if>
5288
+
5289
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
5290
+ <xsl:if test="normalize-space(@citeas) = ''">
5291
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
5292
+ </xsl:if>
5293
+ <xsl:if test="@type = 'inline'">
5294
+
5295
+
5296
+
5297
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
5298
+
5299
+ </xsl:if>
5300
+
5301
+ <xsl:apply-templates/>
5302
+ </fo:basic-link>
5303
+
5304
+ </fo:inline>
5305
+ </xsl:when>
5306
+ <xsl:otherwise>
5307
+ <fo:inline><xsl:apply-templates/></fo:inline>
5308
+ </xsl:otherwise>
5309
+ </xsl:choose>
5278
5310
  </xsl:template><xsl:template match="*[local-name() = 'tab']">
5279
5311
  <!-- zero-space char -->
5280
5312
  <xsl:variable name="depth">
@@ -5459,6 +5491,153 @@
5459
5491
  </fo:block>
5460
5492
  </xsl:otherwise>
5461
5493
  </xsl:choose>
5494
+ </xsl:template><xsl:variable name="index" select="document($external_index)"/><xsl:variable name="dash" select="'–'"/><xsl:variable name="bookmark_in_fn">
5495
+ <xsl:for-each select="//*[local-name() = 'bookmark'][ancestor::*[local-name() = 'fn']]">
5496
+ <bookmark><xsl:value-of select="@id"/></bookmark>
5497
+ </xsl:for-each>
5498
+ </xsl:variable><xsl:template match="@*|node()" mode="index_add_id">
5499
+ <xsl:copy>
5500
+ <xsl:apply-templates select="@*|node()" mode="index_add_id"/>
5501
+ </xsl:copy>
5502
+ </xsl:template><xsl:template match="*[local-name() = 'xref']" mode="index_add_id">
5503
+ <xsl:variable name="id">
5504
+ <xsl:call-template name="generateIndexXrefId"/>
5505
+ </xsl:variable>
5506
+ <xsl:copy> <!-- add id to xref -->
5507
+ <xsl:apply-templates select="@*" mode="index_add_id"/>
5508
+ <xsl:attribute name="id">
5509
+ <xsl:value-of select="$id"/>
5510
+ </xsl:attribute>
5511
+ <xsl:apply-templates mode="index_add_id"/>
5512
+ </xsl:copy>
5513
+ <!-- split <xref target="bm1" to="End" pagenumber="true"> to two xref:
5514
+ <xref target="bm1" pagenumber="true"> and <xref target="End" pagenumber="true"> -->
5515
+ <xsl:if test="@to">
5516
+ <xsl:value-of select="$dash"/>
5517
+ <xsl:copy>
5518
+ <xsl:copy-of select="@*"/>
5519
+ <xsl:attribute name="target"><xsl:value-of select="@to"/></xsl:attribute>
5520
+ <xsl:attribute name="id">
5521
+ <xsl:value-of select="$id"/><xsl:text>_to</xsl:text>
5522
+ </xsl:attribute>
5523
+ <xsl:apply-templates mode="index_add_id"/>
5524
+ </xsl:copy>
5525
+ </xsl:if>
5526
+ </xsl:template><xsl:template match="@*|node()" mode="index_update">
5527
+ <xsl:copy>
5528
+ <xsl:apply-templates select="@*|node()" mode="index_update"/>
5529
+ </xsl:copy>
5530
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" mode="index_update">
5531
+ <xsl:copy>
5532
+ <xsl:apply-templates select="@*" mode="index_update"/>
5533
+ <xsl:apply-templates select="node()[1]" mode="process_li_element"/>
5534
+ </xsl:copy>
5535
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/node()" mode="process_li_element" priority="2">
5536
+ <xsl:param name="element"/>
5537
+ <xsl:param name="remove" select="'false'"/>
5538
+ <xsl:param name="target"/>
5539
+ <!-- <node></node> -->
5540
+ <xsl:choose>
5541
+ <xsl:when test="self::text() and (normalize-space(.) = ',' or normalize-space(.) = $dash) and $remove = 'true'">
5542
+ <!-- skip text (i.e. remove it) and process next element -->
5543
+ <!-- [removed_<xsl:value-of select="."/>] -->
5544
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
5545
+ <xsl:with-param name="target"><xsl:value-of select="$target"/></xsl:with-param>
5546
+ </xsl:apply-templates>
5547
+ </xsl:when>
5548
+ <xsl:when test="self::text()">
5549
+ <xsl:value-of select="."/>
5550
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
5551
+ </xsl:when>
5552
+ <xsl:when test="self::* and local-name(.) = 'xref'">
5553
+ <xsl:variable name="id" select="@id"/>
5554
+ <xsl:variable name="page" select="$index//item[@id = $id]"/>
5555
+ <xsl:variable name="id_next" select="following-sibling::*[local-name() = 'xref'][1]/@id"/>
5556
+ <xsl:variable name="page_next" select="$index//item[@id = $id_next]"/>
5557
+
5558
+ <xsl:variable name="id_prev" select="preceding-sibling::*[local-name() = 'xref'][1]/@id"/>
5559
+ <xsl:variable name="page_prev" select="$index//item[@id = $id_prev]"/>
5560
+
5561
+ <xsl:choose>
5562
+ <!-- 2nd pass -->
5563
+ <!-- if page is equal to page for next and page is not the end of range -->
5564
+ <xsl:when test="$page != '' and $page_next != '' and $page = $page_next and not(contains($page, '_to'))"> <!-- case: 12, 12-14 -->
5565
+ <!-- skip element (i.e. remove it) and remove next text ',' -->
5566
+ <!-- [removed_xref] -->
5567
+
5568
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
5569
+ <xsl:with-param name="remove">true</xsl:with-param>
5570
+ <xsl:with-param name="target">
5571
+ <xsl:choose>
5572
+ <xsl:when test="$target != ''"><xsl:value-of select="$target"/></xsl:when>
5573
+ <xsl:otherwise><xsl:value-of select="@target"/></xsl:otherwise>
5574
+ </xsl:choose>
5575
+ </xsl:with-param>
5576
+ </xsl:apply-templates>
5577
+ </xsl:when>
5578
+
5579
+ <xsl:when test="$page != '' and $page_prev != '' and $page = $page_prev and contains($page_prev, '_to')"> <!-- case: 12-14, 14, ... -->
5580
+ <!-- remove xref -->
5581
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element">
5582
+ <xsl:with-param name="remove">true</xsl:with-param>
5583
+ </xsl:apply-templates>
5584
+ </xsl:when>
5585
+
5586
+ <xsl:otherwise>
5587
+ <xsl:apply-templates select="." mode="xref_copy">
5588
+ <xsl:with-param name="target" select="$target"/>
5589
+ </xsl:apply-templates>
5590
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
5591
+ </xsl:otherwise>
5592
+ </xsl:choose>
5593
+ </xsl:when>
5594
+ <xsl:when test="self::* and local-name(.) = 'ul'">
5595
+ <!-- ul -->
5596
+ <xsl:apply-templates select="." mode="index_update"/>
5597
+ </xsl:when>
5598
+ <xsl:otherwise>
5599
+ <xsl:apply-templates select="." mode="xref_copy">
5600
+ <xsl:with-param name="target" select="$target"/>
5601
+ </xsl:apply-templates>
5602
+ <xsl:apply-templates select="following-sibling::node()[1]" mode="process_li_element"/>
5603
+ </xsl:otherwise>
5604
+ </xsl:choose>
5605
+ </xsl:template><xsl:template match="@*|node()" mode="xref_copy">
5606
+ <xsl:param name="target"/>
5607
+ <xsl:copy>
5608
+ <xsl:apply-templates select="@*" mode="xref_copy"/>
5609
+ <xsl:if test="$target != '' and not(xalan:nodeset($bookmark_in_fn)//bookmark[. = $target])">
5610
+ <xsl:attribute name="target"><xsl:value-of select="$target"/></xsl:attribute>
5611
+ </xsl:if>
5612
+ <xsl:apply-templates select="node()" mode="xref_copy"/>
5613
+ </xsl:copy>
5614
+ </xsl:template><xsl:template name="generateIndexXrefId">
5615
+ <xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
5616
+
5617
+ <xsl:variable name="docid">
5618
+ <xsl:call-template name="getDocumentId"/>
5619
+ </xsl:variable>
5620
+ <xsl:variable name="item_number">
5621
+ <xsl:number count="*[local-name() = 'li'][ancestor::*[local-name() = 'indexsect']]" level="any"/>
5622
+ </xsl:variable>
5623
+ <xsl:variable name="xref_number"><xsl:number count="*[local-name() = 'xref']"/></xsl:variable>
5624
+ <xsl:value-of select="concat($docid, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
5625
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'clause']" priority="4">
5626
+ <xsl:apply-templates/>
5627
+ <fo:block>
5628
+ <xsl:if test="following-sibling::*[local-name() = 'clause']">
5629
+ <fo:block> </fo:block>
5630
+ </xsl:if>
5631
+ </fo:block>
5632
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'ul']" priority="4">
5633
+ <xsl:apply-templates/>
5634
+ </xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']" priority="4">
5635
+ <xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
5636
+ <fo:block start-indent="{5 * $level}mm" text-indent="-5mm">
5637
+ <xsl:apply-templates/>
5638
+ </fo:block>
5639
+ </xsl:template><xsl:template match="*[local-name() = 'bookmark']">
5640
+ <fo:inline id="{@id}"/>
5462
5641
  </xsl:template><xsl:template match="*[local-name() = 'errata']">
5463
5642
  <!-- <row>
5464
5643
  <date>05-07-2013</date>
@@ -5677,70 +5856,68 @@
5677
5856
  <xsl:variable name="lang">
5678
5857
  <xsl:call-template name="getLang"/>
5679
5858
  </xsl:variable>
5680
- <fo:declarations>
5681
- <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
5682
- <pdf:dictionary type="normal" key="ViewerPreferences">
5683
- <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
5684
- </pdf:dictionary>
5685
- </pdf:catalog>
5686
- <x:xmpmeta xmlns:x="adobe:ns:meta/">
5687
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
5688
- <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
5689
- <!-- Dublin Core properties go here -->
5690
- <dc:title>
5691
- <xsl:variable name="title">
5692
- <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
5693
-
5694
- <xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
5695
-
5696
-
5697
-
5698
-
5699
-
5700
-
5701
- </xsl:for-each>
5702
- </xsl:variable>
5703
- <xsl:choose>
5704
- <xsl:when test="normalize-space($title) != ''">
5705
- <xsl:value-of select="$title"/>
5706
- </xsl:when>
5707
- <xsl:otherwise>
5708
- <xsl:text> </xsl:text>
5709
- </xsl:otherwise>
5710
- </xsl:choose>
5711
- </dc:title>
5712
- <dc:creator>
5859
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
5860
+ <pdf:dictionary type="normal" key="ViewerPreferences">
5861
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
5862
+ </pdf:dictionary>
5863
+ </pdf:catalog>
5864
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
5865
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
5866
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
5867
+ <!-- Dublin Core properties go here -->
5868
+ <dc:title>
5869
+ <xsl:variable name="title">
5713
5870
  <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
5714
5871
 
5872
+ <xsl:value-of select="*[local-name() = 'title'][@language = $lang and @type = 'main']"/>
5715
5873
 
5716
5874
 
5717
- <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
5718
- <xsl:value-of select="*[local-name() = 'person']/*[local-name() = 'name']/*[local-name() = 'completename']"/>
5719
- <xsl:if test="position() != last()">; </xsl:if>
5720
- </xsl:for-each>
5721
-
5722
- </xsl:for-each>
5723
- </dc:creator>
5724
- <dc:description>
5725
- <xsl:variable name="abstract">
5726
5875
 
5727
- <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
5728
5876
 
5729
5877
 
5730
- </xsl:variable>
5731
- <xsl:value-of select="normalize-space($abstract)"/>
5732
- </dc:description>
5733
- <pdf:Keywords>
5734
- <xsl:call-template name="insertKeywords"/>
5735
- </pdf:Keywords>
5736
- </rdf:Description>
5737
- <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
5738
- <!-- XMP properties go here -->
5739
- <xmp:CreatorTool/>
5740
- </rdf:Description>
5741
- </rdf:RDF>
5742
- </x:xmpmeta>
5743
- </fo:declarations>
5878
+
5879
+ </xsl:for-each>
5880
+ </xsl:variable>
5881
+ <xsl:choose>
5882
+ <xsl:when test="normalize-space($title) != ''">
5883
+ <xsl:value-of select="$title"/>
5884
+ </xsl:when>
5885
+ <xsl:otherwise>
5886
+ <xsl:text> </xsl:text>
5887
+ </xsl:otherwise>
5888
+ </xsl:choose>
5889
+ </dc:title>
5890
+ <dc:creator>
5891
+ <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
5892
+
5893
+
5894
+
5895
+ <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
5896
+ <xsl:value-of select="*[local-name() = 'person']/*[local-name() = 'name']/*[local-name() = 'completename']"/>
5897
+ <xsl:if test="position() != last()">; </xsl:if>
5898
+ </xsl:for-each>
5899
+
5900
+ </xsl:for-each>
5901
+ </dc:creator>
5902
+ <dc:description>
5903
+ <xsl:variable name="abstract">
5904
+
5905
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
5906
+
5907
+
5908
+ </xsl:variable>
5909
+ <xsl:value-of select="normalize-space($abstract)"/>
5910
+ </dc:description>
5911
+ <pdf:Keywords>
5912
+ <xsl:call-template name="insertKeywords"/>
5913
+ </pdf:Keywords>
5914
+ </rdf:Description>
5915
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
5916
+ <!-- XMP properties go here -->
5917
+ <xmp:CreatorTool/>
5918
+ </rdf:Description>
5919
+ </rdf:RDF>
5920
+ </x:xmpmeta>
5744
5921
  </xsl:template><xsl:template name="getId">
5745
5922
  <xsl:choose>
5746
5923
  <xsl:when test="../@id">