cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <>
Subject Re: resolving w3c XHTML entities?
Date Mon, 27 Jun 2005 11:02:19 GMT
Hi Mark,

In cocoon.xconf you will find a <entity-resolver> element which contains a parameter
pointing to a 
catalog. Make sure that this catalog refers to your entity files, using the public identifiers
are using yourself. Note that you can direct to other catalog files with the CATALOG keyword.

If the entity-resolver can't handle the public id, it needs to find the system id's, but these

depent on the context in which the file is parsed. Most likely, "xhtml-special.ent" is interpreted

as path-of-sitemap/xhtml-special.ent. That will not work. You can fix this, by adding pipeline

matches that can provide the resolver with the needed files, but on the location it is looking

Might be useful to add such pipelines anyhow. Serializing XML with doctypes will make IE complain
cannot find the dtd or entity files when the doctype or local declaration subset doesn't use
qualified http addresses...


Mark Lundquist wrote:

> I'm trying to use
> WEB-INF/entities/w3c/xhtml-special.ent
> WEB-INF/entities/w3c/xhtml-lat1.ent
> My doctype looks like this:
> <!DOCTYPE stylesheet
> [
> "-//W3C//ENTITIES Special for XHTML//EN"
> "xhtml-special.ent">
> %ISOnum;
> "-//W3C//ENTITIES Latin 1 for XHTML//EN"
> "xhtml-lat1.ent">
> %ISOpub;
> ]>
> The entities aren't getting picked up. I also tried (first) with e.g. 
> "w3c/xhtml-special.ent", and that didn't work either.
> I must confess that I've never really understood entity catalogs and 
> this stuff in the DTDs at all! I've read explanations of it and they all 
> seem to just bounce right off of my brain for some reason. It can't be 
> that complicated, there just must be some impedance mismatch between the 
> explanations and my brain. So anyway... this stuff is all voodoo to me, 
> and I've tried the voodoo that I thought would work and it didn't :-/ 
> Any ideas? :-)
> Thx!
> —ml—

IT-consultant at Daidalos BV, Bleiswijk (NL)
tel:+31-(0)10-850 12 00
fax:+31-(0)10-850 11 99

GPG: 1024D/12DEBB50

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message