This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Finding the maximum number of nodes (Redux)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Re: Finding the maximum number of nodes (Redux)
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Wed, 3 Oct 2001 08:16:44 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I hate to resurrect this thread from
> http://www.biglist.com/lists/xsl-list/archives/200101/threads.html#00151
> but someone on another list asked a very similar question recently, to which
> i thought "you should be able to do that with XPath".
>
> The question was "how to determine the number of columns in a table, to
> create the correct colspan='x' for a header?"
See:
http://sources.redhat.com/ml/xsl-list/2001-01/msg00354.html
One can also use a generic max() template for every possible max() problem:
http://www.vbxml.com/downloads/default.asp?id=v2001611171627
The "one XPath expression solution" is O(N x N) complex and should not be used for
large N-s.
Cheers,
Dimitre Novatchev.
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list