|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sum and substring xpath needed
Hi all, Please can someone give me the xpath that will sum() the following values into the select attribute of a variable (ie not a rtf). <colspec colwidth="38mm"/> <colspec colwidth="22mm"/> <colspec colwidth="26mm"/> <colspec colwidth="43mm"/> so something like: <xsl:variable name="total" select="sum(substring-before(//tgroup/colspec/@colwidth,'mm'))"/> ..this obviously fails because sum() requires a node-set and the substring functions return strings, but you get the idea. I dont think its possible to do in a single select but you never know, hopefully there's some trick available. cheers andrew --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








