Subject: Re: getting the child element based on attribute
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Sat, 13 Nov 2010 07:34:03 +0530
|
On Sat, Nov 13, 2010 at 6:14 AM, ram <ram_kurra@xxxxxxxxxxx> wrote:
> B B If let us suppose QMName is BRKQM i need to get save it on variable
> B B and based on this i need to take the QMNumber and save it in a
variable
> B B B B B 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
|