Subject: Re: [xsl] Get the maximum of a set of values From: birgit.zimmermann@xxxxxxxxxxxxxxx Date: Thu, 4 Nov 2004 08:02:58 +0100 |
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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Get the maximum of a set , Werner, Wolfgang | Thread | RE: [xsl] Get the maximum of a set , Babos, Andras |
RE: [xsl] Get the maximum of a set , birgit . zimmermann | Date | RE: [xsl] SVG Polyline Question?, Jarno.Elovirta |
Month |