S. Aziz Kazdal
S. Aziz Kazdal

Reputation: 1186

schematron validation using XSLT 2.0 file on net core (net 5)

I have 3 XML files which contains some rules that an XML document has to be fit in that rules. I have converted these rule sets using oxygen xml editor to XSLT 2.0 file (some rules has XSLT function) and I need to work this XSLT 2.0 file on net core to validate an XML document against that rule set. As I understand net core or net 5 don't support XSLT 2.0 and some library like Saxon does not support net core +. So is there any workaround to validate XML document using XSLT file ? How can convert to rule set to XSLT 1.0 file so net core can handle validation process. ? Or is there any other way to do the job?

Upvotes: 0

Views: 1191

Answers (1)

Martin Honnen
Martin Honnen

Reputation: 167716

SaxonCS for .NET Core 5 has been released recently and allows you to run XSLT 2 or XSLT 3 based Schematron implementations like Schxslt with .NET Core 5 or 6.

SaxonCS is available on NuGet https://www.nuget.org/packages/SaxonCS or from Saxonica https://www.saxonica.com/download/dotnet.xml under a commercial package.

Upvotes: 1

Related Questions