This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
trying to bypass empty elements
- To: xsl-list at mulberrytech dot com
- Subject: trying to bypass empty elements
- From: Cedric Trolez <ctrolez at evoke dot com>
- Date: Thu, 23 Nov 2000 13:13:02 +0100
- Reply-To: xsl-list at mulberrytech dot com
Hi all,
just a simple question:
How can I bypass an empty element:
<xsl:template match="/">
blahblah.....
....
<xsl:apply-templates select="elmt"/>
</xsl:template>
<xsl:template match="elmt">
<h2>elmt: </h2>
<xsl:apply-templates/>
</xsl:template>
I want to do something like this on the <elmt> element but only if there is
some data / subelement in it!
Thanks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list