Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B32B9E17 for ; Sat, 29 Oct 2011 14:34:21 +0000 (UTC) Received: (qmail 42765 invoked by uid 500); 29 Oct 2011 14:34:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 42709 invoked by uid 500); 29 Oct 2011 14:34:20 -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 42701 invoked by uid 99); 29 Oct 2011 14:34:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 14:34:20 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.149.128.33] (HELO smtpi3.ngi.it) (88.149.128.33) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 14:34:11 +0000 Received: from [192.168.1.2] (81-174-7-94.dynamic.ngi.it [81.174.7.94]) by smtpi3.ngi.it (Postfix) with ESMTP id 8345B318377 for ; Sat, 29 Oct 2011 16:33:46 +0200 (CEST) Message-ID: <4EAC102C.9060907@apache.org> Date: Sat, 29 Oct 2011 16:39:40 +0200 From: =?UTF-8?B?RnJhbmNlc2NvIENoaWNjaGlyaWNjw7I=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101217 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [c3] Implementing presentation logic in c3 References: <1319755181.4195.96.camel@mcKenny> <4EAA6253.5000700@apache.org> <1319793469.4071.26.camel@mcKenny> <4EAA7679.6020403@apache.org> <1319799535.4071.43.camel@mcKenny> In-Reply-To: <1319799535.4071.43.camel@mcKenny> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 28/10/2011 12:58, Thorsten Scherler wrote: > [...] > I patched only the transformer, here my observation: > - the attribute approach works fine. > - the second one cuts of element generation from that point on. > > it is a start. ;) I've just committed an update to StringTemplateTransformer, now using StringTemplateGenerator's commodities - i.e. taking the whole document as input: as said before, this was the same approach taken for JX generator / transformer; moreover, ST requires a plain String as input and does not provide any SAX-related features for rendering. This means that everything managed by StringTemplateGenerator is now managed in the same way by StringTemplateTransformer (including XML attributes, working in both). Finally, I've also made a fix for passing non-String parameters to ST, so $if$ is actually doing its job (take a look at cocoon-stringtemplate unit tests): unfortunately, this does not seem to work for sitemap, so I preferred not to update StringTemplate samples in cocoon-sample. Can anyone confirm (and possibly point out where to look, in case) that sitemap parameters are always cast to String? Regards. -- Francesco Chicchiriccò Apache Cocoon Committer and PMC Member http://people.apache.org/~ilgrosso/