[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: (How) can I randomly access the result of a <xsl:for-each select="...?
From: Ferdinand Soethe <xsl-list@xxxxxxxxxx>
Date: Sat, 15 Oct 2005 12:15:15 +0200
> 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

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member