From users-return-55665-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Sun Sep 21 08:33:24 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 50536 invoked from network); 21 Sep 2003 08:33:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Sep 2003 08:33:24 -0000 Received: (qmail 92749 invoked by uid 500); 21 Sep 2003 08:31:39 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 92718 invoked by uid 500); 21 Sep 2003 08:31:39 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 92695 invoked from network); 21 Sep 2003 08:31:38 -0000 Received: from unknown (HELO sati.virbus.de) (145.253.246.81) by daedalus.apache.org with SMTP; 21 Sep 2003 08:31:38 -0000 Received: from sati.virbus.de (localhost [127.0.0.1]) by localhost (SMTP Server) with ESMTP id ED4BB166A80 for ; Sun, 21 Sep 2003 10:31:37 +0200 (MEST) Received: from virbus.de (Bd82c.pppool.de [213.7.216.44]) by sati.virbus.de (SMTP Server) with ESMTP id CAAAC166A7D for ; Sun, 21 Sep 2003 10:31:36 +0200 (MEST) Message-ID: <3F6D629D.2070104@virbus.de> Date: Sun, 21 Sep 2003 10:34:37 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: de-de, de, en-gb, en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: RES: RES: XSP in XSL References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, you can generate the XSP first: Joerg Jose Antonio Rosa dos Santos Junior wrote: > Thanx Luca. IŽll try that. > > I saw somewhere an example of a pipeline using 2 matchers and i thought i could use the output of a serializer as an input of the generator of the next matcher. > > Cheers > > Jose Antonio > > -----Mensagem original----- > De: Luca Morandini [mailto:luca.morandini1@tin.it] > Enviada em: sexta-feira, 19 de setembro de 2003 13:46 > Para: users@cocoon.apache.org > Assunto: Re: RES: XSP in XSL > > > Jose Antonio Rosa dos Santos Junior wrote: > > >>hmmm.. Maybe. HavenŽt thought that way. Can i link two pipelines to do that instead? >> >>IŽm sending what i am trying to do: >> >>stemap.xmap: >>... >> >> >> >> >> >> >> >>... >> >>pagina-fnde2html.xsl: >>... >> >> ... >> >> >> SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy"); >> >> >> format.format(new Date()) >> >> ... >> >>... >> >>teste.xsp: >> >> >>> xmlns:xsp="http://apache.org/xsp" >> >> > > > No, you cannot. > > Specifically, you cannot use XSP tags in your XSL: XSP is interpreted > only in the generation stage. > What XSL does is just to transform (using the XSL language, not the XSP > one) the output produced by the XSP. > > If you really can't do without Java in the XSL, take a look at the XSL > extension of Xalan, using which you will be able call Java within an > XSL, like: > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format" > xmlns:java="http://xml.apache.org/xslt/java" > > > ... select="java:java.text.SimpleDateFormat.new('dd-MM-yyyy')"/> > > > ... > > ...which, coincidentally, you were trying to achieve in the first place > I suppose :) > > Regards, > > ------------------------------------------ > Luca Morandini --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org