Connecting Tech Pros Worldwide Forums | Help | Site Map

XSLT query

Cnu
Guest
 
Posts: n/a
#1: Aug 27 '08
Hi

I am using XSLT to transfor XML to HTML.

I have an XSLT variable , $PAGELINK. I need to specify this value as
an href attribute value of <atag.

something like <a href = $PAGELINKClick me for new page </a>. This
is not working for me. $PAGELINK is treated as a text by XSLT engine.

I request your help to do this.


Thanks
Srinivas.


Martin Honnen
Guest
 
Posts: n/a
#2: Aug 27 '08

re: XSLT query


Cnu wrote:
Quote:
I am using XSLT to transfor XML to HTML.
>
I have an XSLT variable , $PAGELINK. I need to specify this value as
an href attribute value of <atag.
>
something like <a href = $PAGELINKClick me for new page </a>. This
is not working for me.
Use an attribute value template, that is an XPath expression delimited
by curly braces e.g.
<a href="{$PAGELINK}">...</a>


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Cnu
Guest
 
Posts: n/a
#3: Aug 27 '08

re: XSLT query


On Aug 27, 4:34*pm, Martin Honnen <mahotr...@yahoo.dewrote:
Quote:
Cnu wrote:
Quote:
I am using XSLT to transfor XML to HTML.
>
Quote:
I have an XSLT variable , $PAGELINK. I need to specify this value as
an href attribute value of <atag.
>
Quote:
something like *<a href = $PAGELINKClick me for new page </a>. This
is not working for me.
>
Use an attribute value template, that is an XPath expression delimited
by curly braces e.g.
* *<a href="{$PAGELINK}">...</a>
>
--
>
* * * * Martin Honnen --- MVP XML
* * * *http://JavaScript.FAQTs.com/
Thanks man!!

It helped me out!

-Cnu
Closed Thread


Similar .NET Framework bytes