Skip to content

Commit 1426f65

Browse files
xslt update based on metanorma/mn-native-pdf@3cf646a
1 parent c2ef5d9 commit 1426f65

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

lib/isodoc/plateau/plateau.international-standard.xsl

+12-4
Original file line numberDiff line numberDiff line change
@@ -13610,7 +13610,8 @@
1361013610
<xsl:variable name="description" select="normalize-space($bibitem_attachment/*[local-name() = 'formattedref'])"/>
1361113611
<xsl:variable name="filename" select="java:org.metanorma.fop.Util.getFilenameFromPath(@name)"/>
1361213612
<!-- Todo: need update -->
13613-
<xsl:variable name="afrelationship" select="normalize-space($bibitem_attachment//*[local-name() = 'span'][@class = 'pdf-AFRelationship'])"/>
13613+
<xsl:variable name="afrelationship" select="normalize-space($bibitem_attachment//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
13614+
<xsl:variable name="volatile" select="normalize-space($bibitem_attachment//*[local-name() = 'classification'][@type = 'pdf-volatile'])"/>
1361413615

1361513616
<pdf:embedded-file filename="{$filename}" link-as-file-annotation="true">
1361613617
<xsl:attribute name="src">
@@ -13631,6 +13632,9 @@
1363113632
<xsl:if test="$afrelationship != ''">
1363213633
<xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
1363313634
</xsl:if>
13635+
<xsl:if test="$volatile != ''">
13636+
<xsl:attribute name="volatile"><xsl:value-of select="$volatile"/></xsl:attribute>
13637+
</xsl:if>
1363413638
</pdf:embedded-file>
1363513639
</xsl:for-each>
1363613640
<!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
@@ -13641,14 +13645,18 @@
1364113645
<xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
1364213646
<xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
1364313647
<!-- Todo: need update -->
13644-
<xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'span'][@class = 'pdf-AFRelationship'])"/>
13648+
<xsl:variable name="afrelationship" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-AFRelationship'])"/>
13649+
<xsl:variable name="volatile" select="normalize-space(.//*[local-name() = 'classification'][@type = 'pdf-volatile'])"/>
1364513650
<pdf:embedded-file src="{$url}" filename="{$attachment_name}" link-as-file-annotation="true">
1364613651
<xsl:if test="$description != ''">
1364713652
<xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
1364813653
</xsl:if>
1364913654
<xsl:if test="$afrelationship != ''">
13650-
<xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13651-
</xsl:if>
13655+
<xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13656+
</xsl:if>
13657+
<xsl:if test="$volatile != ''">
13658+
<xsl:attribute name="volatile"><xsl:value-of select="$volatile"/></xsl:attribute>
13659+
</xsl:if>
1365213660
</pdf:embedded-file>
1365313661
</xsl:for-each>
1365413662
</xsl:if>

0 commit comments

Comments
 (0)