How to resolve XSL includes in a Transformation that loads XSL from a String?
问题 .NET 2.0/VS2005 I am trying to use the XslCompiledTransform class to perform a XSL Transformation. I have two XSL files, the first of which includes a reference to the other in the form of an <xsl:include> statement : Main.xsl: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="Included.xsl" /> ... ... </xsl:stylesheet> Now, If I could load the "Main.xsl" file itself as a URI, my transformation code would be as simple as : // This is a function