DTS Application Library
0.2.3
Application library containing referenced objects and interfaces to common libraries
|
Utilities for managing XML documents. More...
Files | |
file | libxslt.c |
XSLT Interface. | |
Data Structures | |
struct | xslt_doc |
XSLT Document. More... | |
struct | xslt_param |
XSLT Parameter name/value pair. More... | |
Typedefs | |
typedef struct xslt_doc | xslt_doc |
Forward decleration of structure. More... | |
Functions | |
struct xslt_doc * | xslt_open (const char *xsltfile) |
Open a XSLT file returning reference to it. More... | |
void | xslt_addparam (struct xslt_doc *xsltdoc, const char *param, const char *value) |
Add a parameter to the XSLT document. More... | |
void | xslt_clearparam (struct xslt_doc *xsltdoc) |
Delete all parameters of a XSLT document. More... | |
void | xslt_apply (struct xml_doc *xmldoc, struct xslt_doc *xsltdoc, const char *filename, int comp) |
Apply XSLT document to a XML document. More... | |
void * | xslt_apply_buffer (struct xml_doc *xmldoc, struct xslt_doc *xsltdoc) |
Apply XSLT document to a XML document returning result in buffer. More... | |
void | xslt_init () |
Reference the XSLT parser. More... | |
void | xslt_close () |
Release reference to XSLT parser. More... | |
Utilities for managing XML documents.
void xslt_addparam | ( | struct xslt_doc * | xsltdoc, |
const char * | param, | ||
const char * | value | ||
) |
Add a parameter to the XSLT document.
xsltdoc | Reference to XSLT document. |
param | Name of parameter. |
value | Parameter value. |
Definition at line 94 of file libxslt.c.
References addtobucket(), ALLOC_CONST, xslt_param::name, objalloc(), objlock(), objref(), objunlock(), objunref(), xslt_doc::params, and xslt_param::value.
void xslt_apply | ( | struct xml_doc * | xmldoc, |
struct xslt_doc * | xsltdoc, | ||
const char * | filename, | ||
int | comp | ||
) |
Apply XSLT document to a XML document.
xmldoc | Reference to XML document. |
xsltdoc | Reference to XSLT document. |
filename | File to write the result too. |
comp | Compression level 0-9 [0 = none]. |
Definition at line 167 of file libxslt.c.
References xslt_doc::doc, objlock(), objunlock(), objunref(), touch(), and xslt_clearparam().
Apply XSLT document to a XML document returning result in buffer.
xmldoc | Reference to XML document. |
xsltdoc | Reference to XSLT document. |
Definition at line 198 of file libxslt.c.
References xslt_doc::doc, objalloc(), objlock(), objunlock(), objunref(), xml_free_buffer(), and xslt_clearparam().
void xslt_clearparam | ( | struct xslt_doc * | xsltdoc | ) |
Delete all parameters of a XSLT document.
xsltdoc | Reference to XSLT document. |
Definition at line 115 of file libxslt.c.
References create_bucketlist(), objlock(), objunlock(), objunref(), and xslt_doc::params.
Referenced by xslt_apply(), and xslt_apply_buffer().
void xslt_close | ( | ) |
Release reference to XSLT parser.
Definition at line 241 of file libxslt.c.
References objunref().
void xslt_init | ( | ) |
Reference the XSLT parser.
Definition at line 230 of file libxslt.c.
References objalloc(), and objref().
Referenced by xslt_open().
struct xslt_doc* xslt_open | ( | const char * | xsltfile | ) |
Open a XSLT file returning reference to it.
xsltfile | XSLT pathname to open. |
Definition at line 67 of file libxslt.c.
References create_bucketlist(), xslt_doc::doc, objalloc(), xslt_doc::params, and xslt_init().