Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: what is? [Thread Next] Re: what is?To: NULL Date: 7/13/2006 12:46:00 AM Arman, Global variables/parameters are declared outside of any template, as children of xsl:stylesheet or xsl:transform element. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger www.---.com Arman Sahakyan (donotspam) wrote: > HI, > > I cannot understand how to declare a global variable/parameter whereas > in XSL they must be placed inside templates (I think of templates as > functions). > Isn't it? > > Thanks > > -- > ====== > Arman > > > "George Bina" wrote: > > > Hi, > > > > For global parameters you may specify values externally while for > > global variables you cannot do that. > > Both parameters and variables are immutable so you cannot change their > > value, their value is specified where they are declared. Global > > parameters/variables are visible in any template. > > > > Best Regards, > > George > > --------------------------------------------------------------------- > > George Cristian Bina > > <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger > > www.---.com > > > > bloctext wrote: > > > what is the difference between a variable and a parameter? > > > > > > how do i define a global variable/parameter, initalise it in one > > > template, and utilise this value in another? > > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
