Class | LibXSLT::XSLTError |
In: |
ext/libxslt/libxslt.c
|
Parent: | RuntimeError |
Document-class: LibXSLT::XSLT
The libxslt gem provides Ruby language bindings for GNOME‘s Libxslt toolkit. It is free software, released under the MIT License.
Using the bindings is straightforward:
stylesheet_doc = XML::Document.file('stylesheet_file') stylesheet = XSLT::Stylesheet.new(stylesheet_doc) xml_doc = XML::Document.file('xml_file') result = stylesheet.apply(xml_doc)