[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



