src/http/modules/xxslt/ngx_http_xxslt_parse.h File Reference

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include <libxslt/xslt.h>
#include <download/ngx_http_download_module.h>
#include <download/ngx_http_filesync.h>
#include <mxcache/ngx_http_mxcache_module.h>

Go to the source code of this file.

Data Structures

struct  ngx_http_xxslt_parse_data_t
 XXSLT data structure. More...
struct  ngx_http_xxslt_include_s
 Include data structure. More...

Defines

#define PARSE_GENERAL_ERR   1
#define PARSE_STYLESHEET_ERR   2
#define PARSE_NO_STYLESHEETS   3
#define PARSE_XML   11
#define PARSE_XSL   12
#define PARSE_UNKNOWN   13
#define ERR_CONTINUE   0
#define ERR_FAIL   1
#define PARSE_DUMMY_NODE   "as123hazx12xz12"

Typedefs

typedef struct
ngx_http_xxslt_include_s 
ngx_http_xxslt_include_t

Functions

ngx_http_xxslt_parse_data_tngx_http_xxslt_parse_create_new (ngx_http_request_t *r)
 Creates new parse data context structure.
ngx_int_t ngx_http_xxslt_parse_add_data_chunk (ngx_http_xxslt_parse_data_t *data, ngx_chain_t *in)
 Parses a chunk of parse (xslt) data using libxml functions.
ngx_int_t ngx_http_xxslt_parse_apply (ngx_http_xxslt_parse_data_t *data)
 Applies parsed xslt directives to the XML document containing all downloaded includes.
void ngx_http_xxslt_parse_cleanup (ngx_http_xxslt_parse_data_t *parse_data)
 Cleanups parse data context.

Variables

ngx_module_t ngx_http_xxslt_filter_module
 Nginx module settings.

Define Documentation

#define ERR_CONTINUE   0

Definition at line 48 of file ngx_http_xxslt_parse.h.

Referenced by ngx_http_xxslt_parse_include_node().

#define ERR_FAIL   1
#define PARSE_DUMMY_NODE   "as123hazx12xz12"
#define PARSE_GENERAL_ERR   1

Definition at line 40 of file ngx_http_xxslt_parse.h.

#define PARSE_NO_STYLESHEETS   3

Definition at line 42 of file ngx_http_xxslt_parse.h.

#define PARSE_STYLESHEET_ERR   2

Definition at line 41 of file ngx_http_xxslt_parse.h.

#define PARSE_UNKNOWN   13

Definition at line 46 of file ngx_http_xxslt_parse.h.

Referenced by ngx_http_xxslt_parse_include_node().

#define PARSE_XML   11
#define PARSE_XSL   12

Definition at line 45 of file ngx_http_xxslt_parse.h.


Typedef Documentation

Definition at line 55 of file ngx_http_xxslt_parse.h.


Function Documentation

ngx_int_t ngx_http_xxslt_parse_add_data_chunk ( ngx_http_xxslt_parse_data_t parse_data,
ngx_chain_t *  in 
)
ngx_int_t ngx_http_xxslt_parse_apply ( ngx_http_xxslt_parse_data_t parse_data  ) 

Applies parsed xslt directives to the XML document containing all downloaded includes.

Parameters:
parse_data parse data context structure
Returns:
NGX_OK or NGX_ERROR in case of error

Definition at line 347 of file ngx_http_xxslt_parse.c.

References ngx_http_xxslt_parse_data_t::includes, ngx_http_xxslt_finalize_with_error(), ngx_http_xxslt_parse_add_buffer_chain(), ngx_http_xxslt_parse_data_t::r, and ngx_http_xxslt_parse_data_t::stylesheet.

Referenced by ngx_http_xxslt_process_data().

void ngx_http_xxslt_parse_cleanup ( ngx_http_xxslt_parse_data_t parse_data  ) 

Cleanups parse data context.

Terminate all remaining downloads or mxcache connections.

Parameters:
parse_data parse data context structure

Definition at line 972 of file ngx_http_xxslt_parse.c.

References ngx_http_download_cleanup(), ngx_http_mxcache_cleanup(), and ngx_http_xxslt_parse_data_t::r.

Referenced by ngx_http_xxslt_cleanup().

ngx_http_xxslt_parse_data_t* ngx_http_xxslt_parse_create_new ( ngx_http_request_t *  r  ) 

Variable Documentation


Generated on Mon Oct 12 14:03:36 2009 for XXSLT by  doxygen 1.6.1