This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Checking for existence
- To: xsl-list at mulberrytech dot com
- Subject: Re: Checking for existence
- From: Warren Hedley <w dot hedley at auckland dot ac dot nz>
- Date: Fri, 30 Jun 2000 09:31:14 -0400
- CC: alex chang <shortestpath at hotmail dot com>
- Organization: Department of Engineering Science, The University of Auckland
- References: <20000630122236.48190.qmail@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
alex chang wrote:
>
> What I want to do is to print the text of all the children of <row-header>,
> but only if <st-header> does not exist. So in the above, I would -not- print
> anything. Is there a way to do this?
Hi Alex
<xsl:template match="row-header">
<xsl:if test="not(st-header) or normalize-space(st-header)=''">
<xsl:apply-templates select="*[not(self::st-header)]" />
</xsl:if>
</xsl:template>
Something in here should do what you want!
--
Warren Hedley
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list