Subject: Re: [xsl] variable attribute value From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 29 Mar 2008 22:30:44 +0100 |
Is there a way to set the value of the attribute fro ma variable ?
for example:
<xsl:variable name="var" select="@name" /> <xsl:apply-template select="someTag[@attr='$var'] />
I am trying it and it's not working. When I remove the variable $var and specify a value, it works fine.
I tried using {$var}. Nothing worked.
Any ideas ?
-- Upcoming: UBL Apr.22,24; genericode code lists Apr.23; Rome,Italy World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] variable attribute value, Mansour | Thread | Re: [xsl] variable attribute value, Mansour |
[xsl] variable attribute value, Mansour | Date | Re: [xsl] variable attribute value, Mansour |
Month |