xmlwrapp
Lightweight C++ XML parsing library
|
Go to the documentation of this file.
40 #ifndef _xsltwrapp_stylesheet_h_
41 #define _xsltwrapp_stylesheet_h_
46 #include "xmlwrapp/export.h"
118 XMLWRAPP_DEPRECATED(
"use the form that takes error_handler argument")
119 bool apply(const
xml::document& doc,
xml::document& result);
134 XMLWRAPP_DEPRECATED("use the form that takes error_handler argument")
135 bool apply(const
xml::document& doc,
xml::document& result, const
param_type& with_params);
148 bool apply(const
xml::document& doc,
149 xml::document& result,
150 xml::error_handler& on_error);
164 bool apply(const
xml::document& doc,
165 xml::document& result,
167 xml::error_handler& on_error);
183 xml::document& apply(const
xml::document& doc,
201 xml::document& apply(const
xml::document& doc,
219 XMLWRAPP_DEPRECATED("use apply() variants that take error_handler argument")
220 const std::
string& get_error_message() const;
223 void init(
xml::document& doc,
xml::error_handler& on_error);
235 #endif // _xsltwrapp_stylesheet_h_
The xslt::init class is used to configure the XSLT engine.
Definition: init.h:64
The xslt::stylesheet class is used to hold information about an XSLT stylesheet.
Definition: stylesheet.h:62
stylesheet(const char *filename, xml::error_handler &on_error=xml::throw_on_error)
Create a new xslt::stylesheet object and load and parse the stylesheet in the given filename.
XSLT library namespace.
Definition: document.h:56
std::map< std::string, std::string > param_type
Type for passing parameters to the stylesheet.
Definition: stylesheet.h:64
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition: errors.h:85
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition: document.h:85
error_handler_throw_on_error throw_on_error
Error handler object that throws on any error.
XML library namespace.
Definition: attributes.h:52
~stylesheet()
Clean up after an xslt::stylesheet.
stylesheet(xml::document doc, xml::error_handler &on_error=xml::throw_on_error)
Create a new xslt::stylesheet object from an xml::document object that contains the parsed stylesheet...