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

Re: Read the data only once.

Subject: Re: Read the data only once.
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 9 Apr 2002 00:39:41 -0700 (PDT)
extract data turbotax software
>	In my xsl I have a global varaible which caluculates and holds 
> some data.

A variable cannot calculate data. You probably meant something else.


> I am using that variable from all over the xsl. I am making calls to 
> named templates while creating the variable. Each time I call the 
> varialbe, 

A variable cannot be called -- it is just referenced.

> that named templates are being called to extract the value.

How do you know that? This is the first time somebody mentions that an
XSLT processor will re-evaluate a global xsl:variable every time it's
being referenced. Could some of the XSLT processors developers say if
this is meaningful at all?


> I need a different behaviour here. In my case that variable remains
> constant through out the xsl. So I want to calculate the variable 
> only once. Is there a easy way to implement this.

In case the xsl:variable is really declared globally (it is a child of
the xsl:stylesheet element), then there's no reason why it should be
continuously re-evaluated.

If what you describe is true, it sounds extremely strange. Probably you
didn't describe the problem precisely enough? Which XSLT processor are
you using?

Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.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-2011 All Rights Reserved.