You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Paul Kinnucan <Pa...@mathworks.com> on 2007/10/18 19:35:08 UTC

Additional catalog resolvers

Hi,

I was looking for a catalog resolver to enable Xerces to find the
customized Docbook dtd for books that our Java code needs to parse.
XMLCatalogResolver would have been great for us except that our catalogs
are plain text and must remain so to be compatible with other
applications that use the catalogs. So I wrote my own
PlainTextCatalogResolver that wraps the xml-commons text catalog
resolver.

This leads me to the following suggestion. Why not include multiple
catalog resolver classes in the Xerces-J distribution, one for each
catalog type supported by the xml-commons catalog resolver? For example,
the bulk of XMLCatalogResolver could be abstracted to serve as a base
class for a derived XMLCatalogResolver and a TextCatalogResolver class.

I would be willing to submit the necessary changes if the Xerces-J
community thinks it makes sense.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


Re: Additional catalog resolvers

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Paul,

"Paul Kinnucan" <Pa...@mathworks.com> wrote on 10/18/2007 01:35:08
PM:

> Hi,
>
> I was looking for a catalog resolver to enable Xerces to find the
> customized Docbook dtd for books that our Java code needs to parse.
> XMLCatalogResolver would have been great for us except that our catalogs
> are plain text and must remain so to be compatible with other
> applications that use the catalogs. So I wrote my own
> PlainTextCatalogResolver that wraps the xml-commons text catalog
> resolver.

Most likely we didn't create a TextCatalogResolver at the time XML catalog
support was added to Xerces because no one asked for it.

> This leads me to the following suggestion. Why not include multiple
> catalog resolver classes in the Xerces-J distribution, one for each
> catalog type supported by the xml-commons catalog resolver? For example,
> the bulk of XMLCatalogResolver could be abstracted to serve as a base
> class for a derived XMLCatalogResolver and a TextCatalogResolver class.

That sounds like it would be a good addition.

> I would be willing to submit the necessary changes if the Xerces-J
> community thinks it makes sense.

If you're interested in contributing your code you should have a read over
the "Contributors" section of the Xerces charter [1] if you haven't
already.

> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org

Thanks.

[1] http://xerces.apache.org/xerces2-j/charter.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org