21

I'm currently looking into using XSLT 2.0, but I cannot find any open-source java implementations (Saxon-B seems to fit the bill, but isn't schema-aware).

Am I missing something?

2
  • Search or ask this question at the xsl-list. Michael Kay might answer himself.
    – dacracot
    Feb 9, 2009 at 18:59
  • 2
    5 years later and there still is no open source Schema-aware, XSLT 2.0, and XPath 2.0 processor? Dang...
    – FGreg
    Feb 13, 2014 at 22:33

4 Answers 4

7

Yes, I'm answering my own question from 2.5 years ago:

I haven't tried it yet, but I just stumbled upon Eclipse PsychoPath, which is (according to the docs) a XPath 2.0 XML Schema Aware processor that passes 96% of the XPath 2.0 test suite (version 1.1M1).

2
  • 3
    In the question you ask for an XSLT 2.0 processor. But this answer is about an XPath 2.0 processor.
    – mzjn
    Mar 8, 2012 at 20:01
  • 2
    Thanks for catching this, mzjn. I was actually looking for both, and got them mixed up. I've removed the accepted answer flag from my own answer. Mar 28, 2012 at 10:47
3

The only one is Saxon-HE:

Saxon-HE

The W3C hosts an online version of it for testing:

W3C Jigsaw XSLT 2.0 Service

And there is JSFiddle like version as well:

xsltransform.net

And the Frameless project hosts a JavaScript version of it:

XSLT Fiddle

There's also an App Engine project which uses it:

XSLT App Engine Test Harness

Other than that, there's an incomplete Xerces extension which implements XPath 2.0:

Xerces XPath 2.0 Extension

An Eclipse extension which implements XPath 2.0:

WTP XPath2.0 Processor

An incomplete Xalan-J branch which partially implements XSLT 2.0:

Some prototype work for XSLT 2.0 support in the Xalan-J Interpretive processor went on in 2003, but then trailed off. That prototype work is still available on the xslt20 branch http://svn.apache.org/repos/asf/xalan/java/branches/xslt20/, but since then nobdy has stepped forward to carry on that initial prototyping, and the Xalan PMC hasn't put in place any plans for XSLT 2.0 support.

As well as a server-side implementation of Saxon-CE which can run on Nashorn/Avatar.js:

xslty

References

2

For the archive, there's also AltovaXML, the free-as-in-beer, schema-aware XSLT 2.0 engine used in XMLSpy etc.

Unfortunately, like XMLSpy, it's Windows only.

1
  • It appears this is now called Raptor-XML and no longer open source.
    – FGreg
    Feb 13, 2014 at 22:46
0

Are you sure you really need a schema aware processor? It might help find errors in the stylesheets quicker but the cost might outweigh the benefit (both in terms of money, and license-wise).

Saxon-SA is the schema-aware version of Saxon B. It includes the open source Saxon B in full (published under the Mozilla Public License). It's only the "schema-aware" stuff which is closed source, so most of it is still free software (though only as in free speech..).

2
  • 2
    Well, I work with namespaces a lot when implementing web services, and cannot pretend they wouldn't exist.. I know about Saxon-SA and Saxon-B, but was wondering if there really is no open source alternative. Especially since XSLT 2.0 isn't exactly brand new.. Feb 10, 2009 at 18:41
  • Sad, but true that I haven't yet found one. And the Oracle I've used (proprietary) is not good either. Hope somebody comes thru
    – Overflown
    Feb 26, 2009 at 21:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.