xsl-list
[Top] [All Lists]

Re: Generating jsp java code in .xsl files

2004-11-19 04:47:57

Geia sou Apostole,

Apostolidis Apostolos wrote:

  Hi all! I am trying to generate java code (intended for a jsp page)
inside a .xsl file. I want to produce an output similar to :

<% String foo = "a_value"; %>.


Jarno is right with his suggestion, but you are using XSLT to output invalid markup. IMHO you can have a clean solution by one of:

* using XSLT to output XML (meaning JSP 2.0 XML syntax, JSTL etc)
* using XSLT to output text, preserving the output format you already feel confortable with
* using another "template" tool like velocity

hth,

Manos



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>