xsl-list
[Top] [All Lists]

Re: [xsl] Subsets

2007-04-23 13:21:55
Abel Braaksma wrote:
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).

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).
thanks, it was just psuedo code :) in some scripting languages -1 means last, that's what I meant.

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

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





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



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