Thanks very much for your help.
I have tried, but still can't get it to work for the Track. The position and
Histogram attributes are perfect.
I have the luxury of also conrtolling the source xml document, so, after
seeing how relatively easy it was to get the attribute values to work, I
have changed the design so that the Track is also an attribute. I have gone
through all the progarms and structures and accomplished that (Thank
goodness for global edit and replace functions). Now I can cleanly redesign
the templates.
----- Original Message -----
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, February 27, 2006 6:14 PM
Subject: RE: [xsl] constructing a "variable" select argument
I have this statement:
<xsl:copy-of select="/Report/TrackT1/Position[(_at_)position='Left
Front']/MCHistogram[(_at_)id='1']/svg:svg"/>
However, the TrackT1 part of the expression can also change -
to TrackT2,
TrackT3, Track5-18, etc, taking on various values.
/Report/*[name()=$param]/Position
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
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--