Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42B10EFCF for ; Mon, 11 Feb 2013 11:28:10 +0000 (UTC) Received: (qmail 98714 invoked by uid 500); 11 Feb 2013 11:28:09 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 98577 invoked by uid 500); 11 Feb 2013 11:28:07 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 98554 invoked by uid 99); 11 Feb 2013 11:28:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 11:28:06 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [78.134.5.44] (HELO rovere.tirasa.net) (78.134.5.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 11:27:59 +0000 Received: from localhost (localhost [127.0.0.1]) by rovere.tirasa.net (Postfix) with ESMTP id 55EAA18505F for ; Mon, 11 Feb 2013 12:27:37 +0100 (CET) X-Virus-Scanned: amavisd-new at tirasa.net Received: from rovere.tirasa.net ([127.0.0.1]) by localhost (rovere.tirasa.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MukK36gc3WZa for ; Mon, 11 Feb 2013 12:27:34 +0100 (CET) Received: from [192.168.0.6] (mogano-wired.tirasa.net [192.168.0.6]) by rovere.tirasa.net (Postfix) with ESMTPSA id 05971184DDB for ; Mon, 11 Feb 2013 12:27:34 +0100 (CET) Message-ID: <5118D5A5.1000904@apache.org> Date: Mon, 11 Feb 2013 12:27:33 +0100 From: =?ISO-8859-1?Q?Francesco_Chicchiricc=F2?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: A generator with sitemap parameter in C3 References: In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 11/02/2013 12:07, gelo1234 wrote: > Question 1: > Can we have some example of this one ? > > > > > > > I mean, how to get sitemap parameter value from Java Generator code ? > btw. Request Parameters are obtained by the use of HttpContextHelper, > is this correct ? No: you can access map:parameter elements from within Java code in the same way how this is done in the XSLTTransformer [1]: consider that "source" is the only pre-defined parameter you have in any pipeline component, mapped to the 'src' XML attribute. > Question 2: > What is the best (optimal) way to include XML content generated from > servlet/controller? > > > > If the servlet is calling a REST controller there are 2 invocations > involved (one to gather data, the other one (with e.g. > string-template) to actually serialize the data). Is there any way > that REST controller could serialize the data itself ? without > invoking another servlet/Page ? Not that I know: anyway I am using similar includes in different production environments with high load and I've experienced no troubles so far. > Question 3: > If the generator is included in some transformer phase (via x:include) > does it still have access to original Request Parameters when invoked > with: > >