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.