public static Document transform(String testFileName, String styleSheetName) throws TransformerException {
final InputStream styleSheetResource =
XmlTestUtilities.class.getResourceAsStream(styleSheetName);
final InputStream inputResource = XmlTestUtilities.class.getResourceAsStream(testFileName);
Transform myTransform = new Transform(new InputSource(inputResource),
new InputSource(styleSheetResource));
assertNotNull("Can't read the XSL file to use for transform", styleSheetResource);
assertNotNull("Can't read the XML file to test", inputResource);
return myTransform.getResultDocument();
}