Module | LibXSLT::XSLT |
In: |
ext/libxslt/libxslt.c
|
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)
MAX_DEPTH | = | INT2NUM(xsltMaxDepth) |
MAX_SORT | = | INT2NUM(XSLT_MAX_SORT) |
ENGINE_VERSION | = | rb_str_new2(xsltEngineVersion) |
LIBXSLT_VERSION | = | INT2NUM(xsltLibxsltVersion) |
LIBXML_VERSION | = | INT2NUM(xsltLibxmlVersion) |
XSLT_NAMESPACE | = | rb_str_new2((const char*)XSLT_NAMESPACE) |
DEFAULT_VENDOR | = | rb_str_new2(XSLT_DEFAULT_VENDOR) |
DEFAULT_VERSION | = | rb_str_new2(XSLT_DEFAULT_VERSION) |
DEFAULT_URL | = | rb_str_new2(XSLT_DEFAULT_URL) |
NAMESPACE_LIBXSLT | = | rb_str_new2((const char*)XSLT_LIBXSLT_NAMESPACE) |
NAMESPACE_NORM_SAXON | = | rb_str_new2((const char*)XSLT_NORM_SAXON_NAMESPACE) |
NAMESPACE_SAXON | = | rb_str_new2((const char*)XSLT_SAXON_NAMESPACE) |
NAMESPACE_XT | = | rb_str_new2((const char*)XSLT_XT_NAMESPACE) |
NAMESPACE_XALAN | = | rb_str_new2((const char*)XSLT_XALAN_NAMESPACE) |