writeFile(log3, "<test sub=\"1\">3</test>");
InputStream in = new FileInputStream(log2);
StringWriter out = new StringWriter();
XSLTag tag = new XSLTag();
final MockPageContext pageContext = new MockPageContext();
final MockServletContext servletContext = (MockServletContext) pageContext.getServletContext();
servletContext.setBaseResourceDir(logDir);
tag.setPageContext(pageContext);
tag.setXslRootContext("/");
tag.transform(log3, in, out);
assertEquals("test=3.1", out.toString());