JSP from XSLT
843833Aug 30 2001 — edited Apr 23 2002I 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.