[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Subsets

Subject: Re: Subsets
From: Robert C Corsaro <rcorsaro@xxxxxxxxxxx>
Date: Mon, 23 Apr 2007 16:01:59 -0400
Re:  Subsets
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.