Can you please try this on the latest version of Xalan and, if it's
still a problem add detailed information to Bugzilla?

Thanks,
Gary

> -----Original Message-----
> From: Ryan Howe [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 27, 2001 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: Global Variables across Multiple Transformations
> 
> 
> Hello,
> 
> I am using Xalan 2.2D10 and am instantiating a
> Transformer object and using it to perform multiple 
> transformations. I loop through a Vector of Document object 
> creating a new DOMSource object each time and transfom it. 
> 
> My stylesheet contains a global variable declaration
> setting the value of the variable to the result of an
> XPath statement.
> 
> The problem I am encountering is that the variable is
> set to the value which results from the XPath
> statement during the first transformation. All the
> rest of the my transformations then inherit the value
> of the global variable from the first transformation.
> Is this expected behavior? I would expect the global
> variable to be set for each transformation instead of
> across all transformations the Transformer performs. 
> 
> If I make the variable a local variable, it is
> computed for each transformation but then I will need
> to pass multiple variables to many templates which is
> what I am trying to avoid.
> 
> Any information would be appreciated.
> 
> Thank You....
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online! http://greetings.yahoo.com
> 

Reply via email to