I am a beginner in XML/XSL and need help in making remote XML news feed work with my own. I have xslt that joins remote and local xml and transforms them to joined 3rd file on local server. The only problem is that I cannot figure out how to make XSL document() function work with XML document which is defined by http://www.test.com/test.xml link. It seems to only work with local files?

working example:
<xsl:apply-templates select="document('xq485.xml')"/>

not working:
<xsl:apply-templates select="document('http://www.test.com/test.xml')"/>

I tried the other way and used PHP xslt_process function, but it also doesn't accept http:// links for source xml document, only local files.

Hope someone can point me to right diection or where could I find the solution for making xsl use remote xml document and transform it to new local xml document?

Thank you in advance!