turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Baragry <Jason.Bara...@nr.no>
Subject Re: Turbine and XML / XSLT (again)
Date Thu, 12 Jun 2003 08:06:36 GMT
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


Mime
View raw message