Код: Выделить всё
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)
{
}
Код: Выделить всё
file:///C:/[...Path to XSLT...]/Mapping.xslt
Код: Выделить всё
file:///app/[...Path to XSLT...]/Mapping.xslt
"System.InvalidOperationException: эта операция не поддерживается для относительного URI".
Мне оба URI кажутся абсолютными, поэтому я не совсем понимаю ошибку.
Я бы хотел, чтобы это работало в обеих средах.>
Подробнее здесь: https://stackoverflow.com/questions/796 ... -uri-issue
Мобильная версия