Eneboo - Documentación para desarrolladores
|
#include "libxslt.h"
#include <string.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/valid.h>
#include <libxml/hash.h>
#include <libxml/uri.h>
#include <libxml/xmlerror.h>
#include <libxml/parserInternals.h>
#include <libxml/xpathInternals.h>
#include <libxml/xpath.h>
#include "xslt.h"
#include "xsltInternals.h"
#include "pattern.h"
#include "variables.h"
#include "namespaces.h"
#include "attributes.h"
#include "xsltutils.h"
#include "imports.h"
#include "keys.h"
#include "documents.h"
#include "extensions.h"
#include "preproc.h"
#include "extra.h"
#include "security.h"
#define CUR (*cur) |
#define IN_LIBXSLT |
#define IS_BLANK_NODE | ( | n | ) | (((n)->type == XML_TEXT_NODE) && (xsltIsBlank((n)->content))) |
#define NEXT ((*cur) ? cur++ : cur) |
#define SKIP_BLANKS while (IS_BLANK(CUR)) NEXT |
double xmlXPathStringEvalNumber | ( | const xmlChar * | str | ) |
int xsltAllocateExtra | ( | xsltStylesheetPtr | style | ) |
xsltAllocateExtra: : an XSLT stylesheet
Allocate an extra runtime information slot statically while compiling the stylesheet and return its number
Returns the number of the slot
int xsltAllocateExtraCtxt | ( | xsltTransformContextPtr | ctxt | ) |
xsltAllocateExtraCtxt: : 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
xsltDecimalFormatPtr xsltDecimalFormatGetByName | ( | xsltStylesheetPtr | style, |
xmlChar * | name | ||
) |
void xsltFreeStylesheet | ( | xsltStylesheetPtr | style | ) |
xsltFreeStylesheet: : an XSLT stylesheet
Free up the memory allocated by
void xsltInit | ( | void | ) |
xsltInit:
Initializes the processor (e.g. registers built-in extensions, etc.)
xsltIsBlank: : a string
Check if a string is ignorable
Returns 1 if the string is NULL or made of blanks chars, 0 otherwise
xsltStylesheetPtr xsltLoadStylesheetPI | ( | xmlDocPtr | doc | ) |
xsltLoadStylesheetPI: : 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 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.
xsltStylesheetPtr xsltNewStylesheet | ( | void | ) |
xsltNewStylesheet:
Create a new XSLT Stylesheet
Returns the newly allocated xsltStylesheetPtr or NULL in case of error
xsltStylesheetPtr xsltParseStylesheetDoc | ( | xmlDocPtr | doc | ) |
xsltParseStylesheetDoc: : 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.
xsltStylesheetPtr xsltParseStylesheetFile | ( | const xmlChar * | filename | ) |
xsltParseStylesheetFile: : the filename/URL to the stylesheet
Load and parse an XSLT stylesheet
Returns a new XSLT stylesheet structure.
xsltStylesheetPtr xsltParseStylesheetImportedDoc | ( | xmlDocPtr | doc, |
xsltStylesheetPtr | parentStyle | ||
) |
xsltParseStylesheetImportedDoc: : an xmlDoc parsed XML : 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.
void xsltParseStylesheetOutput | ( | xsltStylesheetPtr | style, |
xmlNodePtr | cur | ||
) |
xsltParseStylesheetOutput: : the XSLT stylesheet : the "output" element
parse an XSLT stylesheet output element and record information related to the stylesheet output
xsltStylesheetPtr xsltParseStylesheetProcess | ( | xsltStylesheetPtr | ret, |
xmlDocPtr | doc | ||
) |
xsltParseStylesheetProcess: : the XSLT stylesheet (the current stylesheet-level) : 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 parameter if everything went right, NULL if something went amiss.
void xsltParseTemplateContent | ( | xsltStylesheetPtr | style, |
xmlNodePtr | templ | ||
) |
xsltParseTemplateContent: : the XSLT stylesheet : 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
void xsltUninit | ( | void | ) |
xsltUninit:
Uninitializes the processor.
const char* xsltEngineVersion = LIBXSLT_VERSION_STRING LIBXSLT_VERSION_EXTRA |
const int xsltLibxmlVersion = LIBXML_VERSION |
const int xsltLibxsltVersion = LIBXSLT_VERSION |