Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] question about identity transform

From: David Carlisle <davidc@--------->
To:
Date: 11/2/2006 4:29:00 PM
> 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.

David


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent