string comparison xslt sheet
Posted
by dbomb101
on Stack Overflow
See other posts from Stack Overflow
or by dbomb101
Published on 2010-03-27T14:51:19Z
Indexed on
2010/03/27
14:53 UTC
Read the original article
Hit count: 441
I am trying to compare a value which was grabbed using the get method in a form and then passed into a xslt sheet. I named the string variable passed in browse. I want to check if the variable browse has a string value browse.
the code is below
<xsl:if test="$browse = 'browse' ">
<A>
<xsl:attribute name="href">searchPage.php?search=<xsl:value-of select="$search" />&browseButton=Browse&XML=Xml&page=<xsl:value-of select="number($Page)-1"/>&pagesize=<xsl:value-of select="$PageSize"/></xsl:attribute> <<Prev
</A>
</xsl:if>
© Stack Overflow or respective owner