|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Finding the maximun number of nodes
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








