logo       

Re: -xcatalog option and deferred parsing don't play nice together: msg#00011

java.enhydra.xmlc

Subject: Re: -xcatalog option and deferred parsing don't play nice together

Hi Jake,

On Friday 15 August 2003 06:14, Jacob Kjome wrote:
> I just ran into a problem trying to load an XMLC class using deferred
> parsing where the metadata for the XML file specifies -xcatalog like
> this...
>
> -xcatalog org/enhydra/barracuda/tutorials/xmlc/tutorials.xcat
>
> Now, this compiles just fine. The tutorials.xcat is found in the source
> path (and the dtd referenced in there is found just fine as
> well). However, when the class is loaded using deferred parsing, I get the
> following error...

You're specifying a relative URL for the XCatalog here. If I'm not mistaken,
that relative URL is made absolute by the XML parser before being passed off
to the entity resolver, and it looks like the base for the URL for looking up
catalog files is the working directory of the VM. In other words, the entity
resolver ends up with the wrong system ID for the catalog.

Try the absolute URL file:/org/enhydra/barracuda/tutorials/xmlc/tutorials.xcat
instead. The XMLC entity resolver is smart enough to try and load this from
the class path.

Richard
--
Richard Kunze

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx

Attachment: pgpzti5ewT9en.pgp
Description: signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise