[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] document function cached?

Subject: Re: [xsl] document function cached?
From: "Michel Hendriksen" <michel.hendriksen@xxxxxxxxx>
Date: Thu, 7 Feb 2013 21:54:03 +0100

But position() would return a number and it seems such an obvious way to use it as an index...

Nice btw to use the select on a message, saves some typing!

----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Cc: "Michel Hendriksen" <michel.hendriksen@xxxxx>
Sent: Thursday, February 07, 2013 18:26 PM
Subject: Re: [xsl] document function cached?

On 07/02/2013 17:17, Michel Hendriksen wrote:

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

is short for the boolean test


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]"/>


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

Current Thread