[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: conditionally accessing attribute value of the sam

Subject: Re: conditionally accessing attribute value of the same node
From: Lauren Blau Halverson <lauren_halverson@xxxxxxx>
Date: Thu, 28 Jun 2001 12:09:08 -0400
sra.com 703 list name
Yogesh wrote:
> 
you need to include the test in your value-of
<xsl:value-of select="//choice/action[@type='accept']/@imodetask" />
> Hi All,
> I am facing problem when I am conditionally accessing attribute value of the
> same node.
> My Code is like this:
> 
> <choice name="news" key="type">
>         <action type="soft1" task="go" label="CBSMW" taskid="20"></action>
>       <action type="accept" task="go" label="Go" taskid="21"></action>
>                 -News-
>                 <ce value="rt.asp">RealTime Headlines</ce>
>                     <ce value="mp.asp">MarketPulse</ce>
>                     <ce value="tn.asp">Ticker News</ce>
> </choice>
> 
> In My XSL I check for action node for type = accept.If I get that action
> node then I want to access its taskid.But I am not able to access it.The
> code which is used for this actually gives me taskid for the other action
> node(first node of type soft1)
> XSLT code: This is part of <xsl:choose>
> 
>         <xsl:when test="//choice/action/@type[.='accept']">
>                 <xsl:value-of select="//choice/action/@imodetask" />
>         </xsl:when>
> 
> Here after applying this XSL I get taskid for action type=accept as 20 and
> not 21.
> 
> Please advice where I am wrong.
> 
> Thanx in advance.
> Yogesh.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
Lauren Blau Halverson       
SRA, Inc.                                        (703) 502-1285
4300 Fair Lakes Court FS-5                       
lauren_halverson@xxxxxxx 
Fairfax, VA 22033-4232                           http://www.sra.com
						 fax: (703) 803-1793

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.