RE: [xsl] constructing a "variable" select argument

Subject: RE: [xsl] constructing a "variable" select argument
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 23:14:36 -0000
> I have this statement:
> <xsl:copy-of select="/Report/TrackT1/Position[@position='Left 
> Front']/MCHistogram[@id='1']/svg:svg"/>
> However, the TrackT1 part of the expression can also change - 
> to TrackT2, 
> TrackT3, Track5-18, etc, taking on various values.


if the variation is more than a change of name then in XSLT you can invoke a
function here:

/Report/f:find-track(., $param)/Position

Michael Kay

Current Thread