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

Re: getting the child element based on attribute

Subject: Re: getting the child element based on attribute
From: ram <ram_kurra@xxxxxxxxxxx>
Date: Sat, 13 Nov 2010 09:39:48 +0530 (IST)
Re:  getting the child element based on attribute
but i dont want to do any sort of hardcoding over there. 
         my
QM_Mapping.xml will keep on changing depending on  the environment
--- On Sat,
13/11/10, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:

> From: Mukul Gandhi
<gandhi.mukul@xxxxxxxxx>
> Subject: Re:  getting the child element based
on attribute
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Saturday, 13
November, 2010, 7:34 AM
> On Sat, Nov 13, 2010 at 6:14 AM, ram
>
<ram_kurra@xxxxxxxxxxx>
> wrote:
> >     If let us suppose QMName is BRKQM i
need to get
> save it on variable
> >     and based on this i need to take the
QMNumber
> and save it in a variable
> >          similar case with BSKQM as
well.
> 
> If your context node is element "Config-Policy" then the
>
corresponding
> value (as you've specified) of QMNumber can be assigned to
> a
XSLT
> variable as follows,
> 
> <xsl:variable name="qnNumber_val"
select="Policy[QMName
> = 'BRKQM']/QMNumber" />
> 
> 
> 
> 
> -- 
> Regards,
>
Mukul Gandhi
> 
>
--~------------------------------------------------------------------
>
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail:
<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

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.