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

xlinks not showing up in browser

57
Hi,
I've set up some basic xlinks, just like on the w3 tutorial, but they're not showing up in a browser (IE6 or FF2). Anybody know why? Do they only work when used w/XSL? I'm so confused why they aren't working...

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2.  
  3. <rootElement xmlns:xlink="http://www.w3.org/1999/xlink">
  4.     <element>
  5.         <title>Google</title>
  6.         <www xlink:type="simple" xlink:href="http://www.google.com" xlink:actuate="onRequest">Go to google.com</www>
  7.     </element>
  8. </rootElement>
  9.  
I have an external javascript to load the xml doc and another js to display the data (w/links I had hoped, but no). I was assuming when the <www> node loads, it would be a link that could be clicked on.

Thanks!
Jun 24 '07 #1
10 3001
Dököll
2,364 Expert 2GB
Hi,
I've set up some basic xlinks, just like on the w3 tutorial, but they're not showing up in a browser (IE6 or FF2). Anybody know why? Do they only work when used w/XSL? I'm so confused why they aren't working...

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2.  
  3. <rootElement xmlns:xlink="http://www.w3.org/1999/xlink">
  4.     <element>
  5.         <title>Google</title>
  6.         <www xlink:type="simple" xlink:href="http://www.google.com" xlink:actuate="onRequest">Go to google.com</www>
  7.     </element>
  8. </rootElement>
  9.  
I have an external javascript to load the xml doc and another js to display the data (w/links I had hoped, but no). I was assuming when the <www> node loads, it would be a link that could be clicked on.

Thanks!
I'll have a look at this after work today, npm!

Please stay tuned!
Jun 25 '07 #2
npm
57
Anybody have an idea why this wouldn't be working like I thought it should?

Thanks!
Jul 7 '07 #3
Dököll
2,364 Expert 2GB
Thank you for your patience!

I like to refer every one to the following:http://www.w3schools.com/xlink/xlink_intro.asp

Please write if this does not work...
Jul 7 '07 #4
npm
57
I've read that tutorial a bunch of times to try and make sure I'm not forgetting anything. From what I can tell, I have the xml all set up the way they describe it there. The links aren't showing up when I view on my computer or from the web server.
Jul 7 '07 #5
Dököll
2,364 Expert 2GB
I've read that tutorial a bunch of times to try and make sure I'm not forgetting anything. From what I can tell, I have the xml all set up the way they describe it there. The links aren't showing up when I view on my computer or from the web server.
Try this one:

http://www.w3schools.com/xlink/xlink_example.asp

It works at my end:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="ISO-8859-1"?><bookstore xmlns:xlink="http://www.w3.org/1999/xlink"><book title="Harry Potter">
  2.   <description
  3.   xlink:type="simple"
  4.   xlink:href="http://book.com/images/HPotter.gif"
  5.   xlink:show="new">
  6.   As his fifth year at Hogwarts School of Witchcraft and
  7.   Wizardry approaches, 15-year-old Harry Potter is.......
  8.   </description>
  9. </book><book title="XQuery Kick Start">
  10.   <description
  11.   xlink:type="simple"
  12.   xlink:href="http://book.com/images/XQuery.gif"
  13.   xlink:show="new">
  14.   XQuery Kick Start delivers a concise introduction
  15.   to the XQuery standard.......
  16.   </description>
  17. </book></bookstore>
Please give it a go and let us know.

In a bit!
Jul 9 '07 #6
npm
57
It still didn't work on my end. A couple questions:

1. What OS/browser are you using? I'm using Windows XP SP2 and Firefox 2.0.0.4, although it didn't show up in IE6 either.

2. The initial xlink declaration (xmlns:xlink="http://www.w3.org/1999/xlink") is in the root element. Does it need to go in the direct parent element of the element I want hyperlinked, even if that parent element isn't the root element?

Thanks again for your help!
Jul 9 '07 #7
npm
57
I also tried hardcoding the html <a> tags inside the xml tags:

Expand|Select|Wrap|Line Numbers
  1. <xmltag>&lta href="http://www.wherever.com"&gtwherever.com&lt/a&gt</xmltag>
  2.  
This works and the link shows up in the browser, but I'd rather not do it this way.
Jul 9 '07 #8
Dököll
2,364 Expert 2GB
I also tried hardcoding the html <a> tags inside the xml tags:

Expand|Select|Wrap|Line Numbers
  1. <xmltag>&lta href="http://www.wherever.com"&gtwherever.com&lt/a&gt</xmltag>
  2.  
This works and the link shows up in the browser, but I'd rather not do it this way.
Using IE7, though I think you should still be able to see it in 6. I should perjhaps tell you, you probably have it working and do not know. The link, and I should have been a little precise, is embedded within an image, so if you do not have an image, you will have nothing to click on, but you cursor will come alive if hovr over the area where you know the link should be. Try that, or add an image in the same folder the files are stored, fire it up then...

Sorry for your troubles!
Jul 10 '07 #9
npm
57
Sorry it took so long to get back to your last reply.

So...the whole xlink thing only works if you want to click on an image, not text?
Jul 30 '07 #10
npm
57
I thought the text itself would be the link. At least, that's what I gathered from the W3Schools tutorial.

Thanks!
Aug 30 '07 #11

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

Similar topics

1
by: Merijn Boom | last post by:
Hi, I would like to know is somebody has experience in showing HTML from a perl executable in the default browser and let that html interact with the perl executable via the browser. This is...
4
by: Vishnu | last post by:
I have a strange problem on WindowsXP proffessional with IE6 ,when i try to display a tiff file ,it is not showing ,small red x is comming up. I tried by dowloading latest IE from microsoft but...
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
1
by: lewindha | last post by:
Hi guys I am new to ASP and .Net. I am working a web app where some Crystal Reports will be incorporated. Right now I am trying to get a simple report with a bar graph to show up in a browser....
3
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In...
5
by: graphicsxp | last post by:
Hi, I have can upload a file to the server from my aspx page using the uploadfile control. When the user click on submit I'd like to show an animated gif while the file is being uploaded. But how...
1
by: asllearner | last post by:
I have an htaccess file protected folder. In that folder I have several php files that generate some simple html. When I am logged out, cache cleared, sessions info cleared, I navigate to one of the...
22
by: petermichaux | last post by:
Hi, I would like to display a message to Internet Explorer clients to encorage them to get Firefox. Yes they may like Internet Explorer but it is my site :) http://www.explorerdestroyer.com/...
0
by: Nick | last post by:
Hi, I'm interested in learning more about XLinks. I've read the last raccomandations from W3 and the other related documents and am looking for a concrete example of the extended links. Do...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.