You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2003/03/26 21:44:46 UTC
entity catalog problem
Hi All
I am converting a legacy Cocoon 2.0 site to Cocoon 2.1.
I have documents with the following DOCTYPE declaration:
<!DOCTYPE doc SYSTEM "urn:kiss:doc">
With the following entries in my catalog:
SYSTEM "urn:kiss:linkmap"
"linkmap.dtd"
SYSTEM "urn:kiss:doc"
"doc.dtd"
PUBLIC "-//KISS//DTD Link Map v1.0//EN"
"linkmap.dtd"
PUBLIC "-//KISS//DTD Document v1.0//EN"
"doc.dtd"
This used to work, but now I get the following exception:
Original Exception: java.net.MalformedURLException: unknown protocol:
urn
at java.net.URL.<init>(URL.java:586)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav
a:807)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.
java:767)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImp
l.java:275)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XML
DocumentScannerImpl.java:841)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
25)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
81)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
<snip/>
Any ideas anyone?
Thanks for your help.
regards Jeremy
Re: entity catalog problem
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
On Wednesday, March 26, 2003, at 09:56 PM, Vadim Gritsenko wrote:
> Jeremy Quinn wrote:
>
>> Hi All
>>
>> I am converting a legacy Cocoon 2.0 site to Cocoon 2.1.
>
>
> Since when it became legacy? :)
Well ... a lot has changed in that time ;)
>
>
>> I have documents with the following DOCTYPE declaration:
>>
>> <!DOCTYPE doc SYSTEM "urn:kiss:doc">
>
>
> <offtopic>
> Correct me if I'm wrong, but from
> http://www.w3.org/TR/1998/REC-xml-19980210#dt-sysid I got an
> impression that PUBLIC can be any URI (including your "urn:"), while
> SYSTEM identifier better be an URI which can be resolved to some DTD.
>
> Thus, I would either use <!DOCTYPE doc PUBLIC "urn:kiss:doc"> or
> <!DOCTYPE doc SYSTEM "kiss/doc">
> </offtopic>
>
> Looks like you got regression bug! :)
OK
Thanks for that suggestion, I'll try it out, it's a simple enough
change to make.
regards Jeremy
Re: entity catalog problem
Posted by Vadim Gritsenko <va...@verizon.net>.
Jeremy Quinn wrote:
> Hi All
>
> I am converting a legacy Cocoon 2.0 site to Cocoon 2.1.
Since when it became legacy? :)
> I have documents with the following DOCTYPE declaration:
>
> <!DOCTYPE doc SYSTEM "urn:kiss:doc">
<offtopic>
Correct me if I'm wrong, but from
http://www.w3.org/TR/1998/REC-xml-19980210#dt-sysid I got an impression
that PUBLIC can be any URI (including your "urn:"), while SYSTEM
identifier better be an URI which can be resolved to some DTD.
Thus, I would either use <!DOCTYPE doc PUBLIC "urn:kiss:doc"> or
<!DOCTYPE doc SYSTEM "kiss/doc">
</offtopic>
Looks like you got regression bug! :)
Vadim