Subject: [xsl] Re: Finding the maximum number of nodes (Redux) From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Wed, 3 Oct 2001 08:16:44 -0700 (PDT) |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Fixed width text output, Mitch C. Amiano | Thread | [xsl] Disable Output escaping - wh, Paul Mortimer |
RE: [xsl] Finding the maximum numbe, McKeever, Marty | Date | Re: [xsl] html output, Guillaume Rousse |
Month |