xsl-list
[Top] [All Lists]

Re: Count a substring of an attribute in childnodes

2005-03-09 05:26:38
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/


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