[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

Subject: Re: Count a substring of an attribute in childnodes
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 09 Mar 2005 12:26:38 +0000
xsl count 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/


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.