如何在Excel 2010中使用xsl document()函数?

我有一个xsl样式表的xml文档,它使用如下的document()函数;

<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="skapa_statisk_import.xsl" type="text/xsl" ?> <filelist> <file name="188702109342.xml"/> <file name="189001019802.xml"/> <file name="189612115452.xml"/> </filelist> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:import href="formatera_excel.xsl"/> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <Testpersoner> <xsl:for-each select="/filelist/file"> <xsl:apply-templates select="document(@name)/*" /> </xsl:for-each> </Testpersoner> </xsl:template> <xsl:template match="Testperson"> <xsl:copy> <xsl:apply-templates select="@* | node"/> <xsl:apply-imports/> </xsl:copy> </xsl:template> </xsl:stylesheet> 

我需要做的是打开xml文件(并应用样式表),但是这会给出错误“违反了AllowDocumentFunction约束”。 据我所知,这是MSXML中的一个属性,显然设置为false。

我无法find任何设置在Excel中更改此属性,有没有任何解决方法?