From bd520e321de76452679e1597310d9bb8f77ab555 Mon Sep 17 00:00:00 2001 From: Martin Honnen Date: Sun, 19 May 2024 15:48:02 +0200 Subject: [PATCH] Update to IKVM 8.8 for .NET 6 and .NET 8 support, continuing .NET 4.8 framework support, of course --- SaxonHE11s9apiExtensions/README.md | 13 +++++++------ .../SaxonHE11s9apiExtensions.csproj | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/SaxonHE11s9apiExtensions/README.md b/SaxonHE11s9apiExtensions/README.md index 3c46745..d1a2aea 100644 --- a/SaxonHE11s9apiExtensions/README.md +++ b/SaxonHE11s9apiExtensions/README.md @@ -2,22 +2,23 @@ Extension methods that help/ease the task of using Saxon HE 11 Java s9api from .NET code This is a sample project outlining my successful attempt to apply https://github.com/ikvm-revived/ikvm and -https://github.com/ikvm-revived/ikvm-maven to use the open-source Saxon HE 11 Java XSLT 3.0, XQuery 3.1 and XPath 3.1 library in .NET 6 code or .NET framework 4.8 code. +https://github.com/ikvm-revived/ikvm-maven to use the open-source Saxon HE 11 Java XSLT 3.0, XQuery 3.1 and XPath 3.1 library in .NET 6 or .NET 8 code or .NET framework 4.8 code. Please understand that this is my own experiment, it uses the official Saxon HE 11 release from Maven, but the integration with IKVM and IKVM Maven is an experimental work of my own, not in any way an officially tested and supported product by Saxonica, the company that has produced Saxon. Feel free to try and use it under the Mozilla Public License 2.0. -Understand that this is work in progress and kind of experimental, I don't have access to a complete test suite of unit tests to rigorously test this, I nevertheless feel it can be useful for folks to at least know about this option to run [XSLT 3.0](https://www.w3.org/TR/xslt-30/), [XPath 3.1](https://www.w3.org/TR/xpath-31/) and [XQuery 3.1](https://www.w3.org/TR/xquery-31/) in .NET 6 code or .NET framework 4.8 code. +Understand that this is work in progress and kind of experimental, I don't have access to a complete test suite of unit tests to rigorously test this, I nevertheless feel it can be useful for folks to at least know about this option to run [XSLT 3.0](https://www.w3.org/TR/xslt-30/), [XPath 3.1](https://www.w3.org/TR/xpath-31/) and [XQuery 3.1](https://www.w3.org/TR/xquery-31/) in .NET 6 or .NET 8 code or .NET framework 4.8 code. To use Saxon under .NET, the coding is mainly done against the Java s9api API of Saxon HE 11 although I have provided some extension methods as helpers to ease the task of using .NET FileInfo or Stream instead of needing to know about and use Java specific java.io.File or Stream classes/APIs. -With this new release using IKVM 8.7.1 and IKMV.Maven.Sdk 1.6.1, it should now be possible to both use and build the packages under Windows as well as MacOs. +With this new release using IKVM 8.8.9 and IKMV.Maven.Sdk 1.6.9, it should now be possible to both use and build the packages under Windows as well as MacOs and have a single NuGet package targetting .NET 6 and .NET 8 as well as .NET framework 4.8. The basic usage is to to install the NuGet package IKVM.Maven.Sdk to be able to pull in the Saxon HE 11 (e.g. 11.6) and the XmlResolver code it uses directly from Maven: ``` - + + @@ -28,8 +29,8 @@ This extension project is also on NuGet so you can add it in your project e.g. ``` - - + + diff --git a/SaxonHE11s9apiExtensions/SaxonHE11s9apiExtensions.csproj b/SaxonHE11s9apiExtensions/SaxonHE11s9apiExtensions.csproj index ab50644..d7fd155 100644 --- a/SaxonHE11s9apiExtensions/SaxonHE11s9apiExtensions.csproj +++ b/SaxonHE11s9apiExtensions/SaxonHE11s9apiExtensions.csproj @@ -1,18 +1,18 @@  - net6.0;net48 + net6.0;net8.0;net48 disable disable True MPL-2.0 - Saxon HE 11 s9api Extension Helpers to use IKVM compiled Saxon HE 11 with .NET 6 and .NET framework 4.8 - 11.6.8.7 + Saxon HE 11 s9api Extension Helpers to use IKVM compiled Saxon HE 11 with .NET 6 or with .NET 8 or with .NET framework 4.8 + 11.6.9 Martin Honnen This is an extension method library to ease the use of an IKVM compiled version of Saxon HE 11 Java in .NET 6 applications. - Copyright 2023 Martin Honnen + Copyright 2024 Martin Honnen xslt;XSLT;xpath;XPath;xquery;XQuery;xslt-3.0;XSLT-3.0;xquery-3.1;XQuery-3.1;xpath-3.1;XPath-3.1;json - This is the first release using Saxon HE 11.6 targetting both .NET framework 4.8 as well as .NET 6, using IKVM 8.7.1 and IKVM.Maven.Sdk 1.6.1 + This is the first release using Saxon HE 11.6 targetting both .NET framework 4.8 as well as .NET 6 and .NET 8, using IKVM 8.8.0 and IKVM.Maven.Sdk 1.6.9 True https://github.com/martin-honnen/SaxonHE11s9apiExtensions True @@ -20,7 +20,8 @@ - + +