Subject: Re: [xsl] Finding the maximun number of nodes From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Fri, 5 Jan 2001 00:27:03 -0800 (PST) |
Actually even simpler: count(//tr[not(key('numCells', count(td) + 1))]/td) --- Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote: > Use: > > <xsl:key name="numCells" match="tr" use="count(td)"/> > > <xsl:template name="maxCols"> > <xsl:for-each select="//tr[not(key('numCells', count(td) + 1))]"> > > <xsl:value-of select="count(td)"/> > </xsl:for-each> > </xsl:template> __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Finding the maximun numbe, Jeni Tennison | Thread | Re: [xsl] Finding the maximun numbe, Dimitre Novatchev |
Re: [xsl] Finding the maximun numbe, Dimitre Novatchev | Date | [xsl] Re: topological sort, Joerg Pietschmann |
Month |