Garmin Fleet Management Controller
2.19.0
|
Utility class for simplifying XSL transformations. More...
#include <XMLTransformer.h>
Public Member Functions | |
XMLTransformer (LPCTSTR stylesheet) | |
Constructor. More... | |
virtual | ~XMLTransformer (void) |
Destructor. More... | |
BOOL | transform (LPCTSTR src, IStream *dst, CMapStringToString ¶ms) |
transform an XML document More... | |
Protected Attributes | |
CString | m_stylesheet |
The path to the XSL stylesheet use by this transformer. More... | |
Utility class for simplifying XSL transformations.
This class encapsulates loading a stylesheet for trans- forming an XML source document, along with ability to cache the loaded transformation processor for re-use
Definition at line 22 of file XMLTransformer.h.
XMLTransformer::XMLTransformer | ( | LPCTSTR | stylesheet | ) |
|
virtual |
Destructor.
Definition at line 23 of file XMLTransformer.cpp.
BOOL XMLTransformer::transform | ( | LPCTSTR | src, |
IStream * | dst, | ||
CMapStringToString & | params | ||
) |
transform an XML document
Load this instance's stylesheet and the specified XML document source and then transform it with the specified params
src | The XML document to be transformed |
dst | The destination for the transformation output |
params | An associative array of parameters to be supplied to the stylesheet during transformation |
Definition at line 36 of file XMLTransformer.cpp.
References FALSE, and m_stylesheet.
Referenced by CCustomFormsDlg::transform().
|
protected |
The path to the XSL stylesheet use by this transformer.
Definition at line 32 of file XMLTransformer.h.
Referenced by transform(), and XMLTransformer().