Hi,
I am building a search engine for my end uses that also would allow them to use XPATH to search the XML files.
I am writing the XSLT and was wondering if I can pass a Parameter to a xsl:if statement?
This returns a TRUE boolean even if its false:
Code:
<xsl:param name="myxpath">//dispatch</xsl:param>
<xsl:for-each select="document($xx)">
<xsl:for-each select="/">
<xsl:variable name="content" select="."/>
<xsl:choose>
<xsl:when test="$myxpath">
<a href="{$mychap}">
<xsl:value-of select="//title"/>
</a>
<br/>
</xsl:when>
</xsl:choose>
</xsl:for-each>
Thanks