[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Boolean XPath Expression and sum
From: Ingo Schildmann <ingoschi@xxxxxx>
Date: Wed, 9 May 2001 17:02:58 +0200
On Wednesday 09 May 2001 16:46, you wrote:
> Hello List,
> I was wondering if anyone knew a way to either
> 1. Include a test for content within a template match statement, something
> like:
> <xsl:template match="abuncha/thing !='N/A'">

XPath's predicates are doing this job:

<xsl:template match="abundcha/thing[. !='N/A']">

> OR
> 2. Include a test for content within sum() , something like:
> <xsl:value-of select="sum(//thing !='N/A')"/>

<xsl:value-of select="sum(//thing[. != 'N/A']"/>

Ingo

-- 
Ingo Schildmann                                                   
ingoschi@xxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member