Topic: using params in xsl IF element (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 11-22-2005 01:14
hi, i want to evaluate the value of a parameter in an IF element, the code goes following which does not work: |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 11-22-2005 16:04
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: <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>
|
Maniac (V) Inmate From: there...no..there..... |
posted 11-30-2005 03:29
quote:
|