Re: [xsl] Using Attribute in a Predicate

Subject: Re: [xsl] Using Attribute in a Predicate
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 30 Jul 2002 15:33:36 +0000
<xsl:value-of
select="//Script/Group[@Grp]/Desc/@Name"/>---- I
doesnt mean
<xsl:value-of
select="//Script/Group[0]/Desc/@Name"/>---- II

I get nothing.
But if I hard code the value in the predicate like
<xsl:value-of select="//Script/Group[0]/Desc/@Name"/>
I get something back. Is there something I am missing
here?

Its a bit not clear as to what you want..and what you are getting?? In the first Case you are tryin to get the Group that has a Grp attribute..

In second case you are tryin to get the Group at the position 0??????

It would be wiser if you can tell us what your requirement is..

From: Kuhns Matt <kuhns_m@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Using Attribute in a Predicate
Date: Tue, 30 Jul 2002 07:40:19 -0700 (PDT)

Whenever I do something like this:
<xsl:value-of
select="//Script/Group[@Grp]/Desc/@Name"/>
I get nothing.
But if I hard code the value in the predicate like
<xsl:value-of select="//Script/Group[0]/Desc/@Name"/>
I get something back. Is there something I am missing
here?
Thanks in Advance
Matt

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



Current Thread