Connecting Tech Pros Worldwide Help | Site Map

XSLT query

  #1  
Old August 27th, 2008, 12:25 PM
Cnu
Guest
 
Posts: n/a
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  
Old August 27th, 2008, 12:45 PM
Martin Honnen
Guest
 
Posts: n/a

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/
  #3  
Old August 27th, 2008, 02:05 PM
Cnu
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
XSLT query Duggi answers 2 August 27th, 2008 02:05 PM
xslt queries in xml to SQL queries Ian Roddis answers 3 February 26th, 2006 07:05 PM
XSLT Query problems tranvirus answers 1 July 20th, 2005 08:56 AM
Xquery instead of xslt Tom Corcoran answers 2 July 20th, 2005 07:11 AM