Hi
In looking at the extract of this code, how come not implementing
a pull tool. I implemented a tool which takes in a xsl file and the xml
file is defined in the TR.props.
Regards
Ian Lim
----- Original Message -----
From: "Ming Fai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 04:15 PM
Subject: XSLTService takes parameter
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]