[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Count a substring of an attribute in childnodes
David C. wrote: ... so you should get <Output>count(number(colspec[contains(@colwidth,'*')]/substring-before(@colwidth,'*')))</Output> ... Ah, yes I can see why this would be so. I used <xsl:value-of select="number($total-colwidth)"/> which gave me the NaN output. Dimitre, Thank you for the reply. I am afraid that I am not much for extension programmes for XSL. Last time I tried getting EXSLT to work with my developing environment, I had to reinstall everything. At the moment I prefer XSL only solutions until a time comes when I have more time to look into such. I will save your solution for that later time, though. Thank you both. I can see from this that the count function is not that efficient in XSL ver. 1.0. Regards, Ragulf Pickaxe :-) _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|
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
|