sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Cnu's Avatar

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
Martin Honnen's Avatar
Guest - n/a Posts
#2: Re: XSLT query

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/
Cnu's Avatar
Guest - n/a Posts
#3: Re: XSLT query

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
 
Not the answer you were looking for? Post your question . . .
197,035 members ready to help you find a solution.
Join Bytes.com

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.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors