Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 3rd, 2006, 07:45 AM
Registered User
 
Join Date: Aug 2006
Location: Boston, Boston, USA.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Global Variable

Hi All,
  I would like to store value into a variable at a global level.
1) The data required is present in my database and hence i contact java to get the data using xalan extensions.
2) Once nodelist retrieved, i store it in a variable using <xsl:variable>
3) All the other templates including the above has access to the global variable defined.

My question is, say if 5 people try to access , i want to avoid the call to java which fetches the value. Basically, <xsl:variable name="something" value="something"/> should be executed only once in the entire application.

Is there is a way to achive it ?

Thanks.

Free


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
comapring global variable value to local variable amhicraig XSLT 6 December 5th, 2007 12:16 PM
global variable melvik C# 37 March 2nd, 2005 02:07 PM
global variable? milk_vanilla Classic ASP Basics 3 January 8th, 2005 06:50 PM
global variable in c# kobystud C# 3 April 22nd, 2004 05:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.