logo       

Re: Template recursion, StackOverflowError, saxon:while a nd variable assig: msg#00086

text.xml.saxon.help

Subject: Re: Template recursion, StackOverflowError, saxon:while a nd variable assignability

On 6/16/05, Roger Kovack <pagan-65eDfwRo+1xeoWH0uzbU5w@xxxxxxxxxxxxxxxx> wrote:
>
>
> Dimitre Novatchev wrote:
> Even in these cases it would probably be a good idea to use
> extension
functions and not to pollute the XSLT language itself.

> Is it possible to use an extension function as a writable variable? If it is
> possible and that doesn't pollute the language, wouldn't that pollute the
> intent of 'no side-effects'? In my application, the side-effects are the
> cause of the majority of bugs although I don't see how to avoid side-effects
> in a transactional application.


There is a reliable way to use and control extension functions with
side effects. Two years ago I implemented the basic elements of a
Monad class in XSLT.

One can use some simple ways to achieve ordering of computations,
however there isn't a convenient syntactic construct (like the Haskell
"do notation) for this in XSLT.

See also an example of "environment" that contains a set of
"variables", the values of which can be modified:


http://www.mulberrytech.com/Extreme/Proceedings/html/2003/Novatchev01/EML2003Novatchev01.html#t3.6


Cheers,
Dimitre Novatchev.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise