If I use a single standalone xsl stylesheet everything works fine. If I break the stylesheet into parts and use <xsl:include href="foo.xsl">
where foo.xsl is in the same directory as the main stylesheet,
it looks like the path name gets messed up and I get an
Had IO Exception with stylesheet file: foo.xsl
and further down in the stack trace I see
Caused by: java.io.FileNotFoundException: /some/wrong/path/foo.xsl
where /some/wrong/path/ is the path to the JBoss bin directory (I am running in JBoss). If I run the application using my own stylesheet classes,
it works fine. Note that Spring appears to read the main stylesheet just fine or it would never have seen the include.