Greetings,
I have a simple java bean developed for Xindice. It covers the usual count/query/delete functions using XML-RPC. Everythings works as intended except that I haven't found a good way to transform the output XML to HTML using XSLT. (eXist has a parameter for a stylesheet but I haven't seen similar code in Xindice.)
Does anyone have an example which would replace the following in my XML-RPC code:
try {
String result = (String)
client.execute("db.getDocument", params);
response.setContentType("text/xml");
PrintWriter out = response.getWriter();
String uri = request.getRequestURI();
out.println(result);
} A best case scenario would be a separate transform.java file in my bean. If I could call this file to accept two variables (String result and a string representing my xsl file), I'd be set.
I'm using Tomcat 4.0.3 and Xindice 1.0rc2 under both Mac OS X and Solaris 8.
Thanks for your time, JRH
