I have xslt sheet the have include tags for another xslt files, the all files compiled right and error free but when run the following code i got exception
var myXslTrans = new XslCompiledTransform();
XsltSettings sets = new XsltSettings();
sets.EnableScript = true;
myXslTrans.Load("visio.xsl",sets,null);
myXslTrans.Transform("page1.xml", "page.html");
following the exception text and stacktrace:
System.Xml.Xsl.XslLoadException:
XSLT compile error. An error occurred \bin\Debug\visio.xsl(116,40).
---> System.Xml.XmlException: Resolving of external URIs was prohibited.
at System.Xml.Xsl.Xslt.XsltLoader.Load(XmlReader reader)
at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver)
at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at System.Xml.Xsl.XslCompiledTransform.Load(String stylesheetUri, XsltSettings settings, XmlResolver stylesheetResolver)
I try to solve the problem by this but the problem still exist
path
variable, but you do not use it. Did you mean to load the files from that location? In that case you should probably append it to the relative paths you have given. – Textuary