Subject: Re: [xsl] Subsets From: Robert C Corsaro <rcorsaro@xxxxxxxxxxx> Date: Mon, 23 Apr 2007 16:01:59 -0400 |
It is not possible to assign anything in XSLT. But you can get get a subset in XSLT 2.0 with subsequence($items, $start, $lenght).thanks, it was just psuedo code :) in some scripting languages -1 means last, that's what I meant.
There is no such thing as a subset of [2 ... -1], as -1 is not possible position, they start at 1. And a range can only be positive, i.e.: (1 to 3) instead of (3 to 1) (the latter which will result in an empty sequence).
-- Abel
Robert C Corsaro wrote:Is there a simple way to get a subset of nodes. I'm implementing a stack and want to pop the first node. I'd like to get the subset of [2..-1] and assign it to the next recursion.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Subsets, Abel Braaksma | Thread | [xsl] Testing if all child nodes ma, Mark Anderson |
Re: [xsl] using xsl:message with UT, Manfred Staudinger | Date | Re: [xsl] Subsets, Robert C Corsaro |
Month |