xsl-list
[Top] [All Lists]

Re: (How) can I randomly access the result of a <xsl:for-each select="...?

2005-10-15 03:15:15

The resulting node set contains a single
node, the root of a tree (it's like "/" in a source document). So count()
will give 1. To count the ul elements, you need to do
count(xx:node-set($fragment/*))

Thanks, Michael, for pointing me to the obvious '/'. That solved my problem and 
my
weekend. Have a nice one too.

--
Ferdinand Soethe


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--