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