ByteArrayOutputStream oOutputStream = new ByteArrayOutputStream();
ByteArrayInputStream oXMLInputStream = new ByteArrayInputStream(sXMLInput.getBytes(sEncoding));
Transformer oTransformer = StylesheetCache.newTransformer(sStyleSheetPath);
if (null!=oProps) setParameters(oTransformer, oProps);
StreamSource oStreamSrcXML = new StreamSource(oXMLInputStream);
StreamResult oStreamResult = new StreamResult(oOutputStream);
if (DebugFile.trace) DebugFile.writeln("Transformer.transform(StreamSource,StreamResult)");
oTransformer.transform(oStreamSrcXML, oStreamResult);
oStreamSrcXML = null;
oXMLInputStream.close();
String sRetVal = oOutputStream.toString(sEncoding);