You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used Saxon-HE in my old .net framework projects. Now I'm developing a new project with .net 6 and discovered Saxon-HE is no more usable. I discovered you project and installed the following from nuget
SaxonHE10Net31 10.8.0-alpha6
SaxonHE10Net31Api 10.8.0-alpha6
I use this code to perform the xslt transform
`
using Saxon.Api;
[...]
public static string XSLTtransform(string XsltPath, string InputXml)
{
Processor processor = new Processor(false);
using (StringReader sr = new StringReader(InputXml))
{
DocumentBuilder db = processor.NewDocumentBuilder();
db.BaseUri = new Uri(XsltPath);
XdmNode input = db.Build(sr);
XsltTransformer myXslTrans = null;
myXslTrans = processor.NewXsltCompiler().Compile(new Uri(XsltPath)).Load();
myXslTrans.InitialContextNode = input;
//myXslTrans.BaseUri = new Uri(XsltPath);
myXslTrans.BaseOutputUri = new Uri(XsltPath);
Serializer serializer = processor.NewSerializer();
using (StringWriter sw = new StringWriter())
{
serializer.SetOutputWriter(sw);
myXslTrans.Run(serializer);
return sw.ToString();
}
}`
I get this exception
System.IO.FileNotFoundException: 'Could not load file or assembly 'Saxon.HE, Version=10.8.0.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58'. Cannot find specified file.'
Am I missing something?
Thans for your support
The text was updated successfully, but these errors were encountered:
as that way the Java version of Saxon HE is pulled from the Maven repository and cross-compiled with IKVM for .NET core and the created dll is then available in your project.
I used Saxon-HE in my old .net framework projects. Now I'm developing a new project with .net 6 and discovered Saxon-HE is no more usable. I discovered you project and installed the following from nuget
I use this code to perform the xslt transform
`
using Saxon.Api;
[...]
public static string XSLTtransform(string XsltPath, string InputXml)
{
Processor processor = new Processor(false);
using (StringReader sr = new StringReader(InputXml))
{
DocumentBuilder db = processor.NewDocumentBuilder();
I get this exception
System.IO.FileNotFoundException: 'Could not load file or assembly 'Saxon.HE, Version=10.8.0.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58'. Cannot find specified file.'
Am I missing something?
Thans for your support
The text was updated successfully, but these errors were encountered: