On 9/13/05, Agnisys Technology (P) Ltd. <agnisys(_at_)yahoo(_dot_)com> wrote:
Or using FXSL:
<xsl:value-of select=
"f:foldl(f:add(),
0,
f:zipWith(f:mult(),/*/*/@price, /*/*/@qty)
)"/>
Wow! I didn't even know about FXSL. This seems to have the conciseness I was
looking for.
I'll have to reseach it more.
Unlike FXSLT for XSLT 1.0, FXSL for XSLT 2.0 hasn't yet been
described in an article, but there are some good descriptions of its
use in this list. For a good example see:
http://www.xslt.com/html/xsl-list/2005-01/msg00521.html
Also, the latest version is available only in the CVS at
sourceforge.net. In case you need it, please, let me know and I'd be
happy to send you a zip archive.
Probably I should issue an intermediate release. The problem is that
there are so many nice things that can be done yet, that it is easy to
postpone a new release for years.
Cheers,
Dimitre Novatchev
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--