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

Re: question about identity transform

Subject: Re: question about identity transform
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Nov 2006 16:28:32 GMT
Re:  question about identity transform
> I haven't implemented an XSLT processor, but when is this distinction 
> even useful, in practice?

In practice the processing order is externally visible as soon as you
put xsl:message in any template (or call an extension function with side
effects) The messages can (and sometimes do) come out in surprising orders,
especially with respect to variable evaluation.

More generally I often find it useful when replying on this list to
stress that processing order is undefined, as it's one way of explaining
why variables can not be re-bound. People coming from imperative
programming languages often see this as an arbitrary, even bizarre,
restriction imposed on the language, but once you understand the
underlying processing model of a declarative language you'll see that
this behaviour of variables is a natural and necessary feature of the
language. Also that some declarative languages that do offer imperative
features such as variable assignment can only do so by breaking (or at
least straining) the underlying model, which usually leads to a rather
more fragile programming environment. Of course this line of reasoning
helps with some people and not with others, some people (perfectly
reasonably) just want to know what the rules are, without being swamped
in abstract programming language theory.


Current Thread


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.
First Name
Last Name
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.