Hi Wolfgang,
your solution sounds good.
But using the FOP 0.20.5 I get the following error:
java.lang.NoSuchMethodException: For extension function, could not find method
org.apache.xml.dtm.ref.DTMNodeIterator.node-set([ExpressionContext,] ).
Thanks,
Birgit
Quoting "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>:
> -----BEGIN PGP SIGNED MESSAGE-----
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> ~ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> ~ xmlns:exsl="http://exslt.org/common"
> ~ xmlns:math="http://exslt.org/math"
> ~ extension-element-prefixes="math exsl">
>
> ~ <xsl:template match='/'>
> ~ <xsl:variable name='numbers'>
> ~ <xsl:for-each select="index/entry">
> ~ <xsl:variable name="vXML" select='concat(xml,".xml")'/>
> ~ <NUMBER><xsl:value-of
> select="document($vXML)/entry/item/@number" /></NUMBER>
> ~ </xsl:for-each>
> ~ </xsl:variable>
>
> ~ <xsl:value-of select='math:max(exsl:node-set($numbers)/NUMBER)'/>
>
> ~ </xsl:template>
> </xsl:stylesheet>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
|