using document() function in .NET XSLT generates error

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-04-25T23:25:05Z Indexed on 2010/04/26 6:33 UTC
Read the original article Hit count: 349

Filed under:
|
|

I'd like to use embedded resources in my XSLT file, but while invoking 'document(...)' C# complains that "Error during loading document ..."

I'd like to use defined resources in XSLT file and get them by this: "document('')//my:resources/"...

How can i do that??

ex xsl:

<?xml version="1.0" encoding="utf-8"?>
<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">

     <my:resources>
      <one>tryb</one>
     </my:resources>

     <xsl:variable name="res" select="document('')/*/my:resources/("/>
</xsl:stylesheet>

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.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about c#