[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Retriving attribute value using variable.
--- Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> wrote: > >>>>> "Arul" == Arulraj <p_arulraj@xxxxxxxxx> > writes: > > Arul> Hi, thanks for reply. My requirement is > different. I have a > Arul> some string in searchAttribute like > attribute1 or attribute2 > Arul> or any string. > > Arul> I have to use that string as attribute > selection in XSL. > > Arul> <xsl:variable > Arul> > name="searchAttribute">attribute1</xsl:variable> > > Arul> (or) > > Arul> <xsl:variable > Arul> > name="searchAttribute">attribute2</xsl:variable> > > Arul> Here searchAttribute value comes as a > string. > > But where is it coming from? > > You showed it to us in the same stylesheet that you > wanted to > change. So change the xsl:variable. sorry, this String value comes from the another XML file. <xsl:variable name="searchAttribute"><xsl:value-of select="$FormatTmp/OODesign/format/@value"/></xsl:variable> The result value will be "attribute1" etc. Regards, Arul > -- > Colin Adams > Preston Lancashire > > __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail
|
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
|