C# and XSLT (using document() function in 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/25 23:33 UTC
Read the original article Hit count: 835

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">

tryb

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

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#