Subject: Re: Finding the maximun number of nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 5 Jan 2001 12:10:24 GMT
|
> <xsl:if test="count(//table[@ID='2']/tr[count(td) >
> count(current()/td)]) = 0">
It's (almost?) always better to use
test="not(xxx)" rather than test="count(xxx)=0"
Unless your XSL system is particularly smart, the count() version
will force it to find every such node, so they can be counted,
but the not() version will allow it to stop after it finds the
first one.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: Finding the maximun number of nodes, (continued)
- Dimitre Novatchev - Fri, 5 Jan 2001 03:27:12 -0500 (EST)
- Dimitre Novatchev - Fri, 5 Jan 2001 04:48:08 -0500 (EST)
- Kay Michael - Fri, 5 Jan 2001 05:32:24 -0500 (EST)
- Dimitre Novatchev - Fri, 5 Jan 2001 06:43:23 -0500 (EST)
- David Carlisle - Fri, 5 Jan 2001 07:11:02 -0500 (EST) <=
- Jeni Tennison - Fri, 5 Jan 2001 07:55:11 -0500 (EST)
- Kay Michael - Fri, 5 Jan 2001 09:23:04 -0500 (EST)
- Clapham, Paul - Fri, 5 Jan 2001 11:57:22 -0500 (EST)
- Dimitre Novatchev - Fri, 5 Jan 2001 16:38:59 -0500 (EST)
|
|