Wrong DOCTYPE format (?)

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ElKassi
Posts: 4
Joined: Fri Jul 02, 2004 9:47 am

Wrong DOCTYPE format (?)

Post by ElKassi »

Hi,

when I start a new xml-file and attach a dtd via the function associate schema, choose dtd and open file (and choose a file),
I got one line included in my document like this:

Code: Select all

<!DOCTYPE xupdate:modifications SYSTEM "file:/path/to/my.dtd">
This causes problems with other programs, since it's not the correct format for a file-resource (in my opinion).
It should say either

Code: Select all

<!DOCTYPE xupdate:modifications SYSTEM "file:///path/to/my.dtd">
or

Code: Select all

<!DOCTYPE xupdate:modifications SYSTEM "/path/to/my.dtd">
I tested it with version 4.0 (linux) and 4.1 (windows). The windows version makes no difference. The result there is

Code: Select all

<!DOCTYPE xupdate:modifications SYSTEM "file:/C:/path/to/my.dtd">
(not sure about the colon by now, ´cos I dont have a windows-machine here)

I would call it a bug.

Greetings
Kassi
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Dear Kassi,

The form added by oXygen is correct.
If you look up in the XML specification [1] the system identifier definition [2] you will see that it refers to an URI.
Following to the URI RFC 2369 [3] you can see in page 27 the BNF for URI. I will add below part of the productions that allow the form entered by oXygen:
URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
absoluteURI = scheme ":" ( hier_part | opaque_part )
hier_part = ( net_path | abs_path ) [ "?" query ]
abs_path = "/" path_segments
path_segments = segment *( "/" segment )
[1] http://www.w3.org/TR/2004/REC-xml-20040204/
[2] http://www.w3.org/TR/2004/REC-xml-20040 ... ternal-ent
[3] http://www.ietf.org/rfc/rfc2396.txt

Best Regards,
George
Post Reply