By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,678 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,678 IT Pros & Developers. It's quick & easy.

Hyperlink + XML

P: n/a
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 adresse</ADRESSEN>
<POST_BY>Postnummer og Bynavn</POST_BY>
<EMAIL>En email</EMAIL>
<WEBSITE>http://www.domæne.dk</WEBSITE>
<TLFNR>Et telefonnummer</TLFNR>
</TERAPEUT>
</TERAPEUTLISTE>

and in my HTML file I call the XML-file like this:

<xml id="terapeutliste" src="data.xml"></xml>
<table datasrc="#terapeutliste">
..
..
<tr>
<td><strong>Website</strong></td> <td><span
datafld="WEBSITE"></span></td>
</tr>
</table>
What I need to know is how I can make it clickable?
I have found a lot of sites with explanations about xml, but i still do not
understand how to make the hyperlink clickable

So please help me.
Best Regards
Nybien
Dec 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Mon, 19 Dec 2005 23:06:45 +0100, "Newbie@news" <mainemarks at
varmmail.com> wrote:
and in my HTML file I call the XML-file like this:

<xml id="terapeutliste" src="data.xml"></xml>
<table datasrc="#terapeutliste">


Don't use DSO (the datasrc / datafld stuff) It doesn't work.

Instead, use XSLT. You can use this client-side (on the browser)
although this is likely to be dependent on IE. Use it on the server if
you want better cross-browser support.

Any XSLT tutorial will tell you how to generate a hyperlink in HTML. Or
you can search this newsgroup through groups.google.com
Dec 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.