xsl-list
[Top] [All Lists]

Re: creating a jsp file using xslt

2004-07-03 06:39:47
C J wrote:

Does anyone have an example that transforms some xml
data using xslt to produce a jsp page?

You need to be more specific. What version of JSP are you using (if 2.0 it is much simpler)?

Describe more of what you want to do. An answer to your question could be:

<xsl:template match="/">
 <jsp:scriptlet>
   String foo = "<xsl:value-of select="rootElem/@attr1"/>";
 </jsp:scriptlet>
 // jsp 1.2
 <jsp:expression>foo</jsp:expression>
 // jsp 2.0
 ${foo}
</xsl:template>

best,
-Rob


<Prev in Thread] Current Thread [Next in Thread>
  • Re: creating a jsp file using xslt, Robert Koberg <=