[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Generating jsp java code in .xsl files

Subject: RE: Generating jsp java code in .xsl files
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Fri, 19 Nov 2004 13:33:23 +0200
jsp java code
Hi,

>    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"; %>. How can I achieve this?? The
> result I am
> getting is either a print of the aforementioned code in the
> html output
> of the jsp page or a null value in the html code.
>
> I have tried it like this (mainly) :
>
> <xsl:text disable-output-escaping="yes">
> 	&lt;% String foo = "a_value"; %&gt;
> </xsl:text>

And this should generate

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

(Note the whitespace.) If you're not getting that, your XSLT engine probably
has a bug in it. If your problem is compiling XSLT generated JSP into a
Servlet and running that, it's off-scope for this mailing list.

Cheers,

Jarno

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.