xsl-list
[Top] [All Lists]

Re: increment in xpath

2005-07-15 17:13:22
On 7/15/05, Dariusz Borowski <d(_dot_)borowski(_at_)web(_dot_)de> 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

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