Re: [xsl] selecting all but first node

Subject: Re: [xsl] selecting all but first node
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Fri, 26 May 2006 15:31:48 -0500
On 5/26/06, Gerritjan Koekkoek <gerritjankoekkoek@xxxxxxx> wrote:
   <xsl:template match="persoonsgegevens[1]">
...
</xsl:template>

I would like to treat all other nodes differently...
   <xsl:template match="persoonsgegevens[?]">
...
</xsl:template>

remember, according to the docs persoonsgegevens[1] is really short for persoonsgegevens[position() = 1]

hence

position() != 1?
position() <> 1?
not(position() = 1)
position() > 1 ?

one of these would probably do depending more on your need.

See http://www.w3.org/TR/xpath#path-abbrev

Jon Gorman

Current Thread