Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP from XSLT

843833Aug 30 2001 — edited Apr 23 2002
I want to generate my JSPs using XSLT. We have many pages that have very similar layout, just different content. Therefore, I would like to create a XSLT stylesheet that contains JSP tags, so that I can use XSLT to generate the actual JSP. However, the 1.0 tags are not well-formed XML.

I have tried using the JSP XML elements described in Section 7.6 of the JSP 1.1 spec. However, I do not understand section 7.6.2. My non-XML JSP fragment looked like this:

<input
type="hidden"
name="<%= myName %>"
value="<%= myValue %>">

Does 7.6.2 really mean to convert it to:

<input
type="hidden"
name="%= myName '%"
value="%= myValue '%">

It seems odd.

Has anyone ever tried to generate JSPs using XSLT? If so, I would be interested in your experience with it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2002
Added on Aug 30 2001
1 comment
119 views