Subject: Re: [xsl] sum of attribute values From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 1 Jun 2006 00:49:02 +0100 |
in xpath2 you can go sum(col/@width/number(substring-before(.,'in'))) but if using xslt1 you need to either first do a transform that copies the nodes but removes the in then use sum(xx:node-set($x)/col/@width) or use a recursive named template that accumulates the sum "by hand" rather than using the sum function. (The FXSL library will have lots of these should you not choose to write one yourself) David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] sum of attribute values, SINGH Navpreet | Thread | Re: [xsl] sum of attribute values, Dimitre Novatchev |
Re: [xsl] Creating a TOC where Alph, David Carlisle | Date | Re: [xsl] sum of attribute values, Dimitre Novatchev |
Month |