Search the web
Sign In
New User? Sign Up
svg-developers · SVG Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
google and SVG   Message List  
Reply | Forward Message #48562 of 63018 |
Re: [svg-developers] DTD declaration, was:Re: google and SVG

Jonathan Watt wrote:
> On Wed, 30 Mar 2005 15:53:40 +0200, Robin Berjon <robin.berjon@...>
wrote:
>>Use DTDs for validation if you want (they won't validate much but it's a
>>start) but don't use DOCTYPE. It's useless.
>
> The most accessible validator is the one provided at validator.w3.org
> - it doesn't allow you to specify the DTD that should be used. It may
> allow you to select a "Doctype", but SVG isn't on the list that's
> provided. It seems to me that it's still useful to include a DOCTYPE
> in this case.

It may be accessible but it's not terribly useful as an XML validator.
This however is being worked on.

> Furthermore, for those of us who get emails saying "this page doesn't
> work in your SVG implementation" it would be useful to be able to
> throw the URL into the W3C validator to help in debugging without
> having to manually choose/type an SVG DTD URL as well.

It'll take a little while but an SVG validator that works better much
than that is being worked on. The RNG that's in 1.2 will go a long way
in helping

> Even if DOCTYPEs don't have clear uses to you, why so strongly
> discourage their use unless they are actively harmful?

There's a bunch of issues, but just to pick a few:

- they'll give false positives. This is true of all schema languages as
none of them can express sufficient constraints, but in the case of
DTDs they are so ridiculously under-expressive that the content
models of some elements are really, really loose compared to what the
spec requires. After DTD validation you still don't know that you
haven't done something really stupid.

- they'll give false negatives. This is quite seriously broken. If you
rely on DTDs to tell you when something is broken, you might well end
up spending hours trying to debug a document that seems perfectly
fine only to realize at the end that it's just the DTD being wrong.
This is not the fault of the authors of the SVG DTD, it is simply
impossible to author a DTD that will not give false negatives.

- they're namespace-unaware. You know better than I do that the number
one mistake is to forget the namespace. DTDs won't catch that because
they don't know about namespaces.

- they don't wildcard. It is perfectly fine in SVG to introduce
elements and attributes in other namespaces, and there even are
extension points dedicated to that. Unless you modify the DTD, this
will always give you a false negative.

So when they say OK they really haven't checked anything, when they say
NOT OK they might be on crack, and like all namespace-unaware things
they're a dead branch of the XML tree. But feel free to use them anyway :)

--
Robin Berjon
Research Scientist
Expway, http://expway.com/





Thu Mar 31, 2005 9:47 am

sibylia2017
Offline Offline
Send Email Send Email

Forward
Message #48562 of 63018 |
Expand Messages Author Sort by Date

... The most accessible validator is the one provided at validator.w3.org - it doesn't allow you to specify the DTD that should be used. It may allow you to...
Jonathan Watt
wattie@...
Send Email
Mar 30, 2005
9:39 pm

... It may be accessible but it's not terribly useful as an XML validator. This however is being worked on. ... It'll take a little while but an SVG validator...
Robin Berjon
sibylia2017
Offline Send Email
Mar 31, 2005
9:47 am

... [snip] ... So, I suppose I should remove them from my XHTML pages as well :-) Hmm, perhaps no, I believe we should avoid the <?xml version="1.0"...?> line...
Philippe Lhoste
yphilho
Offline Send Email
Apr 1, 2005
12:14 am

... Unfortunately XHTML requires that you include the DOCTYPE. It's a mistake but one we have to live with. Don't try to validate XHTML with the DOCTYPE, it...
Robin Berjon
sibylia2017
Offline Send Email
Apr 1, 2005
12:26 pm

I wish I knew what you guys are talking about. obsolete tag-soupers? namespace-unaware things? avoiding the doctype? What should a relative newbie take away...
Marjorie Roswell
margieroswell
Offline Send Email
Apr 1, 2005
12:42 pm

... How i understand it , following Robin Berjon, a basic SVG file should look like this: <svg xmlns="http://www.w3.org/2000/svg"> </svg> no <?xml?> ! no...
Holger Will
holger492
Offline Send Email
Apr 1, 2005
1:35 pm

... That is correct. Note that you will want the XML Prolog (<?xml ...?>) if you are using an encoding other than UTF-8 or UTF-16. -- Robin Berjon Research...
Robin Berjon
sibylia2017
Offline Send Email
Apr 1, 2005
1:43 pm

Hi Marjorie, ... I wouldn't worry about it, just learn as you go :) ... Browsers that are obsolete and only understand a very limited and buggy subset of Web...
Robin Berjon
sibylia2017
Offline Send Email
Apr 1, 2005
2:15 pm

... No you don't. You can validate the SVG using the DTD with an XML processor without having to reference the DTD in the DOCTYPE. In fact it's better that way...
Robin Berjon
sibylia2017
Offline Send Email
Mar 30, 2005
4:28 pm

"Philippe Lhoste" <pl-mlnl@...> wrote in message news:424C91C0.6070402@.... ... No, not browsers choke on that in an XML page. Of course some...
Jim Ley
jibberjim
Offline Send Email
Apr 1, 2005
12:20 am

... What about XHTML 1.1 with the iframe module for serving/presenting the .svg, close to now or in the near future? thanks michael...
Michael Bolger
svgfoundation
Offline Send Email
Apr 1, 2005
12:52 pm

"Robin Berjon" <robin.berjon@...> wrote in message news:424D3DD7.80806@.... ... That is however a very bad idea, because you're still sending...
Jim Ley
jibberjim
Offline Send Email
Apr 2, 2005
8:25 am

Hi Holger, thanks for the news. I have a question though: Do you think it is really doing a full-text search? F.e. I can find the file...
Andreas Neumann
neumannandreas
Offline Send Email
Mar 29, 2005
8:41 am

Hi Andreas im really not sure what exactly gets indexed, and under which coditions. the only files on my site that get fully indexed, all have title and desc. ...
Holger Will
holger492
Offline Send Email
Mar 29, 2005
9:23 am

hi, i didn't notice any change on google's indexing behaviour. since several months svg files get indexed but with no content/description. thus the only index...
Andre M. Winter - Car...
raxmapa
Offline Send Email
Mar 29, 2005
9:47 am

... as stated earlier google does index full text, im not sure under which coditions though. for example ...
Holger Will
holger492
Offline Send Email
Mar 29, 2005
10:48 am

... it seems, that google really doesnt do full text search. i got some full text indexed svg files, but they must have been send with a wrong mimetype. they...
Holger Will
holger492
Offline Send Email
Apr 1, 2005
1:26 pm

Hello Everyone since a few hours, google is causing tons of 406 again, not indexing the newest svg files on my server. can anyone confirm this ? regards Holger...
Holger Will
holger492
Offline Send Email
Apr 3, 2005
9:49 am

give us some sample search terms?...
Marjorie Roswell
margieroswell
Offline Send Email
Apr 3, 2005
6:13 pm

... hi Marjorie thanks for your response. ive had a discussion about this with jibberJim and bjoern on #svg and conclusion was that there are probably...
Holger Will
holger492
Offline Send Email
Apr 3, 2005
6:55 pm
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help