Indoqa XML provides pipeline-based XML processing and XML tools. It reuses parts of Apache Cocoon 3 (cocoon-pipeline, cocoon-pipeline-sax) and the Cocoon XML subproject.
String result = xmlPipeline()
.of("<x></x>")
.transformWithXSLT(this.getClass().getResource("/test.xslt"))
.asXmlString();
Document result = xmlPipeline()
.of("<x></x>")
.transformWithXSLT(this.getClass().getResource("/test.xslt"))
.asDocument();