cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Antonio Rosa dos Santos Junior" <>
Subject RES: XSP in XSL
Date Fri, 19 Sep 2003 16:23:57 GMT
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:

    <map:match type="wildcard" pattern="*.xsp">
      <map:generate type="serverpages" src="{1}.xsp"/>
	  <map:transform type="xslt" src="pagina-fnde2html.xsl"/>
      <map:serialize type="html"/>

	<xsl:template match="pagina">
	<!-- this doesn´t work --> 
		SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
		format.format(new Date())


<?xml version='1.0' encoding='ISO-8859-1'?>

 <titulo>Nheco nheco</titulo>
	<!-- this works -->
		new Date()

Jose Antonio

-----Mensagem original-----
De: Luca Morandini []
Enviada em: sexta-feira, 19 de setembro de 2003 13:10
Assunto: Re: XSP in XSL

Jose Antonio Rosa dos Santos Junior wrote:
> Hi
> I´m trying to put some java code in my XSL file but it seems to be not working. Every
xsp tag i put in it is ignored, and the java code is viewed in the generated HTML page.
> I also made a separated logic sheet, but it only works in my XSP file. If i put it in
the XSL file it is ignored too.
> Am i doing something wrong?
> Jose Antonio

wait, XSP is a interpreted by a "generator", while XSL is used in a 
"transformer"... aren't you mixing the two concepts ?

Could you provide us with the relevant sitemap portion ?


                Luca Morandini
                GIS Consultant

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message