XsltTransmogrifier implements Transmogrifier<Source, T> { @Override public T zap(Source source, Object... params) { ResultHolder<T> accessor = ResultHolderFactory.create(outputFormat); Result result = accessor.createResult(); doZap(source, result, params); return accessor.getResult(); } @SuppressWarnings("unchecked")  XsltTransmogrifier();  XsltTransmogrifier(Class<T> outputFormat);  XsltTransmogrifier(Class<T> outputFormat,
            Map<String, Object> staticParams); Map<String, Object> getStaticParams(); void setStaticParams(Map<String, Object> staticParams); @Override T zap(Source source, Object... params);  }
@Test public void testConvertString() throws IOException { Source source = new StreamSource(new ClassPathResource( "xslt/createPatient.xml").getInputStream()); String result = transformer.zap(source, "xslt/createPatient.xslt"); assertNotNull(result); }