Xml Doctype

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Xml Doctype

Postby Stu » Tue 17 Dec, 2002 4:44 pm

Does anyone know why Netscape/Mozilla have chosen not to recognise external dtd files and entities?
I am looking at various methods of producing XML/CSS pages
http://www.stunicholls.myby.co.uk/index.xml
and have found that if I create my own .dtd file and declare it
Code: Select all
<!DOCTYPE html PUBLIC "-//StuNicholls//DTD XmlWebsite//EN//" "http://www.stunicholls.myby.co.uk/w3xml.dtd">

and the dtd file contains a !ENTITY
Code: Select all
<!ENTITY insert SYSTEM "insert.txt">

Netscape and Mozilla give an error report concerning the &insert;
in the XML.

Looking into the Mozilla web site I have found that external DTDs are ignored except when the are placed locally in the mozilla/res/dtd directory.

This seems like an odd approach to producing valdating dtd files for XML .

Stu
IE6 handles the dtd with no problems.
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
In youth we learn, in age we understand
User avatar
Stu
member
member
 
Posts: 35
Joined: Thu 03 Oct, 2002 2:06 pm
Location: Bristol uk

Re: Xml Doctype

Postby Fulvio » Tue 17 Dec, 2002 4:53 pm

Stu wrote:Does anyone know why Netscape/Mozilla have chosen not to recognise external dtd files and entities?
I am looking at various methods of producing XML/CSS pages
http://www.stunicholls.myby.co.uk/index.xml
and have found that if I create my own .dtd file and declare it
Code: Select all
<!DOCTYPE html PUBLIC "-//StuNicholls//DTD XmlWebsite//EN//" "http://www.stunicholls.myby.co.uk/w3xml.dtd">

and the dtd file contains a !ENTITY
Code: Select all
<!ENTITY insert SYSTEM "insert.txt">

Netscape and Mozilla give an error report concerning the &insert;
in the XML.

Looking into the Mozilla web site I have found that external DTDs are ignored except when the are placed locally in the mozilla/res/dtd directory.

This seems like an odd approach to producing valdating dtd files for XML .

Stu
IE6 handles the dtd with no problems.


I saw this link http://www.xmlw.ie/webdoc/index.html at xulplanet.com where I get the Prefbar. May be the fellow who works with the prefbar may be able to assist you.
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 (CK-SillyDog)
A minority may be right, and a majority is always wrong
~ Henrik Ibsen
WinXP, SP3, 512 MB, SM2.17.1, FF21, TB17.O.5, IE8.0, Google Chrome 27, Ghostwall , Avast 8.0.1, JRE1.7_21.
User avatar
Fulvio
Moderator
Moderator
 
Posts: 12004
Joined: Wed 19 Jun, 2002 10:08 am

Postby Shark Daddy » Tue 17 Dec, 2002 6:59 pm

I do not know the answer. MozillaZine would probably be a good place to ask.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20021217
Shark Daddy
Moderator
Moderator
 
Posts: 519
Joined: Wed 19 Jun, 2002 11:19 am
Location: Toronto, Canada

Postby Stu » Wed 18 Dec, 2002 6:49 am

No help so far but thanks for the links.

These have led me to discover that Mozilla is now supporting
Xlink in XML (which is more than any other browser is doing at the
moment).

Stu
edited 18-12-02
------------------
Just had an email back from Eoin Campbell
Mozilla uses the Expat XML parser, which is a very simple early
well-formedness parser written by James Clark. It doesn't support
validation, and doesn't read external DTD files.
UserAgent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
In youth we learn, in age we understand
User avatar
Stu
member
member
 
Posts: 35
Joined: Thu 03 Oct, 2002 2:06 pm
Location: Bristol uk


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], richard mitnick