ERROR | illegal apply-imports because of no current template: ~s |
CAUSE | apply-imports was used even when there was no current template possibly with in for-each. |
ACTION | Make sure that apply-imports are invoked only if there is a current template and it is not in a xsl: for-each. |