xsl-list
[Top] [All Lists]

Re: text values of nodes

2002-11-12 15:22:18
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



<Prev in Thread] Current Thread [Next in Thread>