.NET Core 3.0应用程序是否有可用的XSLT和XQuery处理器? [英] Are there any XSLT and XQuery Processors available for .NET Core 3.0 apps?

查看:152
本文介绍了.NET Core 3.0应用程序是否有可用的XSLT和XQuery处理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Saxon XSLT和XQuery处理器-免费家庭版用于我的.NET应用.我只需要XSLT 2.0(因为.NET不支持XSLT 3.0).现在,我已从.NET Framework移至.NET Core,我注意到Saxon尚不支持.NET Core,因为在为Saxon安装Nuget软件包时,出现以下错误.

I've been using Saxon XSLT and XQuery processor - Free home edition for some of my .NET apps. I need only XSLT 2.0 (since .NET does not support XSLT 3.0). Now that I've moved from .NET Framework to .NET Core, I noticed that the Saxon has not yet supported .NET Core since when installing a Nuget package for Saxon, I get the following error.

问题:有人知道我可以在需要XSLT 2.0和XQuery处理的.NET Core项目中使用其他替代方法吗?

Question: Are there other alternatives that someone knows I can use for my .NET Core projects that need XSLT 2.0 and XQuery processing?

由于以下错误,我的代码无法编译,因为它无法识别XdmNodeXsltTransformer等.

Because of the following error my code does not compile since it does not recognize XdmNode, XsltTransformer, etc.

使用'.NETFramework,Version = v4.6.1,.NETFramework,Version = v4.6.2,.NETFramework,Version = v4.7,.NETFramework,Version = v4恢复了软件包'Saxon-HE 9.9.1.5'. 7.1,.NETFramework,Version = v4.7.2,.NETFramework,Version = v4.8',而不是项目目标框架'.NETCoreApp,Version = v3.0'.该软件包可能与您的项目不完全兼容.

Package 'Saxon-HE 9.9.1.5' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.0'. This package may not be fully compatible with your project.

推荐答案

XmlPrime https://www.xmlprime .com/xmlprime/是XQuery 3.1和XSLT 2.0的纯.NET实现,它是针对.NET框架开发的,最新版本4也可与Mono一起使用.

XmlPrime https://www.xmlprime.com/xmlprime/ is a pure .NET implementation of XQuery 3.1 and XSLT 2.0, it was developed for the .NET framework and the latest version 4 also to work with Mono.

我已经安装了4.1的当前试用版,并使用VS 2019编写了.NET Core 3控制台应用程序,在其中我添加了XmlPrime安装目录的两个程序集XmlPrime.dll和XmlPrime.ExtensionMethods.dll作为对该文件的引用. .NET核心项目.

I have installed the current trial version of 4.1 and have written a .NET Core 3 console application with VS 2019 where I have added the two assemblies XmlPrime.dll and XmlPrime.ExtensionMethods.dll of the XmlPrime installation directory as references to the .NET core project.

https://github.com/XmlPrime/Examples/改编的两个简单示例tree/master/Query https://github.com/XmlPrime/然后使用examples/tree/master/Transform 正常运行,以在.NET Core 3应用程序中执行XQuery 3和XSLT 2.

Two simple examples adapted from https://github.com/XmlPrime/Examples/tree/master/Query and https://github.com/XmlPrime/Examples/tree/master/Transform then run fine to execute XQuery 3 and XSLT 2 in the .NET Core 3 app.

因此从技术上讲XmlPrime(至少经过一些表面测试)似乎是.NET Core 3的选项,但我不知道他们项目的状态,但据我所知,他们仅偶尔更新其试用版并拥有停止在线销售商业许可证.您可能需要咨询 https://www.xmlprime.com/xmlprime/contact.htm 询问他们是否以其他方式出售正式许可证.

So technically XmlPrime, at least with some superficial tests, seems an option for .NET Core 3, I don't know about the state of their project however, as far as I know they only occasionally update their trial version and have stopped to sell commercial licenses online. You might need to enquire at the contact details of https://www.xmlprime.com/xmlprime/contact.htm to ask whether they sell full licenses some other way.

这篇关于.NET Core 3.0应用程序是否有可用的XSLT和XQuery处理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆