something messed my content
i meant just use $attribute
u need "@" only when referring to an attribute directly
From: vasucv(_at_)hotmail(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Thu, 28 Aug 2008 10:40:01 +0000
Subject: RE: [xsl] Using variables in xpath attribute matches
Once the attribute value is assigned to a variable, then it is just another
variable with some value. it doesnt matter if the value was initially an
attribute or an element etc..
so
would be
Date: Thu, 21 Aug 2008 10:07:02 -0700
From: reachmatt(_dot_)lee(_at_)gmail(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Using variables in xpath attribute matches
Hi,
I have the following template:
I would like to use the value of the attribute parameter passed into
this template as the attribute match expression in the inner most
select. But I am quite confused as to what the syntax is for doing
this. For instance, given this XML,
I would like to invoke the get_attribute template as follows:
name="attribute>attrib1
name="attribute>attrib2
I have tried the following syntaxes, with no success. The parser gives
syntax errors.
Everything works fine, if I directly key in the attribute name:
and so on.
Am I trying to do something really stupid? Please advise. It sounds
like it would be useful to construct the xpath expression via
variables.
matt
--~------------------------------------------------------------------
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:
--~--
--~------------------------------------------------------------------
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:
--~--
--~------------------------------------------------------------------
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>
--~--