xsl-list
[Top] [All Lists]

Re: How do I get a SUM of the string-length of all child nodes ??

2005-05-28 19:42:34
Hi Dimitre,
  What does map function do? Please explain what does
sum(f:map(f:string-length(), /*/node())) mean .. 

I am keen to use FXSL ..

Regards,
Mukul

--- Dimitre Novatchev <dnovatchev(_at_)gmail(_dot_)com> wrote:

Assuming we want to get the sum of string-lengths of
all child nodes
of the top node,

using FXSL one would write:

           sum(f:map(f:string-length(), /*/node()))


Cheers,
Dimitre Novatchev.


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

--~------------------------------------------------------------------
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>
--~--