Re: DTD Load Error

Alan Richmond <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Organization Aardwolf Networking
Message-ID <[email protected]>
On Thursday 25 October 2007 12:57:38 am Guido Pinkas wrote:
> I wanted to use the "DTD/Load & Convert DTD..."-function in Quanta, but
> all the files i tried loading returned with following error:
> "Error while parsing the DTD.
> The error message is: Content error in the external subset (2, 1)"
>
> Now, even following minimal DTD from w3schools doesn't work:
> <?xml version="1.0"?>
> <!DOCTYPE note [
>   <!ELEMENT note (to,from,heading,body)>
>   <!ELEMENT to      (#PCDATA)>
>   <!ELEMENT from    (#PCDATA)>
>   <!ELEMENT heading (#PCDATA)>
>   <!ELEMENT body    (#PCDATA)>
> ]>

Guido,
This is an internal DTD, of the type that would be at the top of the XML file 
it defined; note how it is all in the !DOCTYPE tag.  As far as I know Quanta 
can import external DTDs.  Trying to import your attached sample resulted in 
the same error you were getting.  <!DOCTYPE> in not valid *in* a DTD.

If you drop the !DOCTYPE to turn it into an external DTD it imports just fine.

-Alan

P.S.  Now how do I remove an imported DTD from my DTD list?

-- 
Alan Richmond
Aardwolf Web
707-442-7470

_______________________________________________
Quanta mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/quanta
test_minimal.dtd (application/xml-dtd, 155 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.