Re: Checking for existence

Subject: Re: Checking for existence
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Fri, 30 Jun 2000 09:31:14 -0400
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)]" />

Something in here should do what you want!

Warren Hedley

 XSL-List info and archive:

Current Thread