473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

XSLT query

Cnu
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.

Aug 27 '08 #1
2 1143
Cnu wrote:
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/
Aug 27 '08 #2
Cnu
On Aug 27, 4:34*pm, Martin Honnen <mahotr...@yahoo.dewrote:
Cnu wrote:
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/
Thanks man!!

It helped me out!

-Cnu
Aug 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: K. N. | last post by:
Is there any good and fast Python module for XSLT processing ? I'm going to use XML and XSLT to generate web pages, so I need XSLT processor that will be able to transform for example a DOM object...
3
by: Matt Bradbury | last post by:
Hi everyone. I'm in a situation where I need to work with XML data that I don't have the format for. It's a web service situation where I hand them a query and an XSLT file. They produce XML...
2
by: Tom Corcoran | last post by:
I am working to ease updating of a html page by transforming 2 xml files. I was going to use xslt for this and had bought 2 unopened books, wrox xslt and o'reilly's xslt cookbook. But am now...
9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
12
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation...
1
by: jrwarwick | last post by:
Hello, I believe I have uncovered a bug in the .Net XSLT engine to do with 'for' loops in XSLT. Here are the steps to reproduce it: -Create A new webform project. -Add the xml file...
2
by: Benzari.Alex | last post by:
Hello, the majority of my sites use PHP MYSQL and XSLT for dynamic pages and all of it works ok for English characters. The problem begins when I try to use Romanian or Russian characters while...
3
by: Ian Roddis | last post by:
Hello, I want to embed SQL type queries within an XML data record. The XML looks something like this: <DISPLAYPAGE> <FIELD NAME="SERVER" TYPE="DROPDOWN"> <OPTION>1<OPTION> <OPTION>2<OPTION>...
4
by: nickjtew | last post by:
Hi, I need to change the output made by my xsl file depending on what ID is passed by the user in the browser. The user will need to click links, eg, http://xxx.com/blah.xml?articleid=245 ...
1
by: sani723 | last post by:
i am fetching some data from SQL and filling it through the Adapterto in DataSet, and then passing that DataSet to the XmlDataDocument Object, like XmlDataDocument XMLDoc = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.