xsl-list
[Top] [All Lists]

Re: [xsl] document function cached?

2013-02-07 11:26:19
On 07/02/2013 17:17, Michel Hendriksen wrote:
<xsl:message><xsl:value-of
select="$file-nbn-set/nbn-set/nbn[position()]"/></xsl:message>


a filter of /foo/bar[position()] with a numeric value

is short for the boolean test

 /foo/bar[position()=position()]

so the test is always true.

Also xsl:message has a select attribute so you can use

<xsl:message select="$file-nbn-set/nbn-set/nbn[position()=5]"/>

David

--
google plus: https:/profiles.google.com/d.p.carlisle

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