This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using Attribute in a Predicate
- From: "Vasu Chakkera" <vasucv at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 30 Jul 2002 15:33:36 +0000
- Subject: Re: [xsl] Using Attribute in a Predicate
- Reply-to: xsl-list at lists dot mulberrytech dot com
<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@yahoo.com>
Reply-To: xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
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