xmlns:exslstr="http://exslt.org/strings"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:html="&xhtml;"
+ xmlns:ladys="https://vocab.ladys.computer/terms/"
xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
<variable name="identifier" select="exslstr:tokenize($IDENTIFIER, '/')[last()-1]"/>
<for-each select="html:article">
<variable name="title" select="html:footer[@class='head']//html:dt[normalize-space()='TITLE']/following-sibling::html:dd"/>
+ <variable name="order" select="number(html:footer[@class='head']//html:dt[normalize-space()='ORDER']/following-sibling::html:dd)"/>
<element name="awol:Category">
<apply-templates select="@lang|@xml:lang"/>
<attribute name="rdf:nodeID">
<value-of select="$title"/>
</attribute>
</if>
+ <if test="$order!=number('NaN')">
+ <element name="ladys:order">
+ <attribute name="rdf:datatype">
+ <text>&xsd;integer</text>
+ </attribute>
+ <value-of select="$order"/>
+ </element>
+ </if>
</element>
</for-each>
</template>
<template match="html:div[html:article/@data-lesml-profile='urn:fdc:ladys.computer:20240204:Caudex:pf:entry']">
<for-each select="html:article">
<variable name="title" select="html:footer[@class='head']//html:dt[normalize-space()='TITLE']/following-sibling::html:dd"/>
+ <variable name="order" select="number(html:footer[@class='head']//html:dt[normalize-space()='ORDER']/following-sibling::html:dd)"/>
<variable name="idstring" select="string(exslstr:tokenize($IDENTIFIER, '/')[last()])"/>
<element name="ore:Proxy">
<if test="$title">
<value-of select="exslstr:tokenize($IDENTIFIER, '/')[last()-1]"/>
</attribute>
</element>
+ <if test="$order!=number('NaN')">
+ <element name="ladys:order">
+ <attribute name="rdf:datatype">
+ <text>&xsd;integer</text>
+ </attribute>
+ <value-of select="$order"/>
+ </element>
+ </if>
<element name="skos:notation">
<attribute name="rdf:datatype">
<text>&xsd;string</text>