[Home] [By Thread] [By Date] [Recent Entries]
Chris Coyle wrote:
exists() is an XPath 2 function, you use an XPath/XSLT 1 parser. But even if you weren't, it is not the right thing to do, exists($param) will always return true(), with one exception, when the variable returns an empty sequence: <xsl:param name="myparam" select="()" /> or <xsl:param name="myparam" select="/.." /> then this yields false: <xsl:if test="exists($myparam)" >.... However, with: <xsl:param name="myparam" select=" '' " /> or <xsl:param name="myparam" select="0" /> or <xsl:param name="myparam" /> then this yields true: <xsl:if test="exists($myparam)" >....
|

Cart



