Groups | Blog | Home
all groups > dotnet xml > february 2005 >

dotnet xml : XSL document() function problem


news.microsoft.com
2/14/2005 10:54:37 AM
I am writing an XSL file to load a node set with XSL document() function
with the syntax as follows:
<xsl:variable name="var1" select="document('..\res\xmlfile.xml')/Accounts"/>
Unfortunately it's doing nothing.
Later I move xmlfile.xml to the same directory as the xsl file, as follows:
<xsl:variable name="var1" select="document('xmlfile.xml')/Accounts"/>
Still the same.

Any help is very appreciated.


Oleg Tkachenko [MVP]
2/15/2005 2:36:54 PM
[quoted text, click to view]

Make sure you are passing XmlResolver to Transform() method of
XslTransform class.


--
Oleg Tkachenko [XML MVP, MCP]
AddThis Social Bookmark Button