Skip to content

An XPath 2.0 processor based on Saxon-CE running in the web browser via Scala.js.

Notifications You must be signed in to change notification settings

ebruchez/darius-xpath.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Darius XPath?

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.

Try it out

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

Status

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.

Building and running locally

Use sbt fastOptJSCombine and sbt fullOptJSCombine, then load index-dev.html or index.html.

Licenses

The Saxon files and their translations are under the MPL license. Other files are under the Apache 2 license.

About

An XPath 2.0 processor based on Saxon-CE running in the web browser via Scala.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published