metanorma-ogc 2.5.13 → 2.5.14

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: 4bdb1cb3816967b2062649ff5302b034e49b901e667271f5a2fb68973d93f944
4
- data.tar.gz: a1b52199de866f5dd1abe398f334d2d7252251b0e9b263673fec9dfe233da7da
3
+ metadata.gz: 20a42aacc8919672ff6672fba3620817651a5e0e7b6d13dbac7d9d51a7a34bc0
4
+ data.tar.gz: a781bdab6a4550bc6d04f0a3cde51775d6755f680f2d9a22b4dfe65d9e8e5933
5
5
  SHA512:
6
- metadata.gz: 763774f7c6fe8496f5f03f47af1e50836f49351c8fa52cf770a0072efb25bbef6078bbde56b6e05bf0adf7cfd5c12f3d5c9e787e97e882ecf3bcb1c765d23319
7
- data.tar.gz: 1992f2de5d6287300b45438b4030759d78a2bef1f14c62e9d8e848d8f8e22a89fa541bc1029eea82af3697792a16be4e65190cd00a33e11c3cb6af83037caaac
6
+ metadata.gz: e309309936b82e9e266346b7c630f845a9e77269724a31e20e1e29fc5b7ec2aa3a0d906664a67d34398ade90168276d1b66979aad8c46664b39a71a19b0bf868
7
+ data.tar.gz: 358c573ed7cd006c1fc6a25a1b94ea13b47f43a4ba78fb80f934c12c0dd45bab470e9c55d0c699e6d589a69f104b0944b04c17b85a723603d305f4c36014b814
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -7978,18 +7978,33 @@
7978
7978
 
7979
7979
  <xsl:template match="*[local-name()='localityStack']"/>
7980
7980
 
7981
+ <xsl:variable name="pdfAttachmentsList_">
7982
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
7983
+ <attachment filename="{@name}"/>
7984
+ </xsl:for-each>
7985
+ </xsl:variable>
7986
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
7987
+
7981
7988
  <xsl:template match="*[local-name()='link']" name="link">
7989
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
7990
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
7982
7991
  <xsl:variable name="target">
7983
7992
  <xsl:choose>
7984
7993
  <xsl:when test="@updatetype = 'true'">
7985
7994
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
7986
7995
  </xsl:when>
7996
+ <!-- link to the PDF attachment -->
7997
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
7998
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
7999
+ </xsl:when>
8000
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
8001
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
8002
+ </xsl:when>
7987
8003
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
7988
- <!-- link to the PDF attachment -->
7989
8004
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
7990
8005
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
7991
8006
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
7992
- </xsl:when>
8007
+ </xsl:when> -->
7993
8008
  <xsl:otherwise>
7994
8009
  <xsl:value-of select="normalize-space(@target)"/>
7995
8010
  </xsl:otherwise>
@@ -12636,6 +12651,17 @@
12636
12651
  <xsl:copy-of select="."/>
12637
12652
  </xsl:template>
12638
12653
 
12654
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
12655
+ <xsl:copy>
12656
+ <xsl:copy-of select="@*"/>
12657
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
12658
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
12659
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
12660
+ <xsl:value-of select="."/>
12661
+ </xsl:if>
12662
+ </xsl:copy>
12663
+ </xsl:template>
12664
+
12639
12665
  <!-- add @id, mandatory for table auto-layout algorithm -->
12640
12666
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
12641
12667
  <xsl:copy>
@@ -13510,7 +13536,8 @@
13510
13536
  </xsl:when>
13511
13537
  <xsl:otherwise>
13512
13538
  <!-- _{filename}_attachments -->
13513
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
13539
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
13540
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
13514
13541
  <pdf:embedded-file src="{$url}" filename="{@name}"/>
13515
13542
  </xsl:otherwise>
13516
13543
  </xsl:choose>
@@ -6881,18 +6881,33 @@
6881
6881
 
6882
6882
  <xsl:template match="*[local-name()='localityStack']"/>
6883
6883
 
6884
+ <xsl:variable name="pdfAttachmentsList_">
6885
+ <xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']">
6886
+ <attachment filename="{@name}"/>
6887
+ </xsl:for-each>
6888
+ </xsl:variable>
6889
+ <xsl:variable name="pdfAttachmentsList" select="xalan:nodeset($pdfAttachmentsList_)"/>
6890
+
6884
6891
  <xsl:template match="*[local-name()='link']" name="link">
6892
+ <xsl:variable name="target_normalized" select="translate(@target, '\', '/')"/>
6893
+ <xsl:variable name="target_attachment_name" select="substring-after($target_normalized, '_attachments/')"/>
6885
6894
  <xsl:variable name="target">
6886
6895
  <xsl:choose>
6887
6896
  <xsl:when test="@updatetype = 'true'">
6888
6897
  <xsl:value-of select="concat(normalize-space(@target), '.pdf')"/>
6889
6898
  </xsl:when>
6899
+ <!-- link to the PDF attachment -->
6900
+ <xsl:when test="$pdfAttachmentsList//attachment[@filename = current()/@target]">
6901
+ <xsl:value-of select="concat('url(embedded-file:', @target, ')')"/>
6902
+ </xsl:when>
6903
+ <!-- <xsl:when test="starts-with($target_normalized, '_') and contains($target_normalized, '_attachments/') and $pdfAttachmentsList//attachment[@filename = $target_attachment_name]">
6904
+ <xsl:value-of select="concat('url(embedded-file:', $target_attachment_name, ')')"/>
6905
+ </xsl:when>
6890
6906
  <xsl:when test="contains(@target, concat('_', $inputxml_filename_prefix, '_attachments'))">
6891
- <!-- link to the PDF attachment -->
6892
6907
  <xsl:variable name="target_" select="translate(@target, '\', '/')"/>
6893
6908
  <xsl:variable name="target__" select="substring-after($target_, concat('_', $inputxml_filename_prefix, '_attachments', '/'))"/>
6894
6909
  <xsl:value-of select="concat('url(embedded-file:', $target__, ')')"/>
6895
- </xsl:when>
6910
+ </xsl:when> -->
6896
6911
  <xsl:otherwise>
6897
6912
  <xsl:value-of select="normalize-space(@target)"/>
6898
6913
  </xsl:otherwise>
@@ -11514,6 +11529,17 @@
11514
11529
  <xsl:copy-of select="."/>
11515
11530
  </xsl:template>
11516
11531
 
11532
+ <xsl:template match="*[local-name() = 'metanorma-extension']/*[local-name() = 'attachment']" mode="update_xml_step1">
11533
+ <xsl:copy>
11534
+ <xsl:copy-of select="@*"/>
11535
+ <xsl:variable name="name_filepath" select="concat($inputxml_basepath, @name)"/>
11536
+ <xsl:variable name="file_exists" select="normalize-space(java:exists(java:java.io.File.new($name_filepath)))"/>
11537
+ <xsl:if test="$file_exists = 'false'"> <!-- copy attachment content only if file on disk doesnt exist -->
11538
+ <xsl:value-of select="."/>
11539
+ </xsl:if>
11540
+ </xsl:copy>
11541
+ </xsl:template>
11542
+
11517
11543
  <!-- add @id, mandatory for table auto-layout algorithm -->
11518
11544
  <xsl:template match="*[local-name() = 'dl' or local-name() = 'table'][not(@id)]" mode="update_xml_step1">
11519
11545
  <xsl:copy>
@@ -12388,7 +12414,8 @@
12388
12414
  </xsl:when>
12389
12415
  <xsl:otherwise>
12390
12416
  <!-- _{filename}_attachments -->
12391
- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/>
12417
+ <!-- <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath, '_', $inputxml_filename_prefix, '_attachments', '/', @name, ')')"/> -->
12418
+ <xsl:variable name="url" select="concat('url(file:///',$inputxml_basepath , @name, ')')"/>
12392
12419
  <pdf:embedded-file xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf" src="{$url}" filename="{@name}"/>
12393
12420
  </xsl:otherwise>
12394
12421
  </xsl:choose>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "2.5.13".freeze
3
+ VERSION = "2.5.14".freeze
4
4
  end
5
5
  end
@@ -40,4 +40,5 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency "timecop", "~> 0.9"
41
41
  spec.add_development_dependency "vcr", "~> 6.1.0"
42
42
  spec.add_development_dependency "webmock"
43
+ spec.add_development_dependency "xml-c14n"
43
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.13
4
+ version: 2.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: xml-c14n
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
209
223
  description: 'Metanorma for the Open Geospatial Consortium.
210
224
 
211
225
  '