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: 406

Filed under:
|

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" />&amp;browseButton=Browse&amp;XML=Xml&amp;page=<xsl:value-of select="number($Page)-1"/>&amp;pagesize=<xsl:value-of select="$PageSize"/></xsl:attribute> &lt;&lt;Prev
        </A>
         </xsl:if>

© Stack Overflow or respective owner

Related posts about xslt

Related posts about php