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

Re: RE: Variable: true or false

Subject: Re: RE: Variable: true or false
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 10 Apr 2001 22:59:00 +0100
making variables true
Hi David,

> Of course this only matters because xsl:message is unique in XSL of
> having a side effect (making a message) so by putting xsl:message
> inside variables like that, you get to find out when and how often a
> processor (re-)evaluates a variable binding.

And it's not only the side effect of sending a message to stderr
that's an issue, it's the fact that the terminate attribute can
actually stop the transformation at that point, which makes it fairly
important.

There are places in XSLT that specify whether a particular part of the
code is evaluated or not (like the content of an xsl:when, which is
useful/important when you have extension functions). Just it doesn't
seem that the setting of a variable-binding element is one of them.

It looks like right now a variable's content is evaluated when it's
bound rather than when it's used. Surely this will become an issue
when/if processors start optimising (so that variable values are only
evaluated if they're used) or using parallel processing?

Lawks.

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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