I have a XML with data and XSL with the layout information AND JSP Java code in it.
How can I tell orion to:
1. Put XML and XSL together and output JSP.
2. Then compile the JSP output to html.
I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP
output. For example, here is the code.
Thanks
----- car.xml -----
<?xml version="1.0?>
<?xml-stylesheet href="car.xsl" type="text/xsl"?>
<% // Query database to get car information
String sCarName="Toyota";
%>
<car>
<name><%=sCarName%></name>
</car>
---- car.xsl --------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> " version="1.0">
<xsl:output method="html"/>
<xsl:template match="car">
<html>
<head>
</head>
<body>
<h1><xsl:value-of select="name"/></h1>
<xsl:text disable-output-escaping="yes">
<![CDATA[<%int (int i=0;i<10;i++)
{
%><%=i%><%
}
%>]]>
</xsl:text>
</body>
</html>
</xsl:template>
</xsl:stylesheet>