metanorma-iec 2.5.1 → 2.5.3

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: 00d1e56afb7f66bfb86d1e6c57b54a28a11c9cfc3990a9796cd30b4a54a24ee4
4
- data.tar.gz: 654de21e8c76671f7d0e2ec201089860300c4e57099646c50d815bbb1f6b8d94
3
+ metadata.gz: 8e601a61dd0a3359b2038225f9fb50dacfb48d0a26b9f2f16337810f893d2553
4
+ data.tar.gz: 718a96b97e8bf3ed54ef8d3c9b64569c77fca701d412fef1a1534629e16d4cac
5
5
  SHA512:
6
- metadata.gz: aa7ed1d60eac6a24d07e112ad842967400d388bed1f8d0572c6e3d9fba1cbc167c203170384c35fa2be059e9ac4c756b3b3b46af9385db38d2fd46e52f085040
7
- data.tar.gz: 98ffd97be8b513b64aa71c96ec90fda073ab41ab577dda5dd107f5759794c4bb97008decf9cddb46b16c80aef1e51c203534a2e59feadeb2d7bdd1d217fbc62a
6
+ metadata.gz: 41d137d1d2de28c1cbca08ee2ffc683e3e3ea87d7ff9ca81c0ab270206bf8e309b9bde6a64d40a615f3edecbd57fbd2d89fda105bd5b9d98ce9e5808da281d84
7
+ data.tar.gz: dfe35f7ed429283b59142e1f19ff892d2a65908bdb85be257f33cd9c726376dd08e5444dfd66d42518949ade2b057cbd281193e53c85500a807d5aa423a61a64
@@ -239,7 +239,7 @@ h6:hover > a.anchor,
239
239
  background-color: #777;
240
240
  color: white;
241
241
  cursor: pointer;
242
- padding: 12px 0;
242
+ padding: 3px 0;
243
243
  margin: 0;
244
244
  width: 100%;
245
245
  border: none;
@@ -10,16 +10,10 @@ title: Title
10
10
  proposed_stability_date: PROPOSED STABILITY DATE
11
11
  tc_sc_note: Note from TC/SC officers
12
12
  term_def_boilerplate: |
13
- <p>ISO and IEC maintain terminological databases for use in
14
- standardization at the following addresses:</p>
13
+ ISO and IEC maintain terminological databases for use in standardization at the following addresses:
15
14
 
16
- <ul>
17
- <li> <p>IEC Electropedia: available at
18
- <link target="http://www.electropedia.org"/>
19
- </p> </li>
20
- <li> <p>ISO Online browsing platform: available at
21
- <link target="http://www.iso.org/obp"/></p> </li>
22
- </ul>
15
+ * IEC Electropedia: available at http://www.electropedia.org[]
16
+ * ISO Online browsing platform: available at http://www.iso.org/obp[]
23
17
  doctype_dict:
24
18
  international-standard: International Standard
25
19
  technical-specification: Technical Specification
@@ -10,16 +10,12 @@ title: Titre
10
10
  proposed_stability_date: DATE DE STABILITÉ PROPOSÉE
11
11
  tc_sc_note: Note des officiers TC/SC
12
12
  term_def_boilerplate: |
13
- <p>L'ISO et l'IEC tiennent à jour des bases de données terminologiques
14
- destinées à être utilisées en normalisation, consultables aux adresses
15
- suivantes:</p>
16
- <ul>
17
- <li> <p>IEC Electropedia: disponible à l'adresse
18
- <link target="http://www.electropedia.org"/>
19
- </p> </li>
20
- <li> <p>ISO Online browsing platform: disponible à l'adresse
21
- <link target="http://www.iso.org/obp"/></p> </li>
22
- </ul>
13
+ L'ISO et l'IEC tiennent à jour des bases de données terminologiques
14
+ destinées à être utilisées en normalisation, consultables aux adresses
15
+ suivantes:
16
+
17
+ * IEC Electropedia: disponible à l'adresse http://www.electropedia.org[]
18
+ * ISO Online browsing platform: disponible à l'adresse http://www.iso.org/obp[]
23
19
  doctype_dict:
24
20
  international-standard: Norme internationale
25
21
  technical-specification: Spécification technique
@@ -7,11 +7,7 @@ title: 标题
7
7
  proposed_stability_date: 建议的稳定日期
8
8
  tc_sc_note: TC/SC 官员的说明
9
9
  term_def_boilerplate: |
10
- <p>ISO和IEC用于标准化的术语数据库地址如下:</p>
11
- <ul>
12
- <li> <p>IEC Electropedia:
13
- 位于<link target="http://www.electropedia.org"/>
14
- </p> </li>
15
- <li> <p>ISO在线浏览平台:
16
- 位于<link target="http://www.iso.org/obp"/></p></li>
17
- </ul>
10
+ ISO和IEC用于标准化的术语数据库地址如下:
11
+
12
+ * IEC Electropedia: 位于{blank}http://www.electropedia.org[]
13
+ * ISO在线浏览平台: 位于{blank}http://www.iso.org/obp[]
@@ -8413,6 +8413,12 @@
8413
8413
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
8414
8414
  <attachment filename="{@name}"/>
8415
8415
  </xsl:for-each>
8416
+ <xsl:if test="not(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
8417
+ <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
8418
+ <xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
8419
+ <attachment filename="{$attachment_path}"/>
8420
+ </xsl:for-each>
8421
+ </xsl:if>
8416
8422
  </xsl:variable>
8417
8423
  <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
8418
8424
 
@@ -8425,7 +8431,7 @@
8425
8431
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
8426
8432
  </xsl:when>
8427
8433
  <!-- link to the PDF attachment -->
8428
- <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
8434
+ <xsl:when test="@attachment = 'true' and $pdfAttachmentsList//attachment[@filename = current()/@target]">
8429
8435
  <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
8430
8436
  </xsl:when>
8431
8437
  <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
@@ -9076,7 +9082,16 @@
9076
9082
  </xsl:variable>
9077
9083
  <xsl:variable name="img_src">
9078
9084
  <xsl:choose>
9079
- <xsl:when test="not(starts-with(@src, 'data:'))"><xsl:value-of select="concat($basepath, @src)"/></xsl:when>
9085
+ <xsl:when test="not(starts-with(@src, 'data:'))">
9086
+ <xsl:choose>
9087
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
9088
+ <xsl:value-of select="@src"/>
9089
+ </xsl:when>
9090
+ <xsl:otherwise>
9091
+ <xsl:value-of select="concat($basepath, @src)"/>
9092
+ </xsl:otherwise>
9093
+ </xsl:choose>
9094
+ </xsl:when>
9080
9095
  <xsl:otherwise><xsl:value-of select="@src"/></xsl:otherwise>
9081
9096
  </xsl:choose>
9082
9097
  </xsl:variable>
@@ -9089,7 +9104,7 @@
9089
9104
  <!-- <xsl:message>width_effective=<xsl:value-of select="$width_effective"/></xsl:message>
9090
9105
  <xsl:message>indent_left=<xsl:value-of select="$indent_left"/></xsl:message>
9091
9106
  <xsl:message>image_width_effective=<xsl:value-of select="$image_width_effective"/> for <xsl:value-of select="ancestor::ogc:p[1]/@id"/></xsl:message> -->
9092
- <xsl:variable name="scale" select="java:org.metanorma.fop.Util.getImageScale($img_src, $image_width_effective, $height_effective)"/>
9107
+ <xsl:variable name="scale" select="java:org.metanorma.fop.utils.ImageUtils.getImageScale($img_src, $image_width_effective, $height_effective)"/>
9093
9108
  <xsl:value-of select="$scale"/>
9094
9109
  </xsl:template>
9095
9110
 
@@ -9108,7 +9123,14 @@
9108
9123
  <xsl:value-of select="concat('url(file:///',$basepath, $src_png, ')')"/>
9109
9124
  </xsl:when>
9110
9125
  <xsl:when test="not(starts-with(@src, 'data:'))">
9111
- <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
9126
+ <xsl:choose>
9127
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
9128
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
9129
+ </xsl:when>
9130
+ <xsl:otherwise>
9131
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
9132
+ </xsl:otherwise>
9133
+ </xsl:choose>
9112
9134
  </xsl:when>
9113
9135
  <xsl:otherwise>
9114
9136
  <xsl:value-of select="@src"/>
@@ -9130,7 +9152,14 @@
9130
9152
  </xsl:when>
9131
9153
  <xsl:when test="not(starts-with(@src, 'data:'))">
9132
9154
  <xsl:variable name="src">
9133
- <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
9155
+ <xsl:choose>
9156
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
9157
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
9158
+ </xsl:when>
9159
+ <xsl:otherwise>
9160
+ <xsl:value-of select="concat('url(file:///',$basepath, @src, ')')"/>
9161
+ </xsl:otherwise>
9162
+ </xsl:choose>
9134
9163
  </xsl:variable>
9135
9164
  <xsl:variable name="file" select="java:java.io.File.new(@src)"/>
9136
9165
  <xsl:variable name="bufferedImage" select="java:javax.imageio.ImageIO.read($file)"/>
@@ -13884,6 +13913,39 @@
13884
13913
  </pdf:catalog>
13885
13914
  <x:xmpmeta xmlns:x="adobe:ns:meta/">
13886
13915
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
13916
+ <rdf:Description xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" rdf:about="">
13917
+ <pdfaExtension:schemas>
13918
+ <rdf:Bag>
13919
+ <rdf:li rdf:parseType="Resource">
13920
+ <pdfaSchema:namespaceURI>http://www.aiim.org/pdfua/ns/id/</pdfaSchema:namespaceURI>
13921
+ <pdfaSchema:prefix>pdfuaid</pdfaSchema:prefix>
13922
+ <pdfaSchema:schema>PDF/UA identification schema</pdfaSchema:schema>
13923
+ <pdfaSchema:property>
13924
+ <rdf:Seq>
13925
+ <rdf:li rdf:parseType="Resource">
13926
+ <pdfaProperty:category>internal</pdfaProperty:category>
13927
+ <pdfaProperty:description>PDF/UA version identifier</pdfaProperty:description>
13928
+ <pdfaProperty:name>part</pdfaProperty:name>
13929
+ <pdfaProperty:valueType>Integer</pdfaProperty:valueType>
13930
+ </rdf:li>
13931
+ <rdf:li rdf:parseType="Resource">
13932
+ <pdfaProperty:category>internal</pdfaProperty:category>
13933
+ <pdfaProperty:description>PDF/UA amendment identifier</pdfaProperty:description>
13934
+ <pdfaProperty:name>amd</pdfaProperty:name>
13935
+ <pdfaProperty:valueType>Text</pdfaProperty:valueType>
13936
+ </rdf:li>
13937
+ <rdf:li rdf:parseType="Resource">
13938
+ <pdfaProperty:category>internal</pdfaProperty:category>
13939
+ <pdfaProperty:description>PDF/UA corrigenda identifier</pdfaProperty:description>
13940
+ <pdfaProperty:name>corr</pdfaProperty:name>
13941
+ <pdfaProperty:valueType>Text</pdfaProperty:valueType>
13942
+ </rdf:li>
13943
+ </rdf:Seq>
13944
+ </pdfaSchema:property>
13945
+ </rdf:li>
13946
+ </rdf:Bag>
13947
+ </pdfaExtension:schemas>
13948
+ </rdf:Description>
13887
13949
  <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
13888
13950
  <!-- Dublin Core properties go here -->
13889
13951
  <dc:title>
@@ -13894,33 +13956,57 @@
13894
13956
 
13895
13957
  </xsl:for-each>
13896
13958
  </xsl:variable>
13897
- <xsl:choose>
13898
- <xsl:when test="normalize-space($title) != ''">
13899
- <xsl:value-of select="$title"/>
13900
- </xsl:when>
13901
- <xsl:otherwise>
13902
- <xsl:text> </xsl:text>
13903
- </xsl:otherwise>
13904
- </xsl:choose>
13959
+ <rdf:Alt>
13960
+ <rdf:li xml:lang="x-default">
13961
+ <xsl:choose>
13962
+ <xsl:when test="normalize-space($title) != ''">
13963
+ <xsl:value-of select="$title"/>
13964
+ </xsl:when>
13965
+ <xsl:otherwise>
13966
+ <xsl:text> </xsl:text>
13967
+ </xsl:otherwise>
13968
+ </xsl:choose>
13969
+ </rdf:li>
13970
+ </rdf:Alt>
13905
13971
  </dc:title>
13906
- <dc:creator>
13972
+ <xsl:variable name="dc_creator">
13907
13973
  <xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
13908
13974
 
13909
- <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13910
- <xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13911
- <xsl:if test="position() != last()">; </xsl:if>
13912
- </xsl:for-each>
13975
+ <rdf:Seq>
13976
+ <xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13977
+ <rdf:li>
13978
+ <xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13979
+ </rdf:li>
13980
+ <!-- <xsl:if test="position() != last()">; </xsl:if> -->
13981
+ </xsl:for-each>
13982
+ </rdf:Seq>
13913
13983
 
13914
13984
  </xsl:for-each>
13915
- </dc:creator>
13916
- <dc:description>
13985
+ </xsl:variable>
13986
+ <xsl:if test="normalize-space($dc_creator) != ''">
13987
+ <dc:creator>
13988
+ <xsl:copy-of select="$dc_creator"/>
13989
+ </dc:creator>
13990
+ </xsl:if>
13991
+
13992
+ <xsl:variable name="dc_description">
13917
13993
  <xsl:variable name="abstract">
13918
13994
 
13919
13995
  <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
13920
13996
 
13921
13997
  </xsl:variable>
13922
- <xsl:value-of select="normalize-space($abstract)"/>
13923
- </dc:description>
13998
+ <rdf:Alt>
13999
+ <rdf:li xml:lang="x-default">
14000
+ <xsl:value-of select="normalize-space($abstract)"/>
14001
+ </rdf:li>
14002
+ </rdf:Alt>
14003
+ </xsl:variable>
14004
+ <xsl:if test="normalize-space($dc_description)">
14005
+ <dc:description>
14006
+ <xsl:copy-of select="$dc_description"/>
14007
+ </dc:description>
14008
+ </xsl:if>
14009
+
13924
14010
  <pdf:Keywords>
13925
14011
  <xsl:call-template name="insertKeywords">
13926
14012
  <xsl:with-param name="meta">true</xsl:with-param>
@@ -13935,26 +14021,37 @@
13935
14021
  </x:xmpmeta>
13936
14022
  <!-- add attachments -->
13937
14023
  <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
13938
- <xsl:choose>
13939
- <xsl:when test="normalize-space() != ''">
13940
- <xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'(&#13;&#10;|&#13;|&#10;)', '')"/> <!-- remove line breaks -->
13941
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$src_attachment}" filename="{@name}"/>
13942
- </xsl:when>
13943
- <xsl:otherwise>
13944
- <!-- _{filename}_attachments -->
13945
- <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13946
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13947
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
13948
- </xsl:otherwise>
13949
- </xsl:choose>
14024
+ <xsl:variable name="description" select="normalize-space(//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment'] = current()/@name]/*[local-name() = 'formattedref'])"/>
14025
+
14026
+ <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" filename="{@name}">
14027
+ <xsl:attribute name="src">
14028
+ <xsl:choose>
14029
+ <xsl:when test="normalize-space() != ''">
14030
+ <xsl:variable name="src_attachment" select="java:replaceAll(java:java.lang.String.new(.),'(&#13;&#10;|&#13;|&#10;)', '')"/> <!-- remove line breaks -->
14031
+ <xsl:value-of select="$src_attachment"/>
14032
+ </xsl:when>
14033
+ <xsl:otherwise>
14034
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
14035
+ <xsl:value-of select="$url"/>
14036
+ </xsl:otherwise>
14037
+ </xsl:choose>
14038
+ </xsl:attribute>
14039
+ <xsl:if test="$description != ''">
14040
+ <xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
14041
+ </xsl:if>
14042
+ </pdf:embedded-file>
13950
14043
  </xsl:for-each>
13951
14044
  <!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
13952
14045
  <xsl:if test="not(//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment'])">
13953
14046
  <xsl:for-each select="//*[local-name() = 'bibitem'][@hidden = 'true'][*[local-name() = 'uri'][@type = 'attachment']]">
13954
14047
  <xsl:variable name="attachment_path" select="*[local-name() = 'uri'][@type = 'attachment']"/>
13955
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, $attachment_path, ')')"/>
13956
- <xsl:variable name="filename_embedded" select="substring-after($attachment_path, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
13957
- <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{$filename_embedded}"/>
14048
+ <xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
14049
+ <xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
14050
+ <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{$attachment_path}">
14051
+ <xsl:if test="$description != ''">
14052
+ <xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
14053
+ </xsl:if>
14054
+ </pdf:embedded-file>
13958
14055
  </xsl:for-each>
13959
14056
  </xsl:if>
13960
14057
  </xsl:template> <!-- addPDFUAmeta -->
@@ -14332,7 +14429,14 @@
14332
14429
  <xsl:value-of select="$src"/>
14333
14430
  </xsl:when>
14334
14431
  <xsl:otherwise>
14335
- <xsl:value-of select="concat('url(file:///',$basepath, $src, ')')"/>
14432
+ <xsl:choose>
14433
+ <xsl:when test="@extracted = 'true'"> <!-- added in mn2pdf v1.97 -->
14434
+ <xsl:value-of select="concat('url(file:///', @src, ')')"/>
14435
+ </xsl:when>
14436
+ <xsl:otherwise>
14437
+ <xsl:value-of select="concat('url(file:///',$basepath, $src, ')')"/>
14438
+ </xsl:otherwise>
14439
+ </xsl:choose>
14336
14440
  </xsl:otherwise>
14337
14441
  </xsl:choose>
14338
14442
  </xsl:template>