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

Re: increment in xpath

Subject: Re: increment in xpath
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sat, 16 Jul 2005 10:13:22 +1000
xpath increment a variable
On 7/15/05, Dariusz Borowski <d.borowski@xxxxxx> wrote:
>
> Hey there!
>
> Is it possible to build an increment in xsl like in Java?


   XPath is a language designed to be imbedded into
functional/declarative languages.

In functional/declarative languages variables can only be initialised
and their value cannot be changed (re-assigned).

Therefore, it is by design that XPath does not support re-assigning
value to a variable and thus the Java-like (imperative language)
increment style that you most probably were after.

Welcome to a better world!   :o)


Cheers,
Dimitre Novatchev

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.