|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can not store value into xsl:variable
Hi, > I have following xml fragment in my xml .. > <PARAMETERS> > <PARAMETER> > <NAME>ROLE</NAME> > <VALUE>SM</VALUE> > </PARAMETER> > <PARAMETER> > <NAME>ACTION</NAME> > <VALUE>BLOTTER</VALUE> > </PARAMETER> > <PARAMETER> > <NAME>AMOUNT</NAME> > <VALUE></VALUE> > </PARAMETER> > </PARAMETERS> > > I want to store the text node of VALUE tag (into a xsl variable) where > PARAMETERS/PARAMETER/NAME/text()='ROLE' <xsl:variable name="roleVar" select="/OuterTag/InnerTag/PARAMETERS/PARAMETER[NAME = 'ROLE']/VALUE/text()" /> If there is more than one PARAMETER with NAME "ROLE", the $roleVar will be bound to VALUE/text() all of them. Cheers, Jarno -- UnterART: Kill Your Heart
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








