(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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--