This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Boolean XPath Expression and sum
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Boolean XPath Expression and sum
- From: Ingo Schildmann <ingoschi at web dot de>
- Date: Wed, 9 May 2001 17:02:58 +0200
- References: <00a801c0d896$e12b28d0$d6a8a8c0@monsterdaata.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@web.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list