|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: creating a jsp file using xslt
C J wrote:
You need to be more specific. What version of JSP are you using (if 2.0 it is much simpler)?Does anyone have an example that transforms some xml data using xslt to produce a jsp page? 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








