RE: [xsl] Deciding a parameter name dynamically

Subject: RE: [xsl] Deciding a parameter name dynamically
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 22 Apr 2003 14:27:21 +0100
> I would like to know how to refer to the xsl parameter whose name is 
> itself given in either another parameter or a node value.  

You can't. XSLT isn't that kind of [reflexive, introspective] language.

Probably instead of passing three parameters called X, Y, and Z, you
need to pass one parameter that's a tree with X, Y, and Z subelements.
Then you can access the elements of the tree using path expressions.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread