13610
13610
<xsl:variable name="description" select="normalize-space($bibitem_attachment/*[local-name() = 'formattedref'])"/>
13611
13611
<xsl:variable name="filename" select="java:org.metanorma.fop.Util.getFilenameFromPath(@name)"/>
13612
13612
<!-- 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'])"/>
13614
13615
13615
13616
<pdf:embedded-file filename="{$filename}" link-as-file-annotation="true">
13616
13617
<xsl:attribute name="src">
13631
13632
<xsl:if test="$afrelationship != ''">
13632
13633
<xsl:attribute name="afrelationship"><xsl:value-of select="$afrelationship"/></xsl:attribute>
13633
13634
</xsl:if>
13635
+ <xsl:if test="$volatile != ''">
13636
+ <xsl:attribute name="volatile"><xsl:value-of select="$volatile"/></xsl:attribute>
13637
+ </xsl:if>
13634
13638
</pdf:embedded-file>
13635
13639
</xsl:for-each>
13636
13640
<!-- references to external attachments (no binary-encoded within the Metanorma XML file) -->
@@ -13641,14 +13645,18 @@
13641
13645
<xsl:variable name="url" select="concat('url(file:///',$basepath, $attachment_path, ')')"/>
13642
13646
<xsl:variable name="description" select="normalize-space(*[local-name() = 'formattedref'])"/>
13643
13647
<!-- 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'])"/>
13645
13650
<pdf:embedded-file src="{$url}" filename="{$attachment_name}" link-as-file-annotation="true">
13646
13651
<xsl:if test="$description != ''">
13647
13652
<xsl:attribute name="description"><xsl:value-of select="$description"/></xsl:attribute>
13648
13653
</xsl:if>
13649
13654
<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>
13652
13660
</pdf:embedded-file>
13653
13661
</xsl:for-each>
13654
13662
</xsl:if>
0 commit comments