xsl-list
[Top] [All Lists]

Re: [xsl] getting the child element based on attribute

2010-11-12 20:04:39
On Sat, Nov 13, 2010 at 6:14 AM, ram <ram_kurra(_at_)yahoo(_dot_)co(_dot_)in> 
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--