Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 76518 invoked from network); 11 Aug 2005 13:04:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 13:04:47 -0000 Received: (qmail 56096 invoked by uid 500); 11 Aug 2005 13:04:42 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 56033 invoked by uid 500); 11 Aug 2005 13:04:42 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 55965 invoked by uid 99); 11 Aug 2005 13:04:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 06:04:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 06:05:01 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 53D2C34825 for ; Thu, 11 Aug 2005 15:04:37 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21246-09 for ; Thu, 11 Aug 2005 15:04:34 +0200 (CEST) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id E303D34824 for ; Thu, 11 Aug 2005 15:04:34 +0200 (CEST) Message-ID: <42FB4CE1.6000807@apache.org> Date: Thu, 11 Aug 2005 15:04:33 +0200 From: Sylvain Wallez User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: svn commit: r231266 - in /cocoon/branches/BRANCH_2_1_X: ./ src/java/org/apache/cocoon/generation/ src/java/org/apache/cocoon/util/jxpath/ src/java/org/apache/cocoon/xml/ src/test/org/apache/cocoon/xml/ References: <20050810153834.23695.qmail@minotaur.apache.org> <42FB0015.20300@mobilebox.pl> <42FB1920.9040300@apache.org> <42FB1D7F.1060609@mobilebox.pl> <42FB2328.70001@apache.org> <42FB4993.9000607@reverycodes.com> In-Reply-To: <42FB4993.9000607@reverycodes.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Vadim Gritsenko wrote: > Sylvain Wallez wrote: > >> Leszek Gawron wrote: >> >>> Sylvain Wallez wrote: >> >> >>>> As a side note, the refactored NamespacesTable I committed >>>> yesterday is a killer tool to cleanly handle namespaces (see >>>> RedundantNamespacesFilter). I plan to use it in some transformers >>>> that "consume" namespaces such as i18n, xinclude, etc to ensure the >>>> consumed namespaces never passes through the transformer. That will >>>> make cleaner and smaller web pages! >>> > > If transformer consumes its namespace completely, it's way more > efficient to simply filter out the namespace completely. It's not always that easy, as you have to remove the startPrefixMapping and the endPrefixMapping. The start is easy because you've got the URI, but the end isn't so easy as you have to know which prefix to filter out, and several prefixes can be used for the same URI (or the same prefix can also hide a previous one). >> I will also modify AbtractProcessingPipeline so that it dumps the >> full chain of locations of the pipeline when an error occurs. >> >> That will lead to stacktraces like: >> >> - >> resource://org/apache/cocoon/forms/generation/jx-macros.xml:103:10 >> - context://foo/bar.xml:23:12 > > > (hm, why it's context:// here - won't it usually resolve to file://?) context:// is a convenience provided by the error2html stylesheet to have shorter paths. But logs contain the full path with file:// >> - context://foo/sitemap.xmap:45:6 >> - context://foo/sitemap.xmap:44:6 >> - context://foo/sitemap.xmap:43:6 >> showForm() - resource://org/apache/cocoon/forms/flow/js/form.js:30:-1 >> do_stuff() - context://foo/flow.js:10:-1 >> - context://foo/sitemap.xmap:20:6 >> - context://sitemap.xmap:20:10 >> >> Looks cool, eh? > > > It is probably good idea to add some more context info like: > > - context://foo/sitemap.xmap:44:6 > - context://foo/sitemap.xmap:43:6 > > Or may that is too much... Dunno. Thought about this also. Actually, we can put there any information that is statically known. So why not. Sylvain -- Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director