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