using params in xsl IF element

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 21st, 2005, 23:12
New Member
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

Reply

Tags
using, params, xsl, element

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 21:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43