XSLT query
Question posted by: Cnu
(Guest)
on
August 27th, 2008 12:25 PM
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.
2
Answers Posted
Cnu wrote:
Quote:
Originally Posted by
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/
On Aug 27, 4:34*pm, Martin Honnen <mahotr...@yahoo.dewrote:
Quote:
Originally Posted by
Cnu wrote:
Quote:
Originally Posted by
I am using XSLT to transfor XML to HTML.
>
Quote:
Originally Posted by
I have an XSLT variable , $PAGELINK. I need to specify this value as
an href attribute value of <atag.
>
Quote:
Originally Posted by
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
|
|
|
What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 197,035 network members.
Top Community Contributors
|