Return-Path: Delivered-To: apmail-xmlgraphics-general-archive@www.apache.org Received: (qmail 54950 invoked from network); 25 Aug 2008 08:39:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 08:39:17 -0000 Received: (qmail 4939 invoked by uid 500); 25 Aug 2008 08:39:15 -0000 Mailing-List: contact general-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list general@xmlgraphics.apache.org Received: (qmail 4928 invoked by uid 99); 25 Aug 2008 08:39:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 01:39:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.239.215.103] (HELO tux17.hoststar.ch) (213.239.215.103) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 08:38:17 +0000 Received: from [127.0.0.1] (adsl-89-217-54-27.adslplus.ch [89.217.54.27]) (authenticated bits=0) by tux17.hoststar.ch (8.13.6/8.12.11) with ESMTP id m7P8ckTF020260 for ; Mon, 25 Aug 2008 10:38:47 +0200 Date: Mon, 25 Aug 2008 10:38:45 +0200 From: Jeremias Maerki To: general@xmlgraphics.apache.org Subject: Re: URIResolvers In-Reply-To: <48B26E61.4010607@berger.name> References: <20080825090925.AA69.60BA733C@jeremias-maerki.ch> <48B26E61.4010607@berger.name> Message-Id: <20080825103626.AA6F.60BA733C@jeremias-maerki.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.47.01 [en] X-Antivirus: avast! (VPS 080824-0, 24.08.2008), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org On 25.08.2008 10:33:37 Max Berger wrote: > Jeremias, > > Jeremias Maerki schrieb: > > (Moving to general as we're talking about code in Commons, not FOP) > > > > Thanks for sharing. I have two observations here: > > 1. CommonURIResolver is final and designed as a Singleton. In my past > > experience that restricts its usefulness too much. > > Noted. I'll make it public and rename the getInstance to getDefault... Thanks. > > 2. It should be noted that this approach here only allows "general" > > resolvers. There's no access to "local" configuration or context > > information that allows customizing the behaviour. Such URI resolver > > will still have to be set up by the users. > > The URIResolver in FOP will probably have to stay very similar to the > way it works right now, for that exact reason. I don't mean to imply that anything should be changed now. I'm just noting the consequence of the design decision. > > I'm curious: what kind of URI resolver do you want to add here from a > > plug-in that motivated you to do this? > > One that resolves well-known URIs to embedded URIs. In particular URIs > such as > "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" and > "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" would be mapped to > jar:... for faster (and in particular offline) resolution. > > For testing purposes, the xml: URI seems like a very interesting addition. Ah, makes sense. Thanks. And the W3C web admins will be very happy about this. ;-) > > Max > > Jeremias Maerki --------------------------------------------------------------------- Apache XML Graphics Project URL: http://xmlgraphics.apache.org/ To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: general-help@xmlgraphics.apache.org