This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How do you test for "if something exists" using <xsl:if>


How do I express "if x exists"

ie.  if the value of the parameter "x" exists

<xsl:if test="{$x}">
	....	
</xsl:if>

__________________________________________

and what about multiple tests?

ie if the value of "x" exists && the value of "y" exists && the value of "z"
exists

<xsl:if test="{$x && $y && $z}">
	....	
</xsl:if>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]