xsl-list
[Top] [All Lists]

Re: [xsl] document function cached?

2013-02-08 15:31:40
On Thu, 2013-02-07 at 18:17 +0100, Michel Hendriksen wrote:
[...]<xsl:value-of
select="$file-nbn-set/nbn-set/nbn[position()]

The predicate is evaluated for each node in the list.
So, $file-nbn-set/nbn-set/nbn gives a list (for you) of 3 nodes.
For the first one, position() will be 1.
For the second one, position() will be 2.
For the third one, position() will be 3.
The predicate will be non-zero in each case, and hence taken to be true,
so all three results are taken.

I don't know what you were expecting so I'm not sure why this is weird.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>