View Full Version : XML Links?
Ramesiv
11-08-2005, 12:24 AM
Is it possible to place links in .xml files? And if it is, then how?
Thanks for reading.
KC-Luck
11-08-2005, 01:34 AM
an xml file structure can be anything you want it to be, as long as it is well-formed (http://www.developer.com/tech/article.php/797861).
but it would not be a "link" by the definition of a HTML link.
you would give your xml data presentation layer, by other means.
<links>
<link url="yoursite.com/link.html">is not an anchor in HTML</link>
</links>
you would have to use XML DOM, or XSLT to transform your xml to another markup for browsing.
gsnedders
11-08-2005, 03:33 AM
you would have to use XML DOM, or XSLT to transform your xml to another markup for browsing.
Nope: look at http://codingforums.com/showthread.php?t=41661
Only basic Xlinks are supported, and only by Gecko.
tim_myth
11-15-2005, 10:41 PM
You can't place a link in an xml file, but you can place a url in a file. You can then bind this url to a an element like this
<img height="100px" width="100px" datafld="picuri" alt="" />
or this
<a datafld="linkurl">.
gsnedders
11-16-2005, 01:20 AM
You can't place a link in an xml file
As I just said above, you can. Yes, they are only supported by Gecko, and only basic Xlinks are supported. But you can place a link in an XML file.
For your sake, I've put together a small sample page at http://geoffers.uni.cc/cf/xlink.xml
Feel free to use and abuse that code.
liorean
11-16-2005, 02:07 AM
XML itself has no linking facility. But you can use a link from the XHTML namespace or some other XML application with linking facilities, or XLink.
tim_myth
11-16-2005, 05:51 PM
As I just said above, you can. Yes, they are only supported by Gecko, and only basic Xlinks are supported. But you can place a link in an XML file.
For your sake, I've put together a small sample page at http://geoffers.uni.cc/cf/xlink.xml
Feel free to use and abuse that code.
Where's Gecko on this list (http://www.w3schools.com/browsers/browsers_stats.asp)? I didn't buy a Mac. I will never learn Klingon. I also try to avoid using words like senary or dendrochronology when "half dozen" or "tree ring dating" makes more sense. I think I'll stick with the big three for now. If I'm a babbitt by choice, does that still make me a babbitt?
gsnedders
11-16-2005, 06:04 PM
Gecko is the rendering engine used in Mozilla, Netscape, Firefox, Flock, Camino and SeaMonkey as well as many more.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.