code: public static void transform(final Source xmlSource, final Source xsltSource,
  		final OutputStream outputStream)
  		throws TransformerConfigurationException, TransformerException
  	{
  		final Transformer transformer = getTransformer(xsltSource);
  		transformer.transform(xmlSource, new StreamResult(outputStream));
  	}
docs: Transform.
  
  @param xmlSource
  the xml source
  @param xsltSource
  the xslt source
  @param outputStream
  the output stream
  @throws TransformerConfigurationException
  is thrown if there are errors when parsing the <code>Source</code> or it is not
  possible to create a <code>Transformer</code> instance.
  @throws TransformerException
  is thrown if an unrecoverable error occurs during the course of the
  transformation.