XSLT_DEFAULT_VERSION #define XSLT_DEFAULT_VERSION "1.0" XSLT_DEFAULT_VENDOR #define XSLT_DEFAULT_VENDOR "libxslt" XSLT_DEFAULT_URL #define XSLT_DEFAULT_URL "http://xmlsoft.org/XSLT/" XSLT_NAMESPACE #define XSLT_NAMESPACE ((xmlChar *) "http://www.w3.org/1999/XSL/Transform") LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC __declspec(dllimport) LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC xsltCleanupGlobals void void LIBXSLT_DOTTED_VERSION #define LIBXSLT_DOTTED_VERSION "1.0.11" LIBXSLT_VERSION #define LIBXSLT_VERSION 10011 LIBXSLT_VERSION_STRING #define LIBXSLT_VERSION_STRING "10011" WITH_XSLT_DEBUG #define WITH_XSLT_DEBUG DEBUG_MEMORY #define DEBUG_MEMORY DEBUG_MEMORY_LOCATION #define DEBUG_MEMORY_LOCATION WITH_XSLT_DEBUGGER #define WITH_XSLT_DEBUGGER ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC __declspec(dllimport) LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC xsltAddKey int xsltStylesheetPtr style,const xmlChar *name,const xmlChar *nameURI,const xmlChar *match,const xmlChar *use,xmlNodePtr inst xsltGetKey xmlNodeSetPtr xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *nameURI,const xmlChar *value xsltInitCtxtKeys void xsltTransformContextPtr ctxt,xsltDocumentPtr doc xsltFreeKeys void xsltStylesheetPtr style xsltFreeDocumentKeys void xsltDocumentPtr doc xsltCompMatch xsltCompMatchPtr typedef xsltCompMatch *xsltCompMatchPtr; xsltCompilePattern xsltCompMatchPtr const xmlChar *pattern,xmlDocPtr doc,xmlNodePtr node,xsltStylesheetPtr style,xsltTransformContextPtr runtime xsltFreeCompMatchList void xsltCompMatchPtr comp xsltTestCompMatchList int xsltTransformContextPtr ctxt,xmlNodePtr node,xsltCompMatchPtr comp xsltAddTemplate int xsltStylesheetPtr style,xsltTemplatePtr cur,const xmlChar *mode,const xmlChar *modeURI xsltGetTemplate xsltTemplatePtr xsltTransformContextPtr ctxt,xmlNodePtr node,xsltStylesheetPtr style xsltFreeTemplateHashes void xsltStylesheetPtr style xsltCleanupTemplates void xsltStylesheetPtr style xsltMatchPattern int xsltTransformContextPtr ctxt,xmlNodePtr node,const xmlChar *pattern,xmlDocPtr ctxtdoc,xmlNodePtr ctxtnode xsltSetXIncludeDefault void int xinclude xsltGetXIncludeDefault int void xsltNewTransformContext xsltTransformContextPtr xsltStylesheetPtr style,xmlDocPtr doc xsltFreeTransformContext void xsltTransformContextPtr ctxt xsltApplyStylesheetUser xmlDocPtr xsltStylesheetPtr style,xmlDocPtr doc,const char **params,const char *output,FILE * profile,xsltTransformContextPtr userCtxt xsltApplyStripSpaces void xsltTransformContextPtr ctxt,xmlNodePtr node xsltExtElementLookup xsltTransformFunction xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *URI xsltApplyStylesheet xmlDocPtr xsltStylesheetPtr style,xmlDocPtr doc,const char **params xsltProfileStylesheet xmlDocPtr xsltStylesheetPtr style,xmlDocPtr doc,const char **params,FILE * output xsltRunStylesheet int xsltStylesheetPtr style,xmlDocPtr doc,const char **params,const char *output,xmlSAXHandlerPtr SAX,xmlOutputBufferPtr IObuf xsltApplyOneTemplate void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr list,xsltTemplatePtr templ,xsltStackElemPtr params xsltDocumentElem void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltSort void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltCopy void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltText void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltElement void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltComment void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltAttribute void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltProcessingInstruction void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltCopyOf void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltValueOf void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltNumber void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltApplyImports void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltCallTemplate void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltApplyTemplates void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltChoose void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltIf void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltForEach void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltRegisterAllElement void xsltTransformContextPtr ctxt xslHandleDebugger void xmlNodePtr cur,xmlNodePtr node,xsltTemplatePtr templ,xsltTransformContextPtr ctxt XSLT_TODO #define XSLT_TODO \ xsltGenericError(xsltGenericErrorContext, \ "Unimplemented block at %s:%d\n", \ __FILE__, __LINE__); XSLT_STRANGE #define XSLT_STRANGE \ xsltGenericError(xsltGenericErrorContext, \ "Internal error at %s:%d\n", \ __FILE__, __LINE__); IS_XSLT_ELEM #define IS_XSLT_ELEM(n) \ (((n) != NULL) && ((n)->ns != NULL) && \ (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))) IS_XSLT_NAME #define IS_XSLT_NAME(n, val) \ (xmlStrEqual((n)->name, (const xmlChar *) (val))) IS_XSLT_REAL_NODE #define IS_XSLT_REAL_NODE(n) \ (((n) != NULL) && \ (((n)->type == XML_ELEMENT_NODE) || \ ((n)->type == XML_TEXT_NODE) || \ ((n)->type == XML_ATTRIBUTE_NODE) || \ ((n)->type == XML_DOCUMENT_NODE) || \ ((n)->type == XML_HTML_DOCUMENT_NODE) || \ ((n)->type == XML_DOCB_DOCUMENT_NODE))) IS_XSLT_REAL_NODE #define IS_XSLT_REAL_NODE(n) \ (((n) != NULL) && \ (((n)->type == XML_ELEMENT_NODE) || \ ((n)->type == XML_TEXT_NODE) || \ ((n)->type == XML_ATTRIBUTE_NODE) || \ ((n)->type == XML_DOCUMENT_NODE) || \ ((n)->type == XML_HTML_DOCUMENT_NODE))) xsltGetNsProp xmlChar * xmlNodePtr node,const xmlChar *name,const xmlChar *nameSpace xsltPrintErrorContext void xsltTransformContextPtr ctxt,xsltStylesheetPtr style,xmlNodePtr node xsltMessage void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst xsltSetGenericErrorFunc void void *ctx,xmlGenericErrorFunc handler xsltSetGenericDebugFunc void void *ctx,xmlGenericErrorFunc handler xsltDocumentSortFunction void xmlNodeSetPtr list xsltDoSortFunction void xsltTransformContextPtr ctxt,xmlNodePtr *sorts,int nbsorts xsltGetQNameURI const xmlChar * xmlNodePtr node,xmlChar **name xsltSaveResultTo int xmlOutputBufferPtr buf,xmlDocPtr result,xsltStylesheetPtr style xsltSaveResultToFilename int const char *URI,xmlDocPtr result,xsltStylesheetPtr style,int compression xsltSaveResultToFile int FILE *file,xmlDocPtr result,xsltStylesheetPtr style xsltSaveResultToFd int int fd,xmlDocPtr result,xsltStylesheetPtr style xsltSaveProfiling void xsltTransformContextPtr ctxt,FILE *output xsltTimestamp long void xsltCalibrateAdjust void long delta XSLT_TIMESTAMP_TICS_PER_SEC #define XSLT_TIMESTAMP_TICS_PER_SEC 100000l xsltDebugStatusCodes typedef enum { XSLT_DEBUG_NONE = 0, /* no debugging allowed */ XSLT_DEBUG_INIT, XSLT_DEBUG_STEP, XSLT_DEBUG_STEPOUT, XSLT_DEBUG_NEXT, XSLT_DEBUG_STOP, XSLT_DEBUG_CONT, XSLT_DEBUG_RUN, XSLT_DEBUG_RUN_RESTART, XSLT_DEBUG_QUIT } xsltDebugStatusCodes; xsltHandleDebuggerCallback void xmlNodePtr cur, xmlNodePtr node, xsltTemplatePtr templ, xsltTransformContextPtr ctxt xsltAddCallCallback int xsltTemplatePtr templ, xmlNodePtr source xsltDropCallCallback void void xsltSetDebuggerCallbacks int int no, void *block xslAddCall int xsltTemplatePtr templ,xmlNodePtr source xslDropCall void void xsltEvalXPathPredicate int xsltTransformContextPtr ctxt,xmlXPathCompExprPtr comp,xmlNsPtr *nsList,int nsNr xsltEvalTemplateString xmlChar * xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr parent xsltEvalAttrValueTemplate xmlChar * xsltTransformContextPtr ctxt,xmlNodePtr node,const xmlChar *name,const xmlChar *ns xsltEvalStaticAttrValueTemplate xmlChar * xsltStylesheetPtr style,xmlNodePtr node,const xmlChar *name,const xmlChar *ns,int *found xsltEvalXPathString xmlChar * xsltTransformContextPtr ctxt,xmlXPathCompExprPtr comp xsltTemplateProcess xmlNodePtr * xsltTransformContextPtr ctxt,xmlNodePtr node xsltAttrListTemplateProcess xmlAttrPtr xsltTransformContextPtr ctxt,xmlNodePtr target,xmlAttrPtr cur xsltAttrTemplateProcess xmlAttrPtr xsltTransformContextPtr ctxt,xmlNodePtr target,xmlAttrPtr attr xsltAttrTemplateValueProcess xmlChar * xsltTransformContextPtr ctxt,const xmlChar* attr XSLT_REGISTER_VARIABLE_LOOKUP #define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \ xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \ xsltXPathVariableLookup, (void *)(ctxt)); \ xsltRegisterAllFunctions((ctxt)->xpathCtxt); \ xsltRegisterAllElement(ctxt); \ (ctxt)->xpathCtxt->extra = ctxt xsltEvalGlobalVariables int xsltTransformContextPtr ctxt xsltEvalUserParams int xsltTransformContextPtr ctxt,const char **params xsltQuoteUserParams int xsltTransformContextPtr ctxt,const char **params xsltEvalOneUserParam int xsltTransformContextPtr ctxt,const xmlChar * name,const xmlChar * value xsltQuoteOneUserParam int xsltTransformContextPtr ctxt,const xmlChar * name,const xmlChar * value xsltParseGlobalVariable void xsltStylesheetPtr style,xmlNodePtr cur xsltParseGlobalParam void xsltStylesheetPtr style,xmlNodePtr cur xsltParseStylesheetVariable void xsltTransformContextPtr ctxt,xmlNodePtr cur xsltParseStylesheetParam void xsltTransformContextPtr ctxt,xmlNodePtr cur xsltParseStylesheetCallerParam xsltStackElemPtr xsltTransformContextPtr ctxt,xmlNodePtr cur xsltAddStackElemList int xsltTransformContextPtr ctxt,xsltStackElemPtr elems xsltFreeGlobalVariables void xsltTransformContextPtr ctxt xsltVariableLookup xmlXPathObjectPtr xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *ns_uri xsltXPathVariableLookup xmlXPathObjectPtr void *ctxt,const xmlChar *name,const xmlChar *ns_uri LIBXSLT_DOTTED_VERSION #define LIBXSLT_DOTTED_VERSION "1.0.11" LIBXSLT_VERSION #define LIBXSLT_VERSION 10011 LIBXSLT_VERSION_STRING #define LIBXSLT_VERSION_STRING "10011" WITH_XSLT_DEBUG #define WITH_XSLT_DEBUG DEBUG_MEMORY #define DEBUG_MEMORY DEBUG_MEMORY_LOCATION #define DEBUG_MEMORY_LOCATION ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC __declspec(dllimport) LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC XSLT_REGISTER_FUNCTION_LOOKUP #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \ xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \ (xmlXPathFuncLookupFunc) xsltXPathFunctionLookup, \ (void *)(ctxt->xpathCtxt)); xsltXPathFunctionLookup xmlXPathFunction xmlXPathContextPtr ctxt,const xmlChar *name,const xmlChar *ns_uri xsltDocumentFunction void xmlXPathParserContextPtr ctxt,int nargs xsltKeyFunction void xmlXPathParserContextPtr ctxt,int nargs xsltUnparsedEntityURIFunction void xmlXPathParserContextPtr ctxt,int nargs xsltFormatNumberFunction void xmlXPathParserContextPtr ctxt,int nargs xsltGenerateIdFunction void xmlXPathParserContextPtr ctxt,int nargs xsltSystemPropertyFunction void xmlXPathParserContextPtr ctxt,int nargs xsltElementAvailableFunction void xmlXPathParserContextPtr ctxt,int nargs xsltFunctionAvailableFunction void xmlXPathParserContextPtr ctxt,int nargs xsltRegisterAllFunctions void xmlXPathContextPtr ctxt xsltStyleExtInitFunction void * xsltStylesheetPtr style, const xmlChar *URI xsltStyleExtShutdownFunction void xsltStylesheetPtr style, const xmlChar *URI, void *data xsltExtInitFunction void * xsltTransformContextPtr ctxt, const xmlChar *URI xsltExtShutdownFunction void xsltTransformContextPtr ctxt, const xmlChar *URI, void *data xsltRegisterExtModule int const xmlChar *URI,xsltExtInitFunction initFunc,xsltExtShutdownFunction shutdownFunc xsltRegisterExtModuleFull int const xmlChar * URI,xsltExtInitFunction initFunc,xsltExtShutdownFunction shutdownFunc,xsltStyleExtInitFunction styleInitFunc,xsltStyleExtShutdownFunction styleShutdownFunc xsltUnregisterExtModule int const xmlChar * URI xsltGetExtData void * xsltTransformContextPtr ctxt,const xmlChar *URI xsltStyleGetExtData void * xsltStylesheetPtr style,const xmlChar *URI xsltShutdownCtxtExts void xsltTransformContextPtr ctxt xsltShutdownExts void xsltStylesheetPtr style xsltRegisterExtModuleFunction int const xmlChar *name,const xmlChar *URI,xmlXPathFunction function xsltExtFunctionLookup xmlXPathFunction xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *URI xsltExtModuleFunctionLookup xmlXPathFunction const xmlChar *name,const xmlChar *URI xsltUnregisterExtModuleFunction int const xmlChar *name,const xmlChar *URI xsltElemPreCompPtr typedef *xsltPreComputeFunction) (xsltStylesheetPtr style,xmlNodePtr inst,xsltTransformFunction function xsltNewElemPreComp xsltElemPreCompPtr xsltStylesheetPtr style,xmlNodePtr inst,xsltTransformFunction function xsltInitElemPreComp void xsltElemPreCompPtr comp,xsltStylesheetPtr style,xmlNodePtr inst,xsltTransformFunction function,xsltElemPreCompDeallocator freeFunc xsltRegisterExtModuleElement int const xmlChar *name,const xmlChar *URI,xsltPreComputeFunction precomp,xsltTransformFunction transform xsltExtElementLookup xsltTransformFunction xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *URI xsltExtModuleElementLookup xsltTransformFunction const xmlChar *name,const xmlChar *URI xsltUnregisterExtModuleElement int const xmlChar *name,const xmlChar *URI xsltTopLevelFunction void xsltStylesheetPtr style, xmlNodePtr inst xsltRegisterExtModuleTopLevel int const xmlChar *name,const xmlChar *URI,xsltTopLevelFunction function xsltExtModuleTopLevelLookup xsltTopLevelFunction const xmlChar *name,const xmlChar *URI xsltUnregisterExtModuleTopLevel int const xmlChar *name,const xmlChar *URI xsltRegisterExtFunction int xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *URI,xmlXPathFunction function xsltRegisterExtElement int xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *URI,xsltTransformFunction function xsltRegisterExtPrefix int xsltStylesheetPtr style,const xmlChar *prefix,const xmlChar *URI xsltCheckExtPrefix int xsltStylesheetPtr style,const xmlChar *prefix xsltInitCtxtExts int xsltTransformContextPtr ctxt xsltFreeCtxtExts void xsltTransformContextPtr ctxt xsltFreeExts void xsltStylesheetPtr style xsltPreComputeExtModuleElement xsltElemPreCompPtr xsltStylesheetPtr style,xmlNodePtr inst xsltRegisterTestModule void void XSLT_GET_IMPORT_PTR #define XSLT_GET_IMPORT_PTR(res, style, name) { \ xsltStylesheetPtr st = style; \ res = NULL; \ while (st != NULL) { \ if (st->name != NULL) { res = st->name; break; } \ st = xsltNextImport(st); \ }} XSLT_GET_IMPORT_INT #define XSLT_GET_IMPORT_INT(res, style, name) { \ xsltStylesheetPtr st = style; \ res = -1; \ while (st != NULL) { \ if (st->name != -1) { res = st->name; break; } \ st = xsltNextImport(st); \ }} xsltParseStylesheetImport void xsltStylesheetPtr style,xmlNodePtr cur xsltParseStylesheetInclude void xsltStylesheetPtr style,xmlNodePtr cur xsltNextImport xsltStylesheetPtr xsltStylesheetPtr style xsltNeedElemSpaceHandling int xsltTransformContextPtr ctxt xsltFindElemSpaceHandling int xsltTransformContextPtr ctxt,xmlNodePtr node xsltFindTemplate xsltTemplatePtr xsltTransformContextPtr ctxt,const xmlChar *name,const xmlChar *nameURI xsltParseStylesheetAttributeSet void xsltStylesheetPtr style,xmlNodePtr cur xsltFreeAttributeSetsHashes void xsltStylesheetPtr style xsltApplyAttributeSet void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xmlChar *attributes xsltNamespaceAlias void xsltStylesheetPtr style,xmlNodePtr node xsltGetNamespace xmlNsPtr xsltTransformContextPtr ctxt,xmlNodePtr cur,xmlNsPtr ns,xmlNodePtr out xsltGetSpecialNamespace xmlNsPtr xsltTransformContextPtr ctxt,xmlNodePtr cur,const xmlChar *URI,const xmlChar *prefix,xmlNodePtr out xsltCopyNamespace xmlNsPtr xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNsPtr cur xsltCopyNamespaceList xmlNsPtr xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNsPtr cur xsltFreeNamespaceAliasHashes void xsltStylesheetPtr style xsltNewDocument xsltDocumentPtr xsltTransformContextPtr ctxt,xmlDocPtr doc xsltLoadDocument xsltDocumentPtr xsltTransformContextPtr ctxt,const xmlChar *URI xsltFindDocument xsltDocumentPtr xsltTransformContextPtr ctxt,xmlDocPtr doc xsltFreeDocuments void xsltTransformContextPtr ctxt xsltLoadStyleDocument xsltDocumentPtr xsltStylesheetPtr style,const xmlChar *URI xsltNewStyleDocument xsltDocumentPtr xsltStylesheetPtr style,xmlDocPtr doc xsltFreeStyleDocuments void xsltStylesheetPtr style XSLT_LIBXSLT_NAMESPACE #define XSLT_LIBXSLT_NAMESPACE ((xmlChar *) "http://xmlsoft.org/XSLT/namespace") XSLT_SAXON_NAMESPACE #define XSLT_SAXON_NAMESPACE ((xmlChar *) "http://icl.com/saxon") XSLT_XT_NAMESPACE #define XSLT_XT_NAMESPACE ((xmlChar *) "http://www.jclark.com/xt") XSLT_XALAN_NAMESPACE #define XSLT_XALAN_NAMESPACE ((xmlChar *) \ "org.apache.xalan.xslt.extensions.Redirect") XSLT_NORM_SAXON_NAMESPACE #define XSLT_NORM_SAXON_NAMESPACE ((xmlChar *) \ "http://nwalsh.com/xslt/ext/com.nwalsh.saxon.CVS") xsltFunctionNodeSet void xmlXPathParserContextPtr ctxt,int nargs xsltDebug void xsltTransformContextPtr ctxt,xmlNodePtr node,xmlNodePtr inst,xsltStylePreCompPtr comp xsltRegisterExtras void xsltTransformContextPtr ctxt xsltRegisterAllExtras void void xsltExtMarker extern const xmlChar *xsltExtMarker; xsltDocumentComp xsltElemPreCompPtr xsltStylesheetPtr style,xmlNodePtr inst,xsltTransformFunction function xsltStylePreCompute void xsltStylesheetPtr style,xmlNodePtr inst xsltFreeStylePreComps void xsltStylesheetPtr style IN_LIBXSLT #define IN_LIBXSLT LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC __declspec(dllimport) LIBXSLT_PUBLIC #define LIBXSLT_PUBLIC XSLT_MAX_SORT #define XSLT_MAX_SORT 5 XSLT_PAT_NO_PRIORITY #define XSLT_PAT_NO_PRIORITY -12345789 xsltRuntimeExtra xsltRuntimeExtraPtr typedef xsltRuntimeExtra *xsltRuntimeExtraPtr; xsltRuntimeExtra struct xsltRuntimeExtra { void *info; /* pointer to the extra data */ xmlFreeFunc deallocate; /* pointer to the deallocation routine */ }; XSLT_RUNTIME_EXTRA #define XSLT_RUNTIME_EXTRA(ctxt, nr) (ctxt)->extras[(nr)].info xsltTemplate xsltTemplatePtr typedef xsltTemplate *xsltTemplatePtr; xsltTemplate struct xsltTemplate { struct _xsltTemplate *next;/* chained list sorted by priority */ struct _xsltStylesheet *style;/* the containing stylesheet */ xmlChar *match; /* the matching string */ float priority; /* as given from the stylesheet, not computed */ xmlChar *name; /* the local part of the name QName */ xmlChar *nameURI; /* the URI part of the name QName */ xmlChar *mode; /* the local part of the mode QName */ xmlChar *modeURI; /* the URI part of the mode QName */ xmlNodePtr content; /* the template replacement value */ xmlNodePtr elem; /* the source element */ int inheritedNsNr; /* number of inherited namespaces */ xmlNsPtr *inheritedNs;/* inherited non-excluded namespaces */ /* Profiling informations */ int nbCalls; /* the number of time the template was called */ unsigned long time; /* the time spent in this template */ }; xsltDecimalFormat xsltDecimalFormatPtr typedef xsltDecimalFormat *xsltDecimalFormatPtr; xsltDecimalFormat struct xsltDecimalFormat { struct _xsltDecimalFormat *next; /* chained list */ xmlChar *name; /* Used for interpretation of pattern */ xmlChar *digit; xmlChar *patternSeparator; /* May appear in result */ xmlChar *minusSign; xmlChar *infinity; xmlChar *noNumber; /* Not-a-number */ /* Used for interpretation of pattern and may appear in result */ xmlChar *decimalPoint; xmlChar *grouping; xmlChar *percent; xmlChar *permille; xmlChar *zeroDigit; }; xsltDocument xsltDocumentPtr typedef xsltDocument *xsltDocumentPtr; xsltDocument struct xsltDocument { struct _xsltDocument *next; /* documents are kept in a chained list */ int main; /* is this the main document */ xmlDocPtr doc; /* the parsed document */ void *keys; /* key tables storage */ }; xsltTransformContext xsltTransformContextPtr typedef xsltTransformContext *xsltTransformContextPtr; xsltElemPreComp xsltElemPreCompPtr typedef xsltElemPreComp *xsltElemPreCompPtr; xsltTransformFunction void xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, xsltElemPreCompPtr comp xsltStyleType typedef enum { XSLT_FUNC_COPY=1, XSLT_FUNC_SORT, XSLT_FUNC_TEXT, XSLT_FUNC_ELEMENT, XSLT_FUNC_ATTRIBUTE, XSLT_FUNC_COMMENT, XSLT_FUNC_PI, XSLT_FUNC_COPYOF, XSLT_FUNC_VALUEOF, XSLT_FUNC_NUMBER, XSLT_FUNC_APPLYIMPORTS, XSLT_FUNC_CALLTEMPLATE, XSLT_FUNC_APPLYTEMPLATES, XSLT_FUNC_CHOOSE, XSLT_FUNC_IF, XSLT_FUNC_FOREACH, XSLT_FUNC_DOCUMENT, XSLT_FUNC_WITHPARAM, XSLT_FUNC_PARAM, XSLT_FUNC_VARIABLE, XSLT_FUNC_WHEN, XSLT_FUNC_EXTENSION } xsltStyleType; xsltElemPreCompDeallocator void xsltElemPreCompPtr comp xsltElemPreComp struct xsltElemPreComp { xsltElemPreCompPtr next; /* chained list */ xsltStyleType type; /* type of the element */ xsltTransformFunction func; /* handling function */ xmlNodePtr inst; /* the instruction */ /* end of common part */ xsltElemPreCompDeallocator free; /* the deallocator */ }; xsltStylePreComp xsltStylePreCompPtr typedef xsltStylePreComp *xsltStylePreCompPtr; xsltStylePreComp struct xsltStylePreComp { xsltElemPreCompPtr next; /* chained list */ xsltStyleType type; /* type of the element */ xsltTransformFunction func; /* handling function */ xmlNodePtr inst; /* the instruction */ /* * Pre computed values */ xmlChar *stype; /* sort */ int has_stype; /* sort */ int number; /* sort */ xmlChar *order; /* sort */ int has_order; /* sort */ int descending; /* sort */ xmlChar *use; /* copy, element */ int has_use; /* copy, element */ int noescape; /* text */ xmlChar *name; /* element, attribute, pi */ int has_name; /* element, attribute, pi */ xmlChar *ns; /* element */ int has_ns; /* element */ xmlChar *mode; /* apply-templates */ xmlChar *modeURI; /* apply-templates */ xmlChar *test; /* if */ xsltTemplatePtr templ; /* call-template */ xmlChar *select; /* sort, copy-of, value-of, apply-templates */ int ver11; /* document */ xmlChar *filename; /* document URL */ int has_filename; /* document */ xsltNumberData numdata; /* number */ xmlXPathCompExprPtr comp; /* a precompiled XPath expression */ xmlNsPtr *nsList; /* the namespaces in scope */ int nsNr; /* the number of namespaces in scope */ }; xsltStackElem xsltStackElemPtr typedef xsltStackElem *xsltStackElemPtr; xsltStackElem struct xsltStackElem { struct _xsltStackElem *next;/* chained list */ xsltStylePreCompPtr comp; /* the compiled form */ int computed; /* was the evaluation done */ xmlChar *name; /* the local part of the name QName */ xmlChar *nameURI; /* the URI part of the name QName */ xmlChar *select; /* the eval string */ xmlNodePtr tree; /* the tree if no eval string or the location */ xmlXPathObjectPtr value; /* The value if computed */ }; xsltStylesheet xsltStylesheetPtr typedef xsltStylesheet *xsltStylesheetPtr; xsltStylesheet struct xsltStylesheet { /* * The stylesheet import relation is kept as a tree */ struct _xsltStylesheet *parent; struct _xsltStylesheet *next; struct _xsltStylesheet *imports; xsltDocumentPtr docList; /* the include document list */ /* * General data on the style sheet document */ xmlDocPtr doc; /* the parsed XML stylesheet */ xmlHashTablePtr stripSpaces;/* the hash table of the strip-space and preserve space elements */ int stripAll; /* strip-space * (1) preserve-space * (-1) */ xmlHashTablePtr cdataSection;/* the hash table of the cdata-section */ /* * Global variable or parameters */ xsltStackElemPtr variables; /* linked list of param and variables */ /* * Template descriptions */ xsltTemplatePtr templates; /* the ordered list of templates */ void *templatesHash; /* hash table or wherever compiled templates informations are stored */ void *rootMatch; /* template based on / */ void *keyMatch; /* template based on key() */ void *elemMatch; /* template based on * */ void *attrMatch; /* template based on @* */ void *parentMatch; /* template based on .. */ void *textMatch; /* template based on text() */ void *piMatch; /* template based on processing-instruction() */ void *commentMatch; /* template based on comment() */ /* * Namespace aliases */ xmlHashTablePtr nsAliases; /* the namespace alias hash tables */ /* * Attribute sets */ xmlHashTablePtr attributeSets;/* the attribute sets hash tables */ /* * Namespaces */ xmlHashTablePtr nsHash; /* the set of namespaces in use */ void *nsDefs; /* the namespaces defined */ /* * Key definitions */ void *keys; /* key definitions */ /* * Output related stuff. */ xmlChar *method; /* the output method */ xmlChar *methodURI; /* associated namespace if any */ xmlChar *version; /* version string */ xmlChar *encoding; /* encoding string */ int omitXmlDeclaration; /* omit-xml-declaration = "yes" | "no" */ /* Number formatting */ xsltDecimalFormatPtr decimalFormat; int standalone; /* standalone = "yes" | "no" */ xmlChar *doctypePublic; /* doctype-public string */ xmlChar *doctypeSystem; /* doctype-system string */ int indent; /* should output being indented */ xmlChar *mediaType; /* media-type string */ /* * Precomputed blocks */ xsltElemPreCompPtr preComps;/* list of precomputed blocks */ int warnings; /* number of warnings found at compilation */ int errors; /* number of errors found at compilation */ xmlChar *exclPrefix; /* last excluded prefixes */ xmlChar **exclPrefixTab; /* array of excluded prefixes */ int exclPrefixNr; /* number of excluded prefixes in scope */ int exclPrefixMax; /* size of the array */ void *_private; /* user defined data */ /* * Extensions */ xmlHashTablePtr extInfos; /* the extension data */ int extrasNr; /* the number of extras required */ }; xsltOutputType typedef enum { XSLT_OUTPUT_XML = 0, XSLT_OUTPUT_HTML, XSLT_OUTPUT_TEXT } xsltOutputType; xsltTransformState typedef enum { XSLT_STATE_OK = 0, XSLT_STATE_ERROR, XSLT_STATE_STOPPED } xsltTransformState; xsltTransformContext struct xsltTransformContext { xsltStylesheetPtr style; /* the stylesheet used */ xsltOutputType type; /* the type of output */ xsltTemplatePtr templ; /* the current template */ int templNr; /* Nb of templates in the stack */ int templMax; /* Size of the templtes stack */ xsltTemplatePtr *templTab; /* the template stack */ xsltStackElemPtr vars; /* the current variable list */ int varsNr; /* Nb of variable list in the stack */ int varsMax; /* Size of the variable list stack */ xsltStackElemPtr *varsTab; /* the variable list stack */ int varsBase; /* the var base for current templ */ /* * Extensions */ xmlHashTablePtr extFunctions; /* the extension functions */ xmlHashTablePtr extElements; /* the extension elements */ xmlHashTablePtr extInfos; /* the extension data */ const xmlChar *mode; /* the current mode */ const xmlChar *modeURI; /* the current mode URI */ xsltDocumentPtr docList; /* the document list */ xsltDocumentPtr document; /* the current document */ xmlNodePtr node; /* the current node being processed */ xmlNodeSetPtr nodeList; /* the current node list */ /* xmlNodePtr current; the node */ xmlDocPtr output; /* the resulting document */ xmlNodePtr insert; /* the insertion node */ xmlXPathContextPtr xpathCtxt; /* the XPath context */ xsltTransformState state; /* the current state */ /* * Global variables */ xmlHashTablePtr globalVars; /* the global variables and params */ xmlNodePtr inst; /* the instruction in the stylesheet */ int xinclude; /* should XInclude be processed */ const char * outputFile; /* the output URI if known */ int profile; /* is this run profiled */ long prof; /* the current profiled value */ int profNr; /* Nb of templates in the stack */ int profMax; /* Size of the templtaes stack */ long *profTab; /* the profile template stack */ void *_private; /* user defined data */ int extrasNr; /* the number of extras used */ int extrasMax; /* the number of extras allocated */ xsltRuntimeExtraPtr extras; /* extra per runtime informations */ }; CHECK_STOPPED #define CHECK_STOPPED if (ctxt->state == XSLT_STATE_STOPPED) return; CHECK_STOPPEDE #define CHECK_STOPPEDE if (ctxt->state == XSLT_STATE_STOPPED) goto error; CHECK_STOPPED0 #define CHECK_STOPPED0 if (ctxt->state == XSLT_STATE_STOPPED) return(0); xsltNewStylesheet xsltStylesheetPtr void xsltParseStylesheetFile xsltStylesheetPtr const xmlChar* filename xsltFreeStylesheet void xsltStylesheetPtr sheet xsltIsBlank int xmlChar *str xsltFreeStackElemList void xsltStackElemPtr elem xsltDecimalFormatGetByName xsltDecimalFormatPtr xsltStylesheetPtr sheet,xmlChar *name xsltParseStylesheetProcess xsltStylesheetPtr xsltStylesheetPtr ret,xmlDocPtr doc xsltParseStylesheetOutput void xsltStylesheetPtr style,xmlNodePtr cur xsltParseStylesheetDoc xsltStylesheetPtr xmlDocPtr doc xsltLoadStylesheetPI xsltStylesheetPtr xmlDocPtr doc xsltNumberFormat void xsltTransformContextPtr ctxt,xsltNumberDataPtr data,xmlNodePtr node xsltFormatNumberConversion xmlXPathError xsltDecimalFormatPtr self,xmlChar *format,double number,xmlChar **result xsltParseTemplateContent void xsltStylesheetPtr style,xmlNodePtr templ xsltAllocateExtra int xsltStylesheetPtr style xsltAllocateExtraCtxt int xsltTransformContextPtr ctxt