[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Get the maximum of a set of values

Subject: Re: Get the maximum of a set of values
From: birgit.zimmermann@xxxxxxxxxxxxxxx
Date: Thu, 4 Nov 2004 08:02:58 +0100
org.apache.xml.dtm.ref.dtmnodeiterator.node set
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.