Git Product home page Git Product logo

xrust's Introduction

χrust

XPath, XQuery, and XSLT for Rust

Pronounced "crust".

The goal of this project is to implement XPath 3.1, XQuery 3.1 and XSLT 3.0 in Rust.

Currently the project is a proof-of-concept. There is a rudimentary implementation of the XQuery and XPath Data Model 3.1, along with an implementation of XPath which, roughly speaking, conforms to version 1.0 (with a few other features, such as FLWR expressions).

Design

The library separates parsing from evaluation. The XPath and XSLT are parsed (or "compiled") into an internal representation, which is then interpeted by the evaluation module.

This means it won't matter how an expression is written; it will be compiled into the same internal form. For example, the XPath expression:

if $a then "a is true" else ""

will result in the same internal format as:

<xsl:if test="$a">
  a is true
</xsl:if>

The Plan

  1. Complete the XPath 1.0 implementation.
  2. Implement all XSLT v1.0 functionality.
  3. Improve XDM, XPath; achieve v2.0-v3.1 compliance.
  4. Introduce all v3.0 features to the XSLT engine.

NB. We're picking the low-hanging fruit first. So major, fundamental features of the languages are being implemented to begin with. The fine detail will be added later. So although we're aiming for v1.0 functionality as a baseline, the eventual desire to implement all of v3.0 dictates that some more advanced features will be implemented sooner rather than later.

Documentation

See the XSLT module for an example of how to evaluate an XSL stylesheet.

Compliance

Status of docs/compliance.md with XDM, XPath, XQuery, and XSLT.

xrust's People

Contributors

ballsteve avatar devasta avatar thinkrapido avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.