I have written two versions of an XSLT that work on XML Spy and use the document() function.  One uses an internal lookup, and the other a lookup from a file.  Neither work from XALAN.  The XALAN functions are called from Solr Response writers.

 

Many Thanks,

 

Elaine