I want to transform json to json and came to know that XSLT 3.0 supports json to json transformation. But wanted to check if java 1.7 supports xslt 3.0 specs. I am aware there could be other frameworks that may provide support. For example, sax (http://www.saxonica.com/html/documentation/using-xsl/xslt30.html) But it is better to keep reduce the dependencies if java can support out of the box.
-
3Saxon 9 EE/PE can be used with Java 1.7 to have XSLT 3.0 support. I don't think Oracle has any support for XSLT 3.0. IBM has XSLT 2.0 support in Webshpere I think, I don't know whether they have any extension to deal with JSON data or already have made an attempt to support XSLT 3.0. – Martin Honnen Dec 29 '16 at 14:19
2 Answers
Late to the scene, but just to fill in the gap:
(a) Java "out of the box" will run only XSLT 1.0.
(b) There are a number of XSLT 2.0 processors that run in a Java environment but the only one that is (a) native Java, and (b) standalone, is Saxon. (There are other processors that come with Websphere or Marklogic, but you wouldn't consider them unless you want to make a heavy investment in those application server platforms; and Altova's RaptorXML has a Java interface, but it's pretty basic because everything calls across the network to an HTTP server behind the scenes.)
(c) It's early days for XSLT 3.0 yet. Saxonica and Altova have XSLT 3.0 implementations available; as with (b) Saxon is native Java while Altova is just a Java API front-end.

- 156,231
- 11
- 92
- 164
-
ok. Thanks. I went to converting json to Java using Jackson and doing the transformation using java classes and converting back to json again. – Ravi Feb 13 '17 at 00:25
It doesn't even support XSLT 2.0, let alone 3.0. It is stuck with a fork of Apache Xalan, which in turn has been stuck at XSLT 1.0 for fifteen years.
You need to look into alternative providers such as Saxon.

- 305,947
- 44
- 307
- 483
-
ok. Thanks. I went to converting json to Java using Jackson and doing the transformation using java classes and converting back to json again. – Ravi Feb 13 '17 at 00:25