Using JAXB to generate a XML doc from a object model. Need to then turn that XML doc into a WordML document using a server side XSL transformtion. Have the XSl working fine, but I can't seem to get around the "FileNotFound" error. I have ensured that the XSL file is located in the classpath.
It's located in
com/test/util/xsl/testFile2Word.xsl
File xsltfile = new File("com/test/util/xsl/testFile2Word.xsl"); File xsltfile = new File("/com/test/util/xsl/testFile2Word.xsl"); File xsltfile = new File("./com/test/util/xsl/testFile2Word.xsl"); File xsltfile = new File("../com/test/util/xsl/testFile2Word.xsl");