David,
The more general scenario you imagine is also possible, although not
supported in a single pass (dynamic variable names being a lot to ask
from a processor). That is, Mukul's solution will work for simple
cases, but maybe you have many possibilities -- say your first param
is not $a_or_b but rather $a_through_x ... and the list will expand.
In such cases, you could have a two-step process in which the value
of a parameter or variable used in one stylesheet could be configured
before it is run by generating its declaration out of a different stylesheet.
This is all because XSLT stylesheets are themselves XML documents.
Cheers,
Wendell
--~------------------------------------------------------------------
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>
--~--