sup-xml-xslt 1.3.0

XSLT 1.0 transformation engine built on sup-xml's XPath core
Documentation
1
2
3
4
5
6
7
8
fn main() {
    let path = std::env::args().nth(1).expect("usage: compile_file <path>");
    let text = std::fs::read_to_string(&path).unwrap();
    match sup_xml_xslt::Stylesheet::compile_str(&text) {
        Ok(s)  => println!("OK — {} templates", s.ast.templates.len()),
        Err(e) => println!("ERR: {e}"),
    }
}