OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
using params in xsl IF element
This page's ID:
27036
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
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!
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »