Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 55029 invoked from network); 22 Aug 2008 06:56:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2008 06:56:19 -0000 Received: (qmail 16580 invoked by uid 500); 22 Aug 2008 06:56:17 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 16544 invoked by uid 500); 22 Aug 2008 06:56:17 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 16533 invoked by uid 99); 22 Aug 2008 06:56:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 23:56:17 -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: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2008 06:55:20 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix4.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1KWQYm-0004XS-6m for dev@forrest.apache.org; Fri, 22 Aug 2008 08:55:48 +0200 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.69) (envelope-from ) id 1KWQYl-000295-PX for dev@forrest.apache.org; Fri, 22 Aug 2008 08:55:48 +0200 Subject: Re: FOPNGSerializer, user-config and locationmaps From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <9B953C95-28A4-4411-9C9C-0D4A2C93A522@mac.com> References: <327B913B-24E0-43D1-A2B1-3F7E20BE7B4A@mac.com> <499888440808180354i57121f3btc3c091685b232d04@mail.gmail.com> <29CDBF5E-8B68-46DB-902A-994E11EA82F2@mac.com> <20080819044310.GC26681@igg.indexgeo.com.au> <1219214009.6352.27.camel@thorsten-desktop> <1219221427.21107.12.camel@thorsten-desktop> <9B953C95-28A4-4411-9C9C-0D4A2C93A522@mac.com> Content-Type: text/plain Date: Fri, 22 Aug 2008 08:54:48 +0200 Message-Id: <1219388088.19104.36.camel@thorsten-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-SA-Report: * -0.2 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: -0.2 (/) X-Spam-Score-Int: -1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2008-08-22 at 08:30 +0300, Sjur Moshagen wrote: > I think I will leave it as it is then, at least for the moment. > Eclipse has turned out to be a steep learning thing for me (I have > tried a couple of times, but I don't grasp the idea of the interface - > it is just confusing to me), and setting this up would take more time > than I have at the moment. Actually a similar problem that you are trying to solve has been solved by David a while back. I remember because while updating I stumble over the solution again. Have a look in the main sitemap or the internal.xmap of the dispatcher. There we use entities to make the serializer configurable. First we define the entities file: %symbols-project; %symbols-core; ]> and later on we use it: &serializer-xhtml-doctype-public; &serializer-xhtml-doctype-system; &serializer-xhtml-encoding; yes yes As you can see each project can provide a symbols-project-v10.ent which can override the configuration. By default we have e.g. for the dispatcher: I think that is a quite elegant solution to our problem without the need for an extended debugging session. salu2 > > I'll see if I can get someone else in my team to have a look at the > code. > > Best regards, > Sjur > > Den 20. aug. 2008 kl. 11.37 skrev Thorsten Scherler: > > > On Wed, 2008-08-20 at 11:05 +0300, Sjur Moshagen wrote: > >> Den 20. aug. 2008 kl. 09.33 skrev Thorsten Scherler: > > ... > >>> If the link rewriter is screwing things up you could debug > >>> LinkRewriterTransformer. Anyway this transformer normally never > >>> should > >>> rewrite anything in the sitemap.xmap. > >> > >> Whatever the problem, I'm on unknown territory here (I'm not really > >> into Java). Any suggestions for how to debug this? > > > > Using Eclipse that is not that hard but you would need some basic > > knowledge of eclipse. > > > > First add the following to your forrest.properties: > > forrest.jvmargs=-Xdebug > > -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n > > > > That will force forrest to start in debug mode. > > > > Now you need both cocoon and forrest in your eclipse workspace (I > > think > > cocoon 2.1.x should be fine). Add a breakpoint to > > LinkRewriterTransformer in the linkrewrite block. I recommend > > somewhere > > in configure(Configuration conf). Another in public void > > startTransformingElement(String uri,...) > > > > > > HTH > > > > salu2 > > -- > > Thorsten Scherler > > thorsten.at.apache.org > > Open Source Java consulting, training and > > solutions > > > -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions