Re: [xsl] Retriving attribute value using variable.

Subject: Re: [xsl] Retriving attribute value using variable.
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Sun, 21 Aug 2005 23:50:36 -0700 (PDT)
--- 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 

Current Thread