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

Xpath3 method for concisely getting position of rangin

Subject: Xpath3 method for concisely getting position of ranging variable in FOR expression?
From: David Rudel <fwqhgads@xxxxxxxxx>
Date: Fri, 14 Mar 2014 16:53:26 +0100
 Xpath3 method for concisely getting position of rangin
In Xpath2, there was no super-concise method of extracting the
position of a ranging variable in a for expression.

For example, in the expression "for $i in $seq return [expression]",
you could not use $i/position() to give you the position of $i.

Instead you had to rewrite as "for $n in 1 to count($seq)"... and then
use $n or $seq[$n] as needed.

I'm writing to ask whether there is any new method in Xpath3 that
provides a more concise method of referencing the position of a bound
range variable.

-David

-- 

"A false conclusion, once arrived at and widely accepted is not
dislodged easily, and the less it is understood, the more tenaciously
it is held." - Cantor's Law of Preservation of Ignorance.

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.