title: using document() function in .NET XSLT generates error
body: <p>I'd like to use embedded resources in my XSLT file, but while invoking 'document(...)' C# complains that "Error during loading document ..."</p>
  
  <p>I'd like to use defined resources in XSLT file and get them by this: "document('')/<em>/my:resources/</em>"...</p>
  
  <p>How can i do that??</p>
  
  <p>ex xsl: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:my="xslt-gruper-v1.2.xsl" exclude-result-prefixes="my"&gt;
  
       &lt;my:resources&gt;
        &lt;one&gt;tryb&lt;/one&gt;
       &lt;/my:resources&gt;
  
       &lt;xsl:variable name="res" select="document('')/*/my:resources/("/&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>How can i get access to such structure without exceptions in C#? I'll add that during static transform via ex. Opera everything works fine.</p>