ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

pattern.c File Reference
#include "libxslt.h"
#include <string.h>
#include <libxml/xmlmemory.h>
#include <libxml/tree.h>
#include <libxml/valid.h>
#include <libxml/hash.h>
#include <libxml/xmlerror.h>
#include <libxml/parserInternals.h>
#include "xslt.h"
#include "xsltInternals.h"
#include "xsltutils.h"
#include "imports.h"
#include "templates.h"
#include "keys.h"
#include "pattern.h"
#include "documents.h"

Go to the source code of this file.

Data Structures

struct  xsltStepState
struct  xsltStepStates
struct  xsltStepOp
struct  xsltCompMatch
struct  xsltParserContext

Defines

#define IN_LIBXSLT

Typedefs

typedef xsltStepState * xsltStepStatePtr
typedef xsltStepStates * xsltStepStatesPtr
typedef xsltStepOp * xsltStepOpPtr
typedef xsltParserContext * xsltParserContextPtr

Enumerations

enum  xsltOp {
  XSLT_OP_END = 0, XSLT_OP_ROOT, XSLT_OP_ELEM, XSLT_OP_ATTR,
  XSLT_OP_PARENT, XSLT_OP_ANCESTOR, XSLT_OP_ID, XSLT_OP_KEY,
  XSLT_OP_NS, XSLT_OP_ALL, XSLT_OP_PI, XSLT_OP_COMMENT,
  XSLT_OP_TEXT, XSLT_OP_NODE, XSLT_OP_PREDICATE
}
enum  xsltAxis { AXIS_CHILD = 1, AXIS_ATTRIBUTE }

Functions

static xsltCompMatchPtr xsltNewCompMatch (void)
static void xsltFreeCompMatch (xsltCompMatchPtr comp)
void xsltFreeCompMatchList (xsltCompMatchPtr comp)

: template match name

xsltNormalizeCompSteps: : pointer to template hash table entry : pointer to the stylesheet

This is a hashtable scanner function to normalize the compiled steps of an imported stylesheet.

#define CUR   (*ctxt->cur)
#define SKIP(val)   ctxt->cur += (val)
#define NXT(val)   ctxt->cur[(val)]
#define CUR_PTR   ctxt->cur
#define SKIP_BLANKS   while (IS_BLANK_CH(CUR)) NEXT
#define CURRENT   (*ctxt->cur)
#define NEXT   ((*ctxt->cur) ? ctxt->cur++: ctxt->cur)
#define PUSH(op, val, val2, novar)   if (xsltCompMatchAdd(ctxt, ctxt->comp, (op), (val), (val2), (novar))) goto error;
#define SWAP()   xsltSwapTopCompMatch(ctxt->comp);
#define XSLT_ERROR(X)
#define XSLT_ERROR0(X)
void xsltNormalizeCompSteps (void *payload, void *data, const xmlChar *name ATTRIBUTE_UNUSED)
static xsltParserContextPtr xsltNewParserContext (xsltStylesheetPtr style, xsltTransformContextPtr ctxt)
static void xsltFreeParserContext (xsltParserContextPtr ctxt)
static int xsltCompMatchAdd (xsltParserContextPtr ctxt, xsltCompMatchPtr comp, xsltOp op, xmlChar *value, xmlChar *value2, int novar)
static void xsltSwapTopCompMatch (xsltCompMatchPtr comp)
static void xsltReverseCompMatch (xsltParserContextPtr ctxt, xsltCompMatchPtr comp)
static int xsltPatPushState (xsltTransformContextPtr ctxt, xsltStepStates *states, int step, xmlNodePtr node)
static int xsltTestCompMatchDirect (xsltTransformContextPtr ctxt, xsltCompMatchPtr comp, xmlNodePtr node, xmlNsPtr *nsList, int nsNr)
static int xsltTestCompMatch (xsltTransformContextPtr ctxt, xsltCompMatchPtr comp, xmlNodePtr node, const xmlChar *mode, const xmlChar *modeURI)
int xsltTestCompMatchList (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltCompMatchPtr comp)
static xmlCharxsltScanLiteral (xsltParserContextPtr ctxt)
static xmlCharxsltScanNCName (xsltParserContextPtr ctxt)
static void xsltCompileIdKeyPattern (xsltParserContextPtr ctxt, xmlChar *name, int aid, int novar, xsltAxis axis)
static void xsltCompileStepPattern (xsltParserContextPtr ctxt, xmlChar *token, int novar)
static void xsltCompileRelativePathPattern (xsltParserContextPtr ctxt, xmlChar *token, int novar)
static void xsltCompileLocationPathPattern (xsltParserContextPtr ctxt, int novar)
static xsltCompMatchPtr xsltCompilePatternInternal (const xmlChar *pattern, xmlDocPtr doc, xmlNodePtr node, xsltStylesheetPtr style, xsltTransformContextPtr runtime, int novar)
xsltCompMatchPtr xsltCompilePattern (const xmlChar *pattern, xmlDocPtr doc, xmlNodePtr node, xsltStylesheetPtr style, xsltTransformContextPtr runtime)
int xsltAddTemplate (xsltStylesheetPtr style, xsltTemplatePtr cur, const xmlChar *mode, const xmlChar *modeURI)
static int xsltComputeAllKeys (xsltTransformContextPtr ctxt, xmlNodePtr contextNode)
xsltTemplatePtr xsltGetTemplate (xsltTransformContextPtr ctxt, xmlNodePtr node, xsltStylesheetPtr style)
void xsltCleanupTemplates (xsltStylesheetPtr style ATTRIBUTE_UNUSED)
void xsltFreeTemplateHashes (xsltStylesheetPtr style)

Generated on Sat May 26 2012 04:48:48 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.