[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 21:59:53 +0530 (IST)
Re:  getting the child element based on attribute
I am getting empty values for these two elements

--- On Sat, 13/11/10,
Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> wrote:

> From: Brandon
Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
> Subject: Re:  getting the
child element based on attribute
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date:
Saturday, 13 November, 2010, 11:29 AM
> On Fri, Nov 12, 2010 at 6:44 PM, ram
>
<ram_kurra@xxxxxxxxxxx>
> wrote:
> > Here is my xml file
> >
> >
<Config-Policy>
> >   <Policy QMName="BRKQM">
> >      <QMNumber>01</QMNumber>
> >   </Policy>
> >   <Policy QMName="BSKQM">
> >      <QMNumber>02</QMNumber>
> >   </Policy>
> > </Config-Policy>
> >
> > Here is my xsl
> >
> >
<xsl:template match="/">
> >        <xsl:variable name="qmName"
> >          
   
>  select="dp:variable('var://context/MYMQMD/QMName')" />
> >      
 <xsl:variable name="config"        
>            
>
select="document('local:///QM_Mapping.xml')" />
> >
> >      <xsl:variable
name="configQMName"
> >        
>
 select="$config/Config-Policy/Policy[@QMName=$qmName]"
> />
> >      
 <xsl:variable name="qmNumber"
> select="$configQMName/QMNumber" />
> >
</xsl:template>
> >
> >    But i am getting nothing from these variables.
> >
        Can any one suggest how should i proceed
> on this
> 
> The last two
variables look fine, but "qmName" and "config"
> have some
> pretty
non-standard-looking expressions in their "select"
> attributes.
> What values
are you getting in those variables?
> 
> -Brandon :)
> 
>
--~------------------------------------------------------------------
>
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.