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

RE: how to select attribute value based on another attribute

Subject: RE: how to select attribute value based on another attribute valu e?
From: "Selva, Francis" <Francis.Selva@xxxxxxxxxxxxxxx>
Date: Thu, 13 Apr 2000 13:22:42 -0700
select attribute values
David,how can I make 2 values to display if both the conditions are true.For
eg:

 <xsl:value-of select="COLUMN[@NAME='DRG_CODE' or
@NAME='DRG_DESC']/@VALUE"/>

This gives me just the VALUE attribute for NAME='DRG_CODE'.I know that it
uses "or" only to check the condition and not to display.But is there any
other way other than splitting this condition into 2 different lines?.What I
need(Actually this was someone else's question and I was trying my hand on
it) is to display both VALUE attributes for NAME=DRG_CODE and NAME=DRG_DESC.


Francis






*****************************************************
The woods are lovely,dark and deep.         
But I have promises to keep,                      
And miles to go before I sleep                   
And miles to go before I sleep.                   
*****************************************************



> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
 
> 
> 
> [@NAME='CHARGES' or @NAME='COST' ]
> 
> David
 


 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.