An XPath 2.0 processor based on Saxon-CE running in the Web browser via Scala.js.
Only the XPath processor is ported. The full XSLT processor files are present but do not compile.
Check the demo app. It does the following:
- uses a Web worker to perform XML parsing, XPath compilation, and XPath execution
- XML parsing in the worker is done using Darius XML
The port is not complete yet, in particular:
- some regex support is missing so types like date/time don't work
- the
doc()
function is missing - nothing is really tested
This should be considered a demo, nothing more for now.
Use sbt fastOptJSCombine
and sbt fullOptJSCombine
, then load index-dev.html
or index.html
.
The Saxon files and their translations are under the MPL license. Other files are under the Apache 2 license.