Code example for StreamSource

Methods: setSystemId

0
		} catch (TransformerConfigurationException e1) {
			logger.error("Transformation error:"+e1.getMessage());
		} 
		try { 
			StreamResult result = new StreamResult(out);
			StreamSource docSrc = new StreamSource(xml);
			docSrc.setSystemId(xml);
			tr.transform(docSrc, result);
		} catch (Exception e) {
			logger.error("Transformation error:"+e.getMessage());
		} finally { 
			 
		} 
	} 
	 
	@Test 
	public void testGuiGenerate() throws Exception{ 
 
		File out = new File("src/sample/ui/Gui_OrganizationRegistratonConfiguration.html");
		File xsl = new File("src/sample/ui/gui-generator.xsl");
		File xml = new File("src/sample/ui/OrganizationRegistratonConfiguration.xml");