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
In the future block out your code using the UBB code tags. It will make it easier to look at your code. [code] <xsl:param name="msgid"/> <xsl:for-each select="//message"> <xsl:if test="@id=$msgid"> ... </xsl:if> </xsl:for-each> [/code] This should do what you want. What could be happenning is that your values are not the same. Maybe you have additional white space or something in there. Maybe try [code] <xsl:param name="msgid"/> <xsl:for-each select="//message"> <xsl:choose> <xsl:when test="@id=$msgid"> ... <xsl:when> <xsl:otherwise> <p>id's are not equal<br/> @id : <xsl:value-of select="@id"/> $msgid : <xsl:value-of select="$msgid"/></p> </xsl:otherwise> </xsl:choose> </xsl:for-each> [/code] Dan @ [url=http://www.codetown.org]Code Town[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »