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]

trying to bypass empty elements


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

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