Re: Local-Global Variable help
> (xsl:template match="fields[descendant::field[utils:endsWith(@id, > $var)]]") Apart from the fact that $var has gone out of scope, in XSLt1 you can not use a variable (or parameter) in a match pattern, even global variables. However it doesn't look like you need a variable here. It appears that you want $var to be the value attribute of a field element, and want to test for that in a matching template on field, but you don't need a variable there, just use the attribute directly xsl:template match="fields[descendant::field[utils:endsWith(@id,@value)]]" David
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format