40#ifndef _xsltwrapp_stylesheet_h_
41#define _xsltwrapp_stylesheet_h_
46#include "xmlwrapp/export.h"
54XMLWRAPP_MSVC_SUPPRESS_DLL_MEMBER_WARN
121 XMLWRAPP_DEPRECATED(
"use the form that takes error_handler argument")
122 bool apply(const
xml::document& doc,
xml::document& result);
137 XMLWRAPP_DEPRECATED("use the form that takes error_handler argument")
138 bool apply(const
xml::document& doc,
xml::document& result, const
param_type& with_params);
151 bool apply(const
xml::document& doc,
152 xml::document& result,
153 xml::error_handler& on_error);
167 bool apply(const
xml::document& doc,
168 xml::document& result,
170 xml::error_handler& on_error);
186 xml::document& apply(const
xml::document& doc,
187 xml::error_handler& on_error =
xml::throw_on_error);
204 xml::document& apply(const
xml::document& doc,
206 xml::error_handler& on_error =
xml::throw_on_error);
222 XMLWRAPP_DEPRECATED("use apply() variants that take error_handler argument")
223 const std::
string& get_error_message() const;
226 void init(
xml::document& doc,
xml::error_handler& on_error);
228 std::unique_ptr<pimpl> pimpl_;
237XMLWRAPP_MSVC_RESTORE_DLL_MEMBER_WARN
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition document.h:88
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition errors.h:89
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:65
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...
~stylesheet()
Clean up after an xslt::stylesheet.
std::map< std::string, std::string > param_type
Type for passing parameters to the stylesheet.
Definition stylesheet.h:70
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.
This file contains the definition of the xml::document class.
This file contains errors-handling classes: xml::exception and xml::error_handler and derived classes...
XML library namespace.
Definition attributes.h:55
error_handler_throw_on_error throw_on_error
Error handler object that throws on any error.
XSLT library namespace.
Definition document.h:59
This file contains the definition of the xslt::init class.