|
Subject: RE: Testing for existence of non-epty description From: Kay Michael <Michael.Kay@xxxxxxx> Date: Fri, 28 Jan 2000 09:30:50 -0000 |
> I'd like to rewrite the template so that the header
> is suppressed if none of the TASK elements have
> real DESCRIPTIONs:
>
> <xsl:tempalte match="TASKS">
> <xsl:if at-at-least-one-TASK-has-a-non-empty-DESCRIPTION>
> <xsl:apply-templates select="TASK" />
> </xsl:if>
> </xsl:template>
>
You could try:
<xsl:strip-space elements="DESCRIPTION"/>
<xsl:tempalte match="TASKS">
<xsl:if test="TASK/DECRIPTION[text()]">
<xsl:apply-templates select="TASK" />
</xsl:if>
</xsl:template>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| XMLDOM behind Proxy Server, Eddy Siauwidjaja | Thread | Instructor-led XSLT/XPath Training , G. Ken Holman |
| Re: Passing xml into a JSP page, Steve Muench | Date | RE: HELP! XT is putting namespaces , Kay Michael |
| Month |