Could XSLTService take a parameter for XSLT during transformation?  I use
jsp and my page can create a html string, but my requirement is to pass in a
parameter to the myXSL.xsl stylesheet. Does XSLTService support this
function?

<%@ page
import="java.io.File,java.io.FileReader,org.apache.turbine.services.xslt.Tur
bineXSLT"%>
<%
 File f = new File("../myXML.xml");    //make a file obj for checking file
existence, i.e. get f.exists()
 FileReader fr = new FileReader(f) ;
%>
<html>
<body>
<%=TurbineXSLT.transform("myXSL.xsl",fr)%>
</body>
</html>

regards,
mingfai


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to