Skip to content

Commit 4e53b45

Browse files
xslt update based on metanorma/mn-native-pdf@b9d8e50
1 parent 619afce commit 4e53b45

File tree

1 file changed

+74
-17
lines changed

1 file changed

+74
-17
lines changed

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

+74-17
Original file line numberDiff line numberDiff line change
@@ -13393,6 +13393,39 @@
1339313393
</pdf:catalog>
1339413394
<x:xmpmeta xmlns:x="adobe:ns:meta/">
1339513395
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
13396+
<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="">
13397+
<pdfaExtension:schemas>
13398+
<rdf:Bag>
13399+
<rdf:li rdf:parseType="Resource">
13400+
<pdfaSchema:namespaceURI>http://www.aiim.org/pdfua/ns/id/</pdfaSchema:namespaceURI>
13401+
<pdfaSchema:prefix>pdfuaid</pdfaSchema:prefix>
13402+
<pdfaSchema:schema>PDF/UA identification schema</pdfaSchema:schema>
13403+
<pdfaSchema:property>
13404+
<rdf:Seq>
13405+
<rdf:li rdf:parseType="Resource">
13406+
<pdfaProperty:category>internal</pdfaProperty:category>
13407+
<pdfaProperty:description>PDF/UA version identifier</pdfaProperty:description>
13408+
<pdfaProperty:name>part</pdfaProperty:name>
13409+
<pdfaProperty:valueType>Integer</pdfaProperty:valueType>
13410+
</rdf:li>
13411+
<rdf:li rdf:parseType="Resource">
13412+
<pdfaProperty:category>internal</pdfaProperty:category>
13413+
<pdfaProperty:description>PDF/UA amendment identifier</pdfaProperty:description>
13414+
<pdfaProperty:name>amd</pdfaProperty:name>
13415+
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
13416+
</rdf:li>
13417+
<rdf:li rdf:parseType="Resource">
13418+
<pdfaProperty:category>internal</pdfaProperty:category>
13419+
<pdfaProperty:description>PDF/UA corrigenda identifier</pdfaProperty:description>
13420+
<pdfaProperty:name>corr</pdfaProperty:name>
13421+
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
13422+
</rdf:li>
13423+
</rdf:Seq>
13424+
</pdfaSchema:property>
13425+
</rdf:li>
13426+
</rdf:Bag>
13427+
</pdfaExtension:schemas>
13428+
</rdf:Description>
1339613429
<rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">
1339713430
<!-- Dublin Core properties go here -->
1339813431
<dc:title>
@@ -13403,33 +13436,57 @@
1340313436

1340413437
</xsl:for-each>
1340513438
</xsl:variable>
13406-
<xsl:choose>
13407-
<xsl:when test="normalize-space($title) != ''">
13408-
<xsl:value-of select="$title"/>
13409-
</xsl:when>
13410-
<xsl:otherwise>
13411-
<xsl:text> </xsl:text>
13412-
</xsl:otherwise>
13413-
</xsl:choose>
13439+
<rdf:Alt>
13440+
<rdf:li xml:lang="x-default">
13441+
<xsl:choose>
13442+
<xsl:when test="normalize-space($title) != ''">
13443+
<xsl:value-of select="$title"/>
13444+
</xsl:when>
13445+
<xsl:otherwise>
13446+
<xsl:text> </xsl:text>
13447+
</xsl:otherwise>
13448+
</xsl:choose>
13449+
</rdf:li>
13450+
</rdf:Alt>
1341413451
</dc:title>
13415-
<dc:creator>
13452+
<xsl:variable name="dc_creator">
1341613453
<xsl:for-each select="(//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']">
1341713454

13418-
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13419-
<xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13420-
<xsl:if test="position() != last()">; </xsl:if>
13421-
</xsl:for-each>
13455+
<rdf:Seq>
13456+
<xsl:for-each select="*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']">
13457+
<rdf:li>
13458+
<xsl:value-of select="*[local-name() = 'organization']/*[local-name() = 'name']"/>
13459+
</rdf:li>
13460+
<!-- <xsl:if test="position() != last()">; </xsl:if> -->
13461+
</xsl:for-each>
13462+
</rdf:Seq>
1342213463

1342313464
</xsl:for-each>
13424-
</dc:creator>
13425-
<dc:description>
13465+
</xsl:variable>
13466+
<xsl:if test="normalize-space($dc_creator) != ''">
13467+
<dc:creator>
13468+
<xsl:copy-of select="$dc_creator"/>
13469+
</dc:creator>
13470+
</xsl:if>
13471+
13472+
<xsl:variable name="dc_description">
1342613473
<xsl:variable name="abstract">
1342713474

1342813475
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
1342913476

1343013477
</xsl:variable>
13431-
<xsl:value-of select="normalize-space($abstract)"/>
13432-
</dc:description>
13478+
<rdf:Alt>
13479+
<rdf:li xml:lang="x-default">
13480+
<xsl:value-of select="normalize-space($abstract)"/>
13481+
</rdf:li>
13482+
</rdf:Alt>
13483+
</xsl:variable>
13484+
<xsl:if test="normalize-space($dc_description)">
13485+
<dc:description>
13486+
<xsl:copy-of select="$dc_description"/>
13487+
</dc:description>
13488+
</xsl:if>
13489+
1343313490
<pdf:Keywords>
1343413491
<xsl:call-template name="insertKeywords">
1343513492
<xsl:with-param name="meta">true</xsl:with-param>

0 commit comments

Comments
 (0)