trying to bypass empty elements

Subject: trying to bypass empty elements
From: Cedric Trolez <ctrolez@xxxxxxxxx>
Date: Thu, 23 Nov 2000 13:13:02 +0100
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



Current Thread