[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] getting the child element based on attribute
Subject: Re: [xsl] getting the child element based on attribute From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> Date: Fri, 12 Nov 2010 23:59:41 -0600 |
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 :)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] getting the child element, ram | Thread | Re: [xsl] getting the child element, ram |
Re: [xsl] getting the child element, ram | Date | Re: [xsl] removing crlf character w, Brandon Ibach |
Month |