cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: DTD PUBLIC ID resolution
Date Sat, 05 Aug 2000 18:58:50 GMT
Hans Ulrich Niedermann wrote:
> 
> Hi,
> 
> I'd like to have a mechanism that maps some known PUBLIC IDs from the
> <!DOCUMENT> declaration to the corresponding local URIs (similar to
> SGML catalog files). This would allow one to write XML files with the
> "canonical" URI for the used DTDs and still use a local copy for
> validation and default value gathering, which increases both
> reliability and speed.
> 
> Do you think such a mechanism makes sense?

Sure it does, it's called "catalog" and it goes back to the old SGML
days.

> Has anybody seen such a thing implemented yet?

I'm pretty sure all good parsers implement one (I know Xerces does)

> Where could/should such a thing be hooked into the C2 processing chain?

If we use Xerces, we can use their API and provide the catalog
ourselves.... or use directly SAX EntityResolver...hmmmm, probably
better using SAX anyway...

> Where and how should the configuration, i.e. the mapping from PUBLIC
> to SYSTEM be stored?

Good question. I haven't thought about it (yet). Should the sitemap
contain the semantics to describe schema catalogs as well?

> I don't mean to distract you from important things but perhaps we
> should think about it before every API and config file spec is set
> into stone.

Totally. Thanks for bringing this up.
 
> I'd be willing to contribute some code if/when I can figure out how
> the C2 internals really are supposed to work.

Same here :)

Anyway, I'll dive into C2 very soon, expect tons of
"what-the-hell-is-this?" :)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message