Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 51296 invoked by uid 500); 21 May 2003 14:13:30 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 51229 invoked from network); 21 May 2003 14:13:29 -0000 Received: from vern.chem.tu-berlin.de (130.149.66.116) by daedalus.apache.org with SMTP; 21 May 2003 14:13:29 -0000 Received: from vern.chem.tu-berlin.de (localhost [127.0.0.1]) by vern.chem.tu-berlin.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h4LEDSGD023583 for ; Wed, 21 May 2003 16:13:28 +0200 Received: from localhost (stephan@localhost) by vern.chem.tu-berlin.de (8.12.3/8.12.3/Submit) with ESMTP id h4LEDSA7023580 for ; Wed, 21 May 2003 16:13:28 +0200 X-Authentication-Warning: vern.chem.tu-berlin.de: stephan owned process doing -bs Date: Wed, 21 May 2003 16:13:28 +0200 (CEST) From: Stephan Michels X-X-Sender: stephan@vern.chem.tu-berlin.de To: cocoon-dev@xml.apache.org Subject: Re: deploying and updating a cocoon site In-Reply-To: <3ECB8623.6010907@outerthought.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 21 May 2003, Marc Portier wrote: > > By the way, at the moment I'm stuck on the fact that the xconf tool (or > > the xml > > library it calls actually) is not trying to resolve the DTD for web.xml, > > and > > not? > I recon he _is_ trying and because he fails you are seeing the > problem? or else I'm stuck with double negations in the english > language > > > I'm not quite clear how to get it to use an entity catalog (though David > > C. has > > given me a hint that I'm not yet sure how to apply). > > Use the xml catalog from ANT: /** for resolving entities such as dtds */ private XMLCatalog xmlCatalog = new XMLCatalog(); /** * Add the catalog to our internal catalog * * @param xmlCatalog the XMLCatalog instance to use to look up DTDs */ public void addConfiguredXMLCatalog(XMLCatalog xmlCatalog) { this.xmlCatalog.addConfiguredXMLCatalog(xmlCatalog); } /** * Initialize internal instance of XMLCatalog */ public void init() throws BuildException { super.init(); xmlCatalog.setProject(project); } [....] parser.setEntityResolver(xmlCatalog); [....] Stephan.