This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing for an element NOT present
- To: xsl-list at mulberrytech dot com
- Subject: Re: Testing for an element NOT present
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 24 Jul 2000 14:17:57 GMT
- References: <4.3.2.7.2.20000724180731.00b0e790@203.197.60.113>
- Reply-To: xsl-list at mulberrytech dot com
> I want to perform a certain translation only if <element2> is NOT a part of
> the data. For example, I would then spit out a message saying "Element 2
> details are currently not available".
<xsl:if test="not(element2)">
<xsl:message>Element 2 details are currently not available</xsl:message>
</xsl:if>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list