This is a discussion on "using params in xsl IF element" within the Other Programming Languages section. This forum, and the thread "using params in xsl IF element are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
using params in xsl IF element
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
using params in xsl IF element
hi, i want to evaluate the value of a parameter in an IF element, the code goes following which does not work:
+++++++++++++++++++++++++++++++++ <xsl: param name="msgid" /> <xsl:for-each select="//message"> <xsl:if test="@id=$msgid"> ......... processing....... ++++++++++++++++++++++++++++++++ where id is an attribute of all message element in the xml. basically i would like the code to perform certain processing when the message id = the given msgid. hav tried test="@id=[$msgid]", test="[id=$msgid]" all do not work. what should i write here? thanks alot! Last edited by zzqproject; Nov 21st, 2005 at 23:42. |
|
|
![]() |
| Tags |
| using, params, xsl, element |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using an actual variable in function params? | Jack Franklin | PHP Forum | 1 | Mar 11th, 2008 18:06 |
| help on removing element using yui | shotokan99 | JavaScript Forum | 1 | Aug 31st, 2007 13:42 |
| XHTML Block Element in an Inline Element | gohankid77 | Web Page Design | 6 | Jul 27th, 2004 10:15 |