XSL imports and includes as well as xpath's document() function shouldn't operate directly with files, but should simulate regular http requests instead. Custom URL resolver can simulate this behavior by dispatching requests to current servlet context.
As a part of this task there has to be introduced some request attribute that would prevent filter from doing a transformation. Since xpath's document() function should obtain raw file data and not the transformed data. There should be however some filter settings for this since it would allow multi-step xsl trasformation which could be also helpful sometimes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As a part of this task there has to be introduced some request attribute that would prevent filter from doing a transformation. Since xpath's document() function should obtain raw file data and not the transformed data. There should be however some filter settings for this since it would allow multi-step xsl trasformation which could be also helpful sometimes.