xsl-list
[Top] [All Lists]

RE: Variable creation and scoping

2003-04-16 00:11:22
I want to create a number of variables from an external 
document in order to transform a different XML file, but the 
way that I thought to accomplish this was using for-each to 
cycle through the elements in the external document doesn't 
accomplish what I want because the variables seem to only 
exist within the for-each.

I suspect that creating "a number of variables" in this case is the
wrong approach. Create a single variable whose value is an XML tree, and
access the components of the tree using path expressions.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>