xsl-list
[Top] [All Lists]

Re: constructing a "variable" select argument

2006-02-27 14:10:36
Yes!!

Thank you, Florent and MK.
This will probably simplify my stylesheet by at least a factor of 10.
It is a gotcha.

There is one remaining wrinkle I could use you help with.

I have this statement:
<xsl:copy-of select="/Report/TrackT1/Position[(_at_)position='Left Front']/MCHistogram[(_at_)id='1']/svg:svg"/>

The position and id attributes can change, and I can handle that as in the earlier case.

However, the TrackT1 part of the expression can also change - to TrackT2, TrackT3, Track5-18, etc, taking on various values.

Assuming I bring a parameter into the template, and possibly use concatenation functions, how can I establish the right value in the middle of the XPath expression?

----- Original Message ----- From: "Florent Georges" <darkman_spam(_at_)yahoo(_dot_)fr>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, February 27, 2006 2:29 PM
Subject: Re: [xsl] constructing a "variable" select argument


Tracey Zellmann wrote:

However, this does not:
after calling the template with
<xsl:with-param name="track" select="T1"/>

 You're selecting here element nodes that are childs of the context
node and whose name is 'T1'.  But I wonder if you don't want the string
'T1' instead:

   <xsl:with-param name="track" select="'T1'"/>

(note the additional quotes).

 Regards,

--drkm


























___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.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>
--~--