testXslUnitTrans_parambased("replace", "xsltransunit.expected5");
}
public void testXslUnitTrans_parambased(String action, String expectedFileName) {
Smooks smooks = new Smooks();
SmooksResourceConfiguration res = new SmooksResourceConfiguration("p", "<z id=\"{@id}\">Content from template!!</z>");
String transResult = null;
System.setProperty("javax.xml.transform.TransformerFactory", org.apache.xalan.processor.TransformerFactoryImpl.class.getName());
res.setResourceType("xsl");
res.setParameter(XslContentHandlerFactory.IS_XSLT_TEMPLATELET, "true");
res.setParameter("action", action);
SmooksUtil.registerResource(res, smooks);
try {
InputStream stream = getClass().getResourceAsStream("htmlpage.html");
ExecutionContext context = smooks.createExecutionContext();