|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Only output element when parameter value is not eq
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)" >....
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






