Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 94939 invoked from network); 7 Aug 2005 14:54:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2005 14:54:25 -0000 Received: (qmail 70696 invoked by uid 500); 7 Aug 2005 14:54:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 70502 invoked by uid 500); 7 Aug 2005 14:54:23 -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 70489 invoked by uid 99); 7 Aug 2005 14:54:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2005 07:54:22 -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 [69.93.53.226] (HELO admin.mesanetworks.net) (69.93.53.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2005 07:54:11 -0700 Received: from [65.175.0.109] (helo=[192.168.0.102]) by admin.mesanetworks.net with esmtp (Exim 4.50) id 1E1mXc-0005Cl-E6 for dev@cocoon.apache.org; Sun, 07 Aug 2005 08:54:20 -0600 Message-ID: <42F62095.2010608@lojjic.net> Date: Sun, 07 Aug 2005 08:54:13 -0600 From: Jason Johnston User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Suggestion for XHTMLSerializer References: <1123067609.7378.9.camel@localhost.localdomain> <42F3AC2F.4080307@gmx.de> <42F48BAF.3010808@gmx.de> <42F4FE1D.3050704@lojjic.net> <42F5477E.4040301@lojjic.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - admin.mesanetworks.net X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - lojjic.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N BURGHARD �ric wrote: > If you look at the core components, no one follow such a hard constraint. > Some serializers do radical transformation (svg2jpeg, links, ...), while > some transformers only do very light transformation (encodeurl, i18n, ...). > > If you take the links serializer for example you will find that the output > is radically different than the input (and this is a serializer). If you > take the svg2jpeg serializer you will see that the ouput is just a "view" > of the input, because apart the file format "radicalisation", a lot of > information disappear during the convertion from vectors to bitmaps. So i > could perfectly do a silly xsl serialization that only display the root tag > name of the input (it still a view of my input) and call that a > serialization. I was not familiar with the LinkSerializer, so I took a quick look at it. Your point is well taken here; this serializer appears to be an anomaly. It acts like a transformer, but happens to do out.println() as its output instead of SAX events (to be fair, it actually *does* produce SAX events as well, but those events appear to get swallowed.) I'm getting a tad off-topic here, but IMO this "serializer" would be a better fit, and far more useful, as a transformer. For instance, what if I wanted to serialize the extracted links as a PDF document instead of text, or run another transformation on them before serializing? Having the link extraction transformation and serialization combined together does not allow this. As far as svg2jpg, I don't see your point. Every last bit of the SVG is taken into account when producing the bitmap representation.