[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Param redirection
Subject: RE: [xsl] Param redirection
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 17:49:05 -0400
|
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
|