Code: Select all
processor = new Processor(configStream, new Uri("file://"));
uri = new Uri(new FileInfo(styleSheetPath).FullName);
try
{
var compiler = processor.NewXsltCompiler();
using FileStream styleSheetStream = new(styleSheetPath, FileMode.Open, FileAccess.Read);
Executable = compiler.Compile(styleSheetStream, uri);
}
catch (Exception ex)
{
}
Code: Select all
file:///C:/[...Path to XSLT...]/Mapping.xslt
Code: Select all
file:///app/[...Path to XSLT...]/Mapping.xslt
System.InvalidOperationException: Dieser Vorgang wird für einen relativen URI nicht unterstützt.
Mir scheinen beide URIs absolut zu sein, daher verstehe ich den Fehler nicht wirklich.
Ich möchte, dass dies in beiden Umgebungen funktioniert.
Mobile version