Announcement Announcement Module
No announcement yet.
XSLT stylesheet include causes IO Exception Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • XSLT stylesheet include causes IO Exception


    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: /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.

    Thoughts? Thanks!

    John Westerkamp

  • #2
    are you extending AbstractXsltView? What version of Spring are you using?

    This should have been fixed in 1.1 final (see



    • #3
      Hi Darren,

      Yes, I was aware of that thread and must have applied the patch or rebuilt the jar incorrectly. After seeing your post, I got the patch applied correctly, and it worked like a charm.

      Thanks for your quick reply!

      John Westerkamp