Click to See Complete Forum and Search --> : Creating XML anchors/links


Ben Rogers
02-17-2005, 05:54 PM
In my spirit of not supporting IE, I've decided to go the route of using XML, and am thus just beginning on creating everything. I'd like to be able to change all elements so that they are transformed to become anchors when they contain the href attribute- I have no idea where to begin.

I think the fact that I have yet to grasp this may be a result of a misunderstanding... I've been led to beleive DTDs are for defining the markup language (validation), XSL is a different styling language syntax (just for looks, and I'm using CSS, so I feel this can be safely Ignored), XPath is for targeting elements, and XSLT is what I want, but W3Schools is being thoroughly unclear on how to create anchors.

Thank you in advance... I realize this won't be easy, but I'd like to overcome this one obstacle before I start the DTD, or finish up the skeleton.

Robert Wellock
02-18-2005, 09:45 AM
What are you intending to create, since unless you are going to use it on a private network it will probably have to end-up as XHTML via XSLT unless you mean server-side. XLink, HLink and XPath.

the tree
02-18-2005, 10:28 AM
Ben, if I'm right about what it is you want to do, then just continue with xhtml, but move up to xhtml 1.1 with the text/xml+xhtml content header. That way you can exclude the misfit and not have to learn a whole other language.

Ben Rogers
02-18-2005, 03:41 PM
Originally posted by Robert Wellock
What are you intending to create, since unless you are going to use it on a private network it will probably have to end-up as XHTML via XSLT unless you mean server-side. XLink, HLink and XPath. Well, let's say I have a styled XML document, that's functioning as a page (I realize I could use (X)HTML for this, and should, but I want to learn XML languages through application.) I was wondering what technology to use to change an element into a link, and thus what I should learn first. What do you mean by server-side? Isn't all of this client-side? Originally posted by the tree
Ben, if I'm right about what it is you want to do, then just continue with xhtml, but move up to xhtml 1.1 with the text/xml+xhtml content header. That way you can exclude the misfit and not have to learn a whole other language. I've already done this. now I want to familiarize myself with XML languages. I haven't progressed at all in a long time, this is something I kind of should do.

Robert Wellock
02-23-2005, 01:58 PM
XSLT is normally run server side because HTML UA don't typically have the skill to read the XML.