A warning is thrown whenever the same file is imported multiple times in an XSL transformation. Usually something along the lines of Stylesheet module file:/Users/blake/Documents/workspace/course-connect-parent/course-connect-publisher/src/main/xsl/config.xsl is included or imported more than once. This is permitted, but may lead to errors or unexpected behavior
However, it seems that if the same xsl needs to be imported by multiple 'children' xsl calls (say, a util.xsl containing important functions), this situation is unavoidable.
Is there a way to avoid these warnings, or a better way to do things?
Here is the problem setup:
FILE_A.xsl
imports FILE_B.xsl and FILE_C.xsl
uses functions/parameters from util.xsl, which it gets from FILE_B.xsl & FILEC.xsl
calls templates in FILE_B.xsl
calls templates in FILE_C.xsl
FILE_B.xsl
imports util.xsl
contains templates used by FILE_A.xsl
uses functions/parameters from util.xsl
FILE_C.xsl
imports util.xsl
contains templates used by FILE_A.xsl
uses functions/parameters from util.xsl
util.xsl
Contains functions/variables used by FILE_A, FILE_B, FILE_C