G'Day Brian,
>
> The Turbine XSLT service works well. The documentation is a little
> sparse, but here's a little code snippet from a screen class:
>
> // Get your XML. I'm using a String, but
> // but you could simply create a FileReader instead
> String xmlSchema = getXMLSchema();
>
> // This is just a filename. The location for the
> // templates is defined in TurbineResources.properties
> String xslTemplate = "MyTemplate.xsl";
>
> // Set up a StringReader for the XML String:
> Reader reader = new StringReader(xmlSchema);
>
> // Send the XML and the XSL template to the transformer:
> TurbineXSLTService xslt = new TurbineXSLTService();
> xslt.init();
>
> String sOutput = xslt.transform(xslTemplate, reader);
>
> context.put("formOutput", sOutput);
>
I have copied your approach, however, the xslt.transform()
simply returns the XML file - it isn't transformed.
I have tested my XML and XSL
using Xalan but it wont work from Turbine.
Any ideas what I might be doing wrong?
thanks
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
|