473,320 Members | 1,993 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,320 software developers and data experts.

hyperlink in xslt

I need to make a hyperlink dynamically

my link is


http://localhost/proj/friends.php?id=1

id value is dynamic

and id is available in xml tag
<userid>1</userid>
like this

my expected output is
http://localhost/proj/friends.php?id=1

how i need to specify to get this url


<a href="friends.php?userId=" <xsl:value-of select="userId" /> >
Feb 28 '08 #1
1 2821
jkmyoung
2,057 Expert 2GB
http://www.thescripts.com/forum/thread768835.html

Expand|Select|Wrap|Line Numbers
  1. <a>
  2.   <xsl:attribute name="href">friends.php?userId=<xsl:value-of select="userId"/></xsl:attribute>
  3.  
  4. Or possibly:
  5. <a href="friends.php?userId={userId}">
  6.  
but the 2nd method does not work in all processors.
Feb 29 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Victor | last post by:
Hi, this might sound silly but I cannot figure out how to incorporate some XML of employees into some XML of a company to give new XML containing them all. For example, this is the company now ...
1
by: Matt | last post by:
For example, how to represent hyperlink in XSL? I want to add hyperlink in XSL. i.e. I need to generate <A HREF="http://mypage.html">home page</A> in HTML. I tried the following approaches but...
6
by: KL | last post by:
I am totally new to XML and confused as heck. I have my xml file and want one of my elements to be a website. Heck I even named the element website (I know real original), but I can't make the...
1
by: joealonso | last post by:
Problem: I have an xml news feed: blah blah yesterday by the news from General Motors (NYSE:GM) that helped bring the market to a three-week high blah blah We all know that the old days are...
0
by: Mike | last post by:
I noticed from the msdn help that posting a large message to the event log is a bad practice. Logging a path to a file is better in this instance. Is it possible to send a hyperlink in an event log...
0
by: Origin | last post by:
Is there a way to programatically access Form elements that are added via an xslt document during transformation? I'm feeding an xml control both the xml document and the xslt document, which...
2
by: Stephen | last post by:
I have a little predicamnet. I have two xml controls on my page. Both are menus for my site. The first (Category) needs to set the data source of the other xml control. To do this I created an...
1
by: Newbie | last post by:
Hello I need some help to make a hyperlink in a XML file. My XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <TERAPEUTLISTE> <TERAPEUT> <NAVN>Et navn</NAVN> <ADRESSEN>En...
2
by: Craig | last post by:
Hello there, I'm trying to generate a hyperlink (href) using XSLT to generate a web page that displays a table with selected information. At the moment everything is working except for the...
4
by: mark4asp | last post by:
I want to write a xslt template to create a xhtml 1.0 (transitional) file which will be sent in as email. Here is a typical xml data file: <BatchEmail> <Domain>www.myDomain.com</Domain>...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.