ReactOS 0.4.16-dev-329-g9223134
|
#include <libxml/tree.h>
#include <libxml/hash.h>
#include <libxml/xpath.h>
#include <libxml/xmlerror.h>
#include <libxml/dict.h>
#include <libxml/xmlstring.h>
#include <libxslt/xslt.h>
#include "xsltexports.h"
#include "xsltlocale.h"
#include "numbersInternals.h"
Go to the source code of this file.
Classes | |
struct | _xsltRuntimeExtra |
struct | _xsltTemplate |
struct | _xsltDecimalFormat |
struct | _xsltDocument |
struct | _xsltKeyDef |
struct | _xsltKeyTable |
struct | _xsltElemPreComp |
struct | _xsltStylePreComp |
struct | _xsltStackElem |
struct | _xsltStylesheet |
struct | _xsltTransformCache |
struct | _xsltTransformContext |
Macros | |
#define | XSLT_IS_TEXT_NODE(n) |
#define | XSLT_MARK_RES_TREE_FRAG(n) (n)->name = (char *) xmlStrdup(BAD_CAST " fake node libxslt"); |
#define | XSLT_IS_RES_TREE_FRAG(n) |
#define | XSLT_REFACTORED_KEYCOMP |
#define | XSLT_FAST_IF |
#define | XSLT_REFACTORED_VARS |
#define | XSLT_MAX_SORT 15 |
#define | XSLT_PAT_NO_PRIORITY -12345789 |
#define | XSLT_RUNTIME_EXTRA_LST(ctxt, nr) (ctxt)->extras[(nr)].info |
#define | XSLT_RUNTIME_EXTRA_FREE(ctxt, nr) (ctxt)->extras[(nr)].deallocate |
#define | XSLT_RUNTIME_EXTRA(ctxt, nr, typ) (ctxt)->extras[(nr)].val.typ |
#define | CHECK_STOPPED if (ctxt->state == XSLT_STATE_STOPPED) return; |
#define | CHECK_STOPPEDE if (ctxt->state == XSLT_STATE_STOPPED) goto error; |
#define | CHECK_STOPPED0 if (ctxt->state == XSLT_STATE_STOPPED) return(0); |
#define | XML_CAST_FPTR(fptr) fptr |
Enumerations | |
enum | xsltStyleType { 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 } |
enum | xsltOutputType { XSLT_OUTPUT_XML = 0 , XSLT_OUTPUT_HTML , XSLT_OUTPUT_TEXT } |
enum | xsltTransformState { XSLT_STATE_OK = 0 , XSLT_STATE_ERROR , XSLT_STATE_STOPPED } |
#define CHECK_STOPPED if (ctxt->state == XSLT_STATE_STOPPED) return; |
CHECK_STOPPED:
Macro to check if the XSLT processing should be stopped. Will return from the function.
Definition at line 1797 of file xsltInternals.h.
#define CHECK_STOPPED0 if (ctxt->state == XSLT_STATE_STOPPED) return(0); |
CHECK_STOPPED0:
Macro to check if the XSLT processing should be stopped. Will return from the function with a 0 value.
Definition at line 1813 of file xsltInternals.h.
#define CHECK_STOPPEDE if (ctxt->state == XSLT_STATE_STOPPED) goto error; |
CHECK_STOPPEDE:
Macro to check if the XSLT processing should be stopped. Will goto the error: label.
Definition at line 1805 of file xsltInternals.h.
#define XML_CAST_FPTR | ( | fptr | ) | fptr |
XML_CAST_FPTR: @fptr: pointer to a function
Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc
define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now
Definition at line 1835 of file xsltInternals.h.
#define XSLT_FAST_IF |
XSLT_FAST_IF:
Internal define to enable usage of xmlXPathCompiledEvalToBoolean() for XSLT "tests"; e.g. in <xsl:if test="/foo/bar">
Definition at line 74 of file xsltInternals.h.
XSLT_IS_RES_TREE_FRAG:
internal macro to test tree fragments
Definition at line 56 of file xsltInternals.h.
XSLT_IS_TEXT_NODE:
check if the argument is a text node
Definition at line 38 of file xsltInternals.h.
XSLT_MARK_RES_TREE_FRAG:
internal macro to set up tree fragments
Definition at line 48 of file xsltInternals.h.
#define XSLT_MAX_SORT 15 |
XSLT_REFACTORED_PARSING:
Internal define to enable the refactored parts of Libxslt related to parsing. XSLT_MAX_SORT:
Max number of specified xsl:sort on an element.
Definition at line 209 of file xsltInternals.h.
#define XSLT_PAT_NO_PRIORITY -12345789 |
XSLT_PAT_NO_PRIORITY:
Specific value for pattern without priority expressed.
Definition at line 216 of file xsltInternals.h.
#define XSLT_REFACTORED_KEYCOMP |
XSLT_REFACTORED_KEYCOMP:
Internal define to enable on-demand xsl:key computation. That's the only mode now but the define is kept for compatibility
Definition at line 66 of file xsltInternals.h.
#define XSLT_REFACTORED_VARS |
XSLT_REFACTORED:
Internal define to enable the refactored parts of Libxslt. XSLT_REFACTORED_VARS:
Internal define to enable the refactored variable part of libxslt
Definition at line 89 of file xsltInternals.h.
XSLT_RUNTIME_EXTRA: @ctxt: the transformation context @nr: the index
Macro used to define extra information stored in the context
Definition at line 257 of file xsltInternals.h.
XSLT_RUNTIME_EXTRA_FREE: @ctxt: the transformation context @nr: the index
Macro used to free extra information stored in the context
Definition at line 249 of file xsltInternals.h.
XSLT_RUNTIME_EXTRA_LST: @ctxt: the transformation context @nr: the index
Macro used to access extra information stored in the context
Definition at line 241 of file xsltInternals.h.
xsltDecimalFormat:
Data structure of decimal-format.
Definition at line 304 of file xsltInternals.h.
typedef xsltDecimalFormat* xsltDecimalFormatPtr |
Definition at line 305 of file xsltInternals.h.
typedef struct _xsltDocument xsltDocument |
xsltDocument:
Data structure associated to a parsed document.
Definition at line 330 of file xsltInternals.h.
typedef xsltDocument* xsltDocumentPtr |
Definition at line 331 of file xsltInternals.h.
typedef struct _xsltElemPreComp xsltElemPreComp |
xsltElemPreComp:
The in-memory structure corresponding to element precomputed data, designed to be extended by extension implementors.
Definition at line 394 of file xsltInternals.h.
typedef void(* xsltElemPreCompDeallocator) (xsltElemPreCompPtr comp) |
xsltElemPreCompDeallocator: @comp: the xsltElemPreComp to free up
Deallocates an xsltElemPreComp structure.
Definition at line 464 of file xsltInternals.h.
typedef xsltElemPreComp* xsltElemPreCompPtr |
Definition at line 395 of file xsltInternals.h.
typedef struct _xsltKeyDef xsltKeyDef |
typedef xsltKeyDef* xsltKeyDefPtr |
Definition at line 348 of file xsltInternals.h.
typedef struct _xsltKeyTable xsltKeyTable |
xsltKeyTable:
Holds the computed keys for key definitions of the same QName. Is owned by an xsltDocument.
Definition at line 368 of file xsltInternals.h.
typedef xsltKeyTable* xsltKeyTablePtr |
Definition at line 369 of file xsltInternals.h.
typedef struct _xsltRuntimeExtra xsltRuntimeExtra |
xsltRuntimeExtra:
Extra information added to the transformation context.
Definition at line 223 of file xsltInternals.h.
typedef xsltRuntimeExtra* xsltRuntimeExtraPtr |
Definition at line 224 of file xsltInternals.h.
typedef void(* xsltSortFunc) (xsltTransformContextPtr ctxt, xmlNodePtr *sorts, int nbsorts) |
xsltSortFunc: @ctxt: a transformation context @sorts: the node-set to sort @nbsorts: the number of sorts
Signature of the function to use during sorting
Definition at line 420 of file xsltInternals.h.
typedef struct _xsltStackElem xsltStackElem |
Definition at line 1421 of file xsltInternals.h.
typedef xsltStackElem* xsltStackElemPtr |
Definition at line 1422 of file xsltInternals.h.
typedef struct _xsltStylePreComp xsltStylePreComp |
xsltStylePreComp:
The abstract basic structure for items of the XSLT processor. This includes: 1) compiled forms of XSLT instructions (xsl:if, xsl:attribute, etc.) 2) compiled forms of literal result elements 3) compiled forms of extension elements
Definition at line 495 of file xsltInternals.h.
typedef xsltStylePreComp* xsltStylePreCompPtr |
Definition at line 496 of file xsltInternals.h.
typedef struct _xsltStylesheet xsltStylesheet |
Definition at line 382 of file xsltInternals.h.
typedef xsltStylesheet* xsltStylesheetPtr |
Definition at line 383 of file xsltInternals.h.
typedef struct _xsltTemplate xsltTemplate |
xsltTemplate:
The in-memory structure corresponding to an XSLT Template.
Definition at line 264 of file xsltInternals.h.
typedef xsltTemplate* xsltTemplatePtr |
Definition at line 265 of file xsltInternals.h.
Definition at line 1642 of file xsltInternals.h.
typedef xsltTransformCache* xsltTransformCachePtr |
Definition at line 1643 of file xsltInternals.h.
Definition at line 385 of file xsltInternals.h.
Definition at line 386 of file xsltInternals.h.
typedef void(* xsltTransformFunction) (xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, xsltElemPreCompPtr comp) |
xsltTransformFunction: @ctxt: the XSLT transformation context @node: the input node @inst: the stylesheet node @comp: the compiled information from the stylesheet
Signature of the function associated to elements part of the stylesheet language like xsl:if or xsl:apply-templates.
Definition at line 407 of file xsltInternals.h.
Enumerator | |
---|---|
XSLT_OUTPUT_XML | |
XSLT_OUTPUT_HTML | |
XSLT_OUTPUT_TEXT |
Definition at line 1660 of file xsltInternals.h.
Definition at line 423 of file xsltInternals.h.
Enumerator | |
---|---|
XSLT_STATE_OK | |
XSLT_STATE_ERROR | |
XSLT_STATE_STOPPED |
Definition at line 1666 of file xsltInternals.h.
XSLTPUBFUN int XSLTCALL xsltAllocateExtra | ( | xsltStylesheetPtr | style | ) |
xsltAllocateExtra: @style: an XSLT stylesheet
Allocate an extra runtime information slot statically while compiling the stylesheet and return its number
Returns the number of the slot
Definition at line 809 of file xslt.c.
Referenced by xsltCompMatchAdd().
XSLTPUBFUN int XSLTCALL xsltAllocateExtraCtxt | ( | xsltTransformContextPtr | ctxt | ) |
xsltAllocateExtraCtxt: @ctxt: an XSLT transformation context
Allocate an extra runtime information slot at run-time and return its number This make sure there is a slot ready in the transformation context
Returns the number of the slot
Definition at line 825 of file xslt.c.
Referenced by xsltCompMatchAdd().
XSLTPUBFUN void XSLTCALL xsltCompileAttr | ( | xsltStylesheetPtr | style, |
xmlAttrPtr | attr | ||
) |
xsltCompileAttr: @style: a XSLT process context @attr: the attribute coming from the stylesheet.
Precompile an attribute in a stylesheet, basically it checks if it is an attribute value template, and if yes, establish some structures needed to process it at transformation time.
Definition at line 168 of file attrvt.c.
Referenced by xsltParseTemplateContent().
XSLTPUBFUN xmlDocPtr XSLTCALL xsltCreateRVT | ( | xsltTransformContextPtr | ctxt | ) |
xsltCreateRVT: @ctxt: an XSLT transformation context
Creates a Result Value Tree (the XSLT 1.0 term for this is "Result Tree Fragment")
Returns the result value tree or NULL in case of API or internal errors.
Definition at line 44 of file variables.c.
Referenced by xsltEvalGlobalVariable(), and xsltEvalVariable().
XSLTPUBFUN xsltDecimalFormatPtr XSLTCALL xsltDecimalFormatGetByName | ( | xsltStylesheetPtr | style, |
xmlChar * | name | ||
) |
Definition at line 334 of file xslt.c.
XSLTPUBFUN xsltDecimalFormatPtr XSLTCALL xsltDecimalFormatGetByQName | ( | xsltStylesheetPtr | style, |
const xmlChar * | nsUri, | ||
const xmlChar * | name | ||
) |
Definition at line 364 of file xslt.c.
Referenced by xsltFormatNumberFunction(), and xsltParseStylesheetDecimalFormat().
XSLTPUBFUN xmlChar *XSLTCALL xsltEvalAVT | ( | xsltTransformContextPtr | ctxt, |
void * | avt, | ||
xmlNodePtr | node | ||
) |
xsltEvalAVT: @ctxt: the XSLT transformation context @avt: the prevompiled attribute value template info @node: the node hosting the attribute
Process the given AVT, and return the new string value.
Returns the computed string value or NULL, must be deallocated by the caller.
Definition at line 356 of file attrvt.c.
Referenced by xsltAttrListTemplateProcess(), and xsltAttrTemplateProcess().
XSLTPUBFUN int XSLTCALL xsltExtensionInstructionResultFinalize | ( | xsltTransformContextPtr ctxt | ATTRIBUTE_UNUSED | ) |
xsltExtensionInstructionResultFinalize: @ctxt: an XSLT transformation context
Finalizes the data (e.g. result tree fragments) created within a value-returning process (e.g. EXSLT's function). Tree fragments marked as being returned by a function are set to normal state, which means that the fragment garbage collector will free them after the function-calling process exits.
Returns 0 in case of success and -1 in case of API or internal errors.
This function is unsupported in newer releases of libxslt.
Definition at line 187 of file variables.c.
XSLTPUBFUN int XSLTCALL xsltExtensionInstructionResultRegister | ( | xsltTransformContextPtr ctxt | ATTRIBUTE_UNUSED, |
xmlXPathObjectPtr obj | ATTRIBUTE_UNUSED | ||
) |
xsltExtensionInstructionResultRegister: @ctxt: an XSLT transformation context @obj: an XPath object to be inspected for result tree fragments
Marks the result of a value-returning extension instruction in order to avoid it being garbage collected before the extension instruction exits. Note that one still has to additionally register any newly created tree fragments (via xsltCreateRVT()) with xsltRegisterLocalRVT().
Returns 0 in case of success and -1 in case of error.
It isn't necessary to call this function in newer releases of libxslt.
Definition at line 213 of file variables.c.
XSLTPUBFUN int XSLTCALL xsltFlagRVTs | ( | xsltTransformContextPtr | ctxt, |
xmlXPathObjectPtr | obj, | ||
void * | val | ||
) |
xsltFlagRVTs: @ctxt: an XSLT transformation context @obj: an XPath object to be inspected for result tree fragments @val: the flag value
Updates ownership information of RVTs in @obj according to @val.
@val = XSLT_RVT_FUNC_RESULT for the result of an extension function, so its RVTs won't be destroyed after leaving the returning scope. @val = XSLT_RVT_LOCAL for the result of an extension function to reset the state of its RVTs after it was returned to a new scope. @val = XSLT_RVT_GLOBAL for parts of global variables.
Returns 0 in case of success and -1 in case of error.
Definition at line 237 of file variables.c.
Referenced by xsltEvalGlobalVariable().
XSLTPUBFUN xmlXPathError XSLTCALL xsltFormatNumberConversion | ( | xsltDecimalFormatPtr | self, |
xmlChar * | format, | ||
double | number, | ||
xmlChar ** | result | ||
) |
xsltFormatNumberConversion: @self: the decimal format @format: the format requested @number: the value to format
format-number() uses the JDK 1.1 DecimalFormat class:
http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html
Structure:
pattern := subpattern{;subpattern} subpattern := {prefix}integer{.fraction}{suffix} prefix := '\u0000'..'\uFFFD' - specialCharacters suffix := '\u0000'..'\uFFFD' - specialCharacters integer := '#'* '0'* '0' fraction := '0'* '#'*
Notation: X* 0 or more instances of X (X | Y) either X or Y. X..Y any character from X up to Y, inclusive. S - T characters in S, except those in T
Special Characters:
Symbol Meaning 0 a digit
. placeholder for decimal separator , placeholder for grouping separator. ; separates formats.
Returns a possible XPath error
Definition at line 941 of file numbers.c.
Referenced by xsltFormatNumberFunction().
XSLTPUBFUN void XSLTCALL xsltFreeAVTList | ( | void * | avt | ) |
xsltFreeAVTList: @avt: pointer to an list of AVT structures
Free up the memory associated to the attribute value templates
Definition at line 119 of file attrvt.c.
Referenced by xsltFreeStylesheet().
XSLTPUBFUN void XSLTCALL xsltFreeRVTs | ( | xsltTransformContextPtr | ctxt | ) |
xsltFreeRVTs: @ctxt: an XSLT transformation context
Frees all registered result value trees (Result Tree Fragments) of the transformation. Internal function; should not be called by user-code.
Definition at line 416 of file variables.c.
Referenced by xsltApplyStylesheetInternal(), and xsltFreeTransformContext().
XSLTPUBFUN void XSLTCALL xsltFreeStackElemList | ( | xsltStackElemPtr | elem | ) |
xsltFreeStackElemList: @elem: an XSLT stack element
Free up the memory allocated by @elem
Definition at line 603 of file variables.c.
Referenced by xsltApplyStylesheetInternal(), xsltApplyTemplates(), xsltCallTemplate(), xsltFreeStylesheet(), xsltLocalVariablePop(), and xsltTemplateParamsCleanup().
XSLTPUBFUN void XSLTCALL xsltFreeStylesheet | ( | xsltStylesheetPtr | style | ) |
xsltFreeStylesheet: @style: an XSLT stylesheet
Free up the memory allocated by @style
Definition at line 950 of file xslt.c.
Referenced by xsltDocumentElem(), xsltFreeStylesheetList(), xsltNewStylesheetInternal(), and xsltParseStylesheetImportedDoc().
XSLTPUBFUN int XSLTCALL xsltInitAllDocKeys | ( | xsltTransformContextPtr | ctxt | ) |
xsltInitAllDocKeys: @ctxt: transformation context
INTERNAL ROUTINE ONLY
Check if any keys on the current document need to be computed
Returns 0 in case of success, -1 in case of failure
Definition at line 535 of file keys.c.
Referenced by xsltComputeAllKeys(), and xsltGetKey().
XSLTPUBFUN int XSLTCALL xsltInitCtxtKey | ( | xsltTransformContextPtr | ctxt, |
xsltDocumentPtr | idoc, | ||
xsltKeyDefPtr | keyDef | ||
) |
xsltInitCtxtKey: @ctxt: an XSLT transformation context @idoc: the document information (holds key values) @keyDef: the key definition
Computes the key tables this key and for the current input document.
Returns: 0 on success, -1 on error
Multiple key definitions for the same name are allowed, so we must check if the key is already present for this doc
If the key was not previously defined, create it now and chain it to the list of keys for the doc
Definition at line 604 of file keys.c.
Referenced by xsltInitCtxtKeys(), and xsltInitDocKeyTable().
XSLTPUBFUN int XSLTCALL xsltIsBlank | ( | xmlChar * | str | ) |
xsltIsBlank: @str: a string
Check if a string is ignorable
Returns 1 if the string is NULL or made of blanks chars, 0 otherwise
Definition at line 234 of file xslt.c.
Referenced by xsltVariableComp().
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltLoadStylesheetPI | ( | xmlDocPtr | doc | ) |
xsltLoadStylesheetPI: @doc: a document to process
This function tries to locate the stylesheet PI in the given document If found, and if contained within the document, it will extract that subtree to build the stylesheet to process @doc (doc itself will be modified). If found but referencing an external document it will attempt to load it and generate a stylesheet from it. In both cases, the resulting stylesheet and the document need to be freed once the transformation is done.
Returns a new XSLT stylesheet structure or NULL if not found.
Definition at line 6873 of file xslt.c.
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltNewStylesheet | ( | void | ) |
xsltNewStylesheet:
Create a new XSLT Stylesheet
Returns the newly allocated xsltStylesheetPtr or NULL in case of error
Definition at line 795 of file xslt.c.
Referenced by xsltDocumentElem().
XSLTPUBFUN void XSLTCALL xsltNumberFormat | ( | xsltTransformContextPtr | ctxt, |
xsltNumberDataPtr | data, | ||
xmlNodePtr | node | ||
) |
xsltNumberFormat: @ctxt: the XSLT transformation context @data: the formatting information @node: the data to format
Convert one number.
Definition at line 728 of file numbers.c.
Referenced by xsltNumber().
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltParseStylesheetDoc | ( | xmlDocPtr | doc | ) |
xsltParseStylesheetDoc: @doc: and xmlDoc parsed XML
parse an XSLT stylesheet, building the associated structures. doc is kept as a reference within the returned stylesheet, so changes to doc after the parsing will be reflected when the stylesheet is applied, and the doc is automatically freed when the stylesheet is closed.
Returns a new XSLT stylesheet structure.
Definition at line 6695 of file xslt.c.
Referenced by xsltLoadStylesheetPI(), and xsltParseStylesheetFile().
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltParseStylesheetFile | ( | const xmlChar * | filename | ) |
xsltParseStylesheetFile: @filename: the filename/URL to the stylesheet
Load and parse an XSLT stylesheet
Returns a new XSLT stylesheet structure.
Definition at line 6711 of file xslt.c.
Referenced by xsltLoadStylesheetPI().
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltParseStylesheetImportedDoc | ( | xmlDocPtr | doc, |
xsltStylesheetPtr | parentStyle | ||
) |
xsltParseStylesheetImportedDoc: @doc: an xmlDoc parsed XML @parentStyle: pointer to the parent stylesheet (if it exists)
parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents.
Returns a new XSLT stylesheet structure.
Definition at line 6514 of file xslt.c.
Referenced by xsltParseStylesheetDoc(), and xsltParseStylesheetImport().
XSLTPUBFUN void XSLTCALL xsltParseStylesheetOutput | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseStylesheetOutput: @style: the XSLT stylesheet @cur: the "output" element
parse an XSLT stylesheet output element and record information related to the stylesheet output
Definition at line 1181 of file xslt.c.
Referenced by xsltParseStylesheetTop().
XSLTPUBFUN xsltStylesheetPtr XSLTCALL xsltParseStylesheetProcess | ( | xsltStylesheetPtr | ret, |
xmlDocPtr | doc | ||
) |
xsltParseStylesheetProcess: @ret: the XSLT stylesheet (the current stylesheet-level) @doc: and xmlDoc parsed XML
Parses an XSLT stylesheet, adding the associated structures. Called by: xsltParseStylesheetImportedDoc() (xslt.c) xsltParseStylesheetInclude() (imports.c)
Returns the value of the @style parameter if everything went right, NULL if something went amiss.
Definition at line 6406 of file xslt.c.
Referenced by xsltParseStylesheetInclude(), and xsltParseStylesheetUser().
XSLTPUBFUN int XSLTCALL xsltParseStylesheetUser | ( | xsltStylesheetPtr | style, |
xmlDocPtr | doc | ||
) |
xsltParseStylesheetUser: @style: pointer to the stylesheet @doc: an xmlDoc parsed XML
Parse an XSLT stylesheet with a user-provided stylesheet struct.
Returns 0 if successful, -1 in case of error.
Definition at line 6543 of file xslt.c.
Referenced by xsltParseStylesheetImportedDoc().
XSLTPUBFUN void XSLTCALL xsltParseTemplateContent | ( | xsltStylesheetPtr | style, |
xmlNodePtr | templ | ||
) |
xsltParseTemplateContent: @style: the XSLT stylesheet @templ: the container node (can be a document for literal results)
parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text
Definition at line 4878 of file xslt.c.
Referenced by xsltParseGlobalParam(), xsltParseGlobalVariable(), xsltParseStylesheetAttributeSet(), xsltParseStylesheetProcess(), and xsltParseStylesheetTemplate().
XSLTPUBFUN int XSLTCALL xsltRegisterLocalRVT | ( | xsltTransformContextPtr | ctxt, |
xmlDocPtr | RVT | ||
) |
xsltRegisterLocalRVT: @ctxt: an XSLT transformation context @RVT: a result value tree (Result Tree Fragment; xmlDocPtr)
Registers a result value tree (XSLT 1.0 term: Result Tree Fragment) in the RVT garbage collector. The fragment will be freed when the instruction which created the fragment exits.
Returns 0 in case of success and -1 in case of API or internal errors.
Definition at line 138 of file variables.c.
Referenced by xsltFreeStackElem(), and xsltReleaseLocalRVTs().
XSLTPUBFUN int XSLTCALL xsltRegisterPersistRVT | ( | xsltTransformContextPtr | ctxt, |
xmlDocPtr | RVT | ||
) |
xsltRegisterPersistRVT: @ctxt: an XSLT transformation context @RVT: a result value tree (Result Tree Fragment)
Register the result value tree (XSLT 1.0 term: Result Tree Fragment) in the fragment garbage collector. The fragment will be freed when the transformation context is freed.
Returns 0 in case of success and -1 in case of error.
Definition at line 394 of file variables.c.
Referenced by xsltEvalGlobalVariable(), and xsltReleaseLocalRVTs().
XSLTPUBFUN int XSLTCALL xsltRegisterTmpRVT | ( | xsltTransformContextPtr | ctxt, |
xmlDocPtr | RVT | ||
) |
xsltRegisterTmpRVT: @ctxt: an XSLT transformation context @RVT: a result value tree (Result Tree Fragment)
Registers the result value tree (XSLT 1.0 term: Result Tree Fragment) in the garbage collector. The fragment will be freed at the exit of the currently instantiated xsl:template. Obsolete; this function might produce massive memory overhead, since the fragment is only freed when the current xsl:template exits. Use xsltRegisterLocalRVT() instead.
Returns 0 in case of success and -1 in case of API or internal errors.
Definition at line 99 of file variables.c.
XSLTPUBFUN void XSLTCALL xsltReleaseRVT | ( | xsltTransformContextPtr | ctxt, |
xmlDocPtr | RVT | ||
) |
xsltReleaseRVT: @ctxt: an XSLT transformation context @RVT: a result value tree (Result Tree Fragment)
Either frees the RVT (which is an xmlDoc) or stores it in the context's cache for later reuse.
Definition at line 328 of file variables.c.
Referenced by xsltApplyXSLTTemplate(), xsltFreeStackElem(), and xsltReleaseLocalRVTs().
XSLTPUBFUN void XSLTCALL xsltUninit | ( | void | ) |
xsltUninit:
Uninitializes the processor.
Definition at line 217 of file xslt.c.
Referenced by xsltCleanupGlobals().