I am having an .NET Core 3.1 Application and an XSLT 2.0 Script. The script should now be executed by the Application.
First I tried:
//Create a new XslCompiledTransform and load the compiled transformation.
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(typeof(Transform));
// Execute the transformation and output the results to a file.
xslt.Transform("books.xml", "discount_books.html");
But this just seems to work on .NET Framework and just for XSLT 1.0.
No I found the NuGet-Package Saxon-HE-fixedrefs, which should be compatible to .NET core according to the description. But when compiling I get an error in my first line
Saxon.Api.Processor proc = new Saxon.Api.Processor();
"System.TypeInitializationException: "The type initializer for 'net.sf.saxon.Configuration' threw an exception."
FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. "
Is there any workaround for this?