XLinks and Validation
My first jump into XLinks isn't going so well. They work in Mozilla (one of the few browsers that support XLinks) despite the fact that the code is invalid. What am I doing wrong?
My first jump into XLinks isn't going so well. They work in Mozilla (one of the few browsers that support XLinks) despite the fact that the code is invalid. What am I doing wrong?
JeevesBond posted this at 23:57 — 9th January 2006.
He has: 3,956 posts
Joined: Jun 2002
Wow, that DOCTYPE is hellish complicated! It's really difficult to tell what's switched on in there and not.
What about writing a simple XML document with an embedded home XLINKS DOCTYPE just to check you're doing things right (although I've had an extensive look at your code and can't find anything wrong according to the specs). Or is there an XLINKS DTD out there you could use? I've Googled, but all I find are arguments!
The only thing I can think of is that the DOCTYPE simply doesn't contain what you need it to, although am a bit out of my depth on this subject compared to your good self!
Am uncertain about your SVG too, Opera definately supports that standard to a high level of conformance, so when the SVG on your site doesn't work in Opera and the validator complains about it I'd definately suspect there's something wrong in the code.
Sorry this isn't much help, but might point you in vaguely the right direction, should lead to an interesting discussion either way!
a Padded Cell our articles site!
nadamt posted this at 19:50 — 10th January 2006.
They have: 18 posts
Joined: Jul 2005
I'm flattered, but I'm no XML guru. I was under the impression that XLinks did not require a DOCTYPE, that they could be intergrated into any XML markup.
Opera 8.5 doesn't have particularly large SVG support (SVG 1.0 Tiny, I believe). I'm using Opera 9 Preview and it displays as it does in Firefox 1.5.
ilovefrontpage posted this at 10:23 — 11th January 2006.
He has: 29 posts
Joined: Jan 2006
xlinks are xml websites? and i should get around to learning more about SVG.
maybe i need to go back to school (w3schools that is)
nadamt posted this at 18:52 — 11th January 2006.
They have: 18 posts
Joined: Jul 2005
Absolutely.
It crashes occasionally. But the fact that it's fast-loading (slightly faster than 8.5, I think) and resumes sessions, it's kind of a redeeming factor.
I don't know how. I'm trying to learn XML Schema online, but the tutorials are too complicated for me to follow. It doesn't help that authors feel compelled to write their example codes in some homemade XML, rather than XHTML (which I'm sure will be the host markup for the majority of XML languages).
No. I've tried removing the prefixes and the only thing that happens is that the xlink no longer displays.
JeevesBond posted this at 13:17 — 11th January 2006.
He has: 3,956 posts
Joined: Jun 2002
Well xlinks is indeed an XML application. You can use them in websites for simple hyperlinks, but their capabilities are a lot more extensive, two way and chained links for example.
There isn't much out there about xlinks, apart from the spec and a lot of arguing about usage. This kind of thing isn't going to mature for another few years at least.
Oh, cool. How stable is it? And where might one go to procure such a peice of software?
The problem of validation still remains though, I'm pretty sure it's something related to the dtd not including xlinks. Have you tried anything else nadamt - writing your own simplified dtd? Maybe the validator doesn't support it? I always thought it was just an xml validator and if the dtd supported what you were doing it would be happy?
What about trying a different xml validator (as long as it does more than just check for well-formedness), like this one http://www.cogsci.ed.ac.uk/~richard/xml-check.html Got some interesting results back from that, seems the W3C dtd is wrong to start! Then I see:
Seems that you can't put an xlink within a p tag, which would make sense (might have to look at the dtd to find the answer to that one), it also doesn't your usage of xlink:a.
Either way, I'm none the wiser. Had any luck at your end?
a Padded Cell our articles site!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.