404 - http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
reiche
Posts: 2
Joined: Mon Jun 22, 2015 5:10 pm

404 - http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd

Postby reiche » Mon Jun 22, 2015 5:23 pm

Hi,

I recently had som trouble due to files from Inkscape are saved with an xmlns to an nonexistant file:

Code: Select all

xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"


Accessing the file above results in a 404 from sourceforge, with the following text:

Code: Select all

An error has been encountered in accessing this page.

1. Server: sodipodi.sourceforge.net
2. URL path: /DTD/sodipodi-0.dtd
3. Error notes: NONE
4. Error type: 404
5. Request method: GET
6. Request query string: NONE
7. Time: 2015-06-22 07:05:43 UTC (1434956743)


Why not point the xmlns directive to an existant file, so user agents avoids requesting it fruitless, maybe even multiple times?

/reiche

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: 404 - http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd

Postby ~suv » Mon Jun 22, 2015 6:14 pm

Namespace names in XML namespace declarations are not URLs.

See also:
What is a Namespace Name

The namespace name, to serve its intended purpose, SHOULD have the characteristics of uniqueness and persistence. It is not a goal that it be directly usable for retrieval of a schema (if any exists).
Source: http://www.w3.org/TR/xml-names11/#ns-decl
(…) namespace names are just strings, so the fact that the SVG namespace name also looks like a URI isn't important. URIs are commonly used because they are unique, the intention is not to "link" somewhere. (In fact URIs are used so frequently that the term "namespace URI" is commonly used instead of "namespace name".)
Source: https://developer.mozilla.org/en/docs/Web/SVG/Namespaces_Crash_Course
Source: https://inkscape.org/en/namespaces/inkscape/

reiche
Posts: 2
Joined: Mon Jun 22, 2015 5:10 pm

Re: 404 - http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd

Postby reiche » Mon Jun 22, 2015 6:42 pm

Thank you for your enlightenment.

Probably a fault at a layer of my user agent (FOP-0.20.5), but it I think it is a bad convention to use a string that is an URI look-a-alike. It is not possible to distinguish an 404 requesting a "fake" URI from a real missing DTD..

/reiche


Return to “Discuss Software Issues”