Re: [xsl] text values of nodes

Subject: Re: [xsl] text values of nodes
From: "todd binder" <todd_binder@xxxxxxxxxxx>
Date: Tue, 12 Nov 2002 17:04:50 -0500
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')"

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?

- Todd

----- Original Message -----
From: "Ritu" <rkama@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 12, 2002 4:47 PM
Subject: Re: [xsl] text values of nodes


> Use
> <xsl:value-of select="group/text()"/>
>
> It should return "abc"
>
> Ritu
>
> ----- Original Message -----
> From: "Todd Binder" <todd_binder@xxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Tuesday, November 12, 2002 3:33 PM
> Subject: [xsl] text values of nodes
>
>
> >
> > I have some XML (unfortunately I did not generate it, else I would have
> > created it in a manner that was easier to transform) that is extremely
> > nested, and am having problems extracting elements of it vis XSL
> >
> > can I grab just the group value (abc)?
> >
> > when I try to grab <xsl:value-of select="group"/> I get back all the
> values
> > contained within the entire GROUP node (abc 8873 X32 20020430 C 6 P)
> >
> > is there a way to work with this poorly formed XML?
> >
> >
> > <group>abc
> >     <key>8873
> >         <idcode>X32
> >             <date>20020430
> >                 <rectype>C
> >                     <IST>6</IST>
> >                     <PRIMISS>P</PRIMISS>
> >                 </rectype>
> >             </date>
> >         </idcode>
> >     </key>
> > </group>
> >
> > Todd Binder
> > todd_binder@xxxxxxxxxxx
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > MSN 8 with e-mail virus protection service: 2 months FREE*
> > http://join.msn.com/?page=features/virus
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>

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


Current Thread