Subject: Re: [xsl] increment in xpath From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 18 Jul 2005 11:58:00 -0400 |
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, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] increment in xpath, Dimitre Novatchev | Thread | [xsl] del.icio.us script, iwantto keepanon |
Re: [xsl] Outputing Differences bet, David Carlisle | Date | Re: [xsl] Process Children Before P, Stuart Jansen |
Month |