[Home] [By Thread] [By Date] [Recent Entries]
Am 02.08.2022 um 16:10 schrieb Dave Pawson dave.pawson@xxxxxxxxx:
xpath 2 or 3 Given that you say XPath 2 or 3 I assume XSLT 2 or 3 so I would prefer a variable or parameter e.g. <xsl:variable name="sort-index"> <d:entry key="Jan" index="0"/>
<d:entry key="Feb" index="1"/>
<d:entry key="Mar" index="2"/>
<d:entry key="Apr" index="3"/>
<d:entry key="May" index="4"/>
<d:entry key="Jun" index="5"/>
<d:entry key="Jul" index="6"/>
<d:entry key="Aug" index="7"/>
<d:entry key="Sep" index="8"/>
<d:entry key="Oct" index="9"/>
<d:entry key="Nov" index="10"/>
<d:entry key="Dec" index="11"/></xsl:variable> and then a key <xsl:key name="sort-index" match="d:entry" use="@key"/> and then a check on B B key('sort-index', tokenize(d, ' '), $sort-index) or B key('sort-index', tokenize(d, '')[1], $sort-index) and xml with many
|

Cart



