Re: [xsl] text values of nodes

Subject: Re: [xsl] text values of nodes
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 12 Nov 2002 23:22:18 +0100
count(group[text() = 'abc'])

Regards,

Joerg

Todd Binder wrote:
that works to return the group text value.  Is there a way to count the
number of group text values that equal a certain string?

for example,

<xsl:value-of select="count(group/text()='abc')"
<xsl:value-of select="count(//group/text()[.='abc'])"/>
<xsl:value-of select="count(//group/text()[*='abc'])"/>

none of the above statement does not seem to work [text() doesn't seem to want to do
the string comparison]


is it possible to do the comparison? one of the things I need to do is grab a set of "group" nodes with a certain text value.

- Todd


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


Current Thread