|
Eneboo - Documentación para desarrolladores
|
#include <libxml/parser.h>#include <libxml/xmlIO.h>#include "xsltexports.h"#include <libxslt/xsltInternals.h>Ir al código fuente de este archivo.
| XSLTPUBFUN void XSLTCALL xslHandleDebugger | ( | xmlNodePtr | cur, |
| xmlNodePtr | node, | ||
| xsltTemplatePtr | templ, | ||
| xsltTransformContextPtr | ctxt | ||
| ) |
xslHandleDebugger: : source node being executed : data node being processed : temlate that applies to node : the xslt transform context
If either cur or node are a breakpoint, or xslDebugStatus in state where debugging must occcur at this time then transfer control to the xslDebugBreak function
| XSLTPUBFUN void XSLTCALL xsltApplyImports | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr comp | ATTRIBUTE_UNUSED | ||
| ) |
xsltApplyImports: : an XSLT transformation context : the current node in the source tree. : the element node of the XSLT 'apply-imports' instruction : the compiled instruction
Process the XSLT apply-imports element.
| XSLTPUBFUN void XSLTCALL xsltApplyOneTemplate | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xmlNodePtr | list, | ||
| xsltTemplatePtr templ | ATTRIBUTE_UNUSED, | ||
| xsltStackElemPtr | params | ||
| ) |
xsltApplyOneTemplate: : a XSLT process context : the node in the source tree. : the nodes of a sequence constructor : not used : a set of parameters (xsl:param) or NULL
Processes a sequence constructor on the current node in the source tree.
are the already computed variable stack items; this function pushes them on the variable stack, and pops them before exiting; it's left to the caller to free or reuse afterwards. The initial states of the variable stack will always be restored before this function exits. NOTE that this does *not* initiate a new distinct variable scope; i.e. variables already on the stack are visible to the process. The caller's side needs to start a new variable scope if needed (e.g. in exsl:function).
is obsolete and not used anymore (e.g. <exslt:function> does not provide a ); a non-NULL might raise an error in the future.
BIG NOTE: This function is not intended to process the content of an xsl:template; it does not expect xsl:param instructions in and will report errors if found.
Called by:
| XSLTPUBFUN void XSLTCALL xsltApplyStripSpaces | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node | ||
| ) |
Private Interfaces.
xsltApplyStripSpaces: : a XSLT process context : the root of the XML tree
Strip the unwanted ignorable spaces from the input tree
| XSLTPUBFUN xmlDocPtr XSLTCALL xsltApplyStylesheet | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc, | ||
| const char ** | params | ||
| ) |
xsltApplyStylesheet: : a parsed XSLT stylesheet : a parsed XML document : a NULL terminated arry of parameters names/values tuples
Apply the stylesheet to the document NOTE: This may lead to a non-wellformed output XML wise !
Returns the result document or NULL in case of error
| XSLTPUBFUN xmlDocPtr XSLTCALL xsltApplyStylesheetUser | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc, | ||
| const char ** | params, | ||
| const char * | output, | ||
| FILE * | profile, | ||
| xsltTransformContextPtr | userCtxt | ||
| ) |
xsltApplyStylesheetUser: : a parsed XSLT stylesheet : a parsed XML document : a NULL terminated array of parameters names/values tuples : the targetted output : profile FILE * output or NULL : user provided transform context
Apply the stylesheet to the document and allow the user to provide its own transformation context.
Returns the result document or NULL in case of error
| XSLTPUBFUN void XSLTCALL xsltApplyTemplates | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltApplyTemplates: : a XSLT transformation context : the 'current node' in the source tree : the element node of an XSLT 'apply-templates' instruction : the compiled instruction
Processes the XSLT 'apply-templates' instruction on the current node.
| XSLTPUBFUN void XSLTCALL xsltAttribute | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | comp | ||
| ) |
xsltAttribute: : a XSLT process context : the node in the source tree. : the xslt attribute node : precomputed information
Process the xslt attribute node on the source node
| XSLTPUBFUN void XSLTCALL xsltCallTemplate | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltCallTemplate: : a XSLT transformation context : the "current node" in the source tree : the XSLT 'call-template' instruction : the compiled information of the instruction
Processes the XSLT call-template instruction on the source node.
| XSLTPUBFUN void XSLTCALL xsltChoose | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr comp | ATTRIBUTE_UNUSED | ||
| ) |
xsltChoose: : a XSLT process context : the current node in the source tree : the xsl:choose instruction : compiled information of the instruction
Processes the xsl:choose instruction on the source node.
| XSLTPUBFUN void XSLTCALL xsltComment | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr comp | ATTRIBUTE_UNUSED | ||
| ) |
xsltComment: : a XSLT process context : the node in the source tree. : the xslt comment node : precomputed information
Process the xslt comment node on the source node
| XSLTPUBFUN void XSLTCALL xsltCopy | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltCopy: : an XSLT process context : the node in the source tree : the element node of the XSLT-copy instruction : computed information of the XSLT-copy instruction
Execute the XSLT-copy instruction on the source node.
| XSLTPUBFUN void XSLTCALL xsltCopyOf | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltCopyOf: : an XSLT transformation context : the current node in the source tree : the element node of the XSLT copy-of instruction : precomputed information of the XSLT copy-of instruction
Process the XSLT copy-of instruction.
| XSLTPUBFUN xmlNodePtr XSLTCALL xsltCopyTextString | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | target, | ||
| const xmlChar * | string, | ||
| int | noescape | ||
| ) |
xsltCopyTextString: : a XSLT process context : the element where the text will be attached : the text string : should disable-escaping be activated for this text node.
Adds to a newly created or an existent text node child of .
Returns: the text node, where the text content of is copied to. NULL in case of API or internal errors.
| XSLTPUBFUN void XSLTCALL xsltDocumentElem | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltDocumentElem: : an XSLT processing context : The current node : the instruction in the stylesheet : precomputed information
Process an EXSLT/XSLT-1.1 document element
| XSLTPUBFUN void XSLTCALL xsltElement | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltElement: : a XSLT process context : the node in the source tree. : the xslt element node : precomputed information
Process the xslt element node on the source node
| XSLTPUBFUN void XSLTCALL xsltForEach | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltForEach: : an XSLT transformation context : the "current node" in the source tree : the element node of the xsl:for-each instruction : the compiled information of the instruction
Process the xslt for-each node on the source node
| XSLTPUBFUN void XSLTCALL xsltFreeTransformContext | ( | xsltTransformContextPtr | ctxt | ) |
xsltFreeTransformContext: : an XSLT parser context
Free up the memory allocated by
| XSLTPUBFUN int XSLTCALL xsltGetXIncludeDefault | ( | void | ) |
xsltGetXIncludeDefault:
Provides the default state for XInclude processing
Returns 0 if there is no processing 1 otherwise
| XSLTPUBFUN void XSLTCALL xsltIf | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltIf: : a XSLT process context : the current node in the source tree : the xsl:if instruction : compiled information of the instruction
Processes the xsl:if instruction on the source node.
| XSLTPUBFUN void XSLTCALL xsltLocalVariablePop | ( | xsltTransformContextPtr | ctxt, |
| int | limitNr, | ||
| int | level | ||
| ) |
xsltLocalVariablePop: : the transformation context : number of variables which should remain : the depth in the xsl:template's tree
Pops all variable values at the given from the stack.
Returns the stored variable value **NOTE:** This is an internal routine and should not be called by users!
| XSLTPUBFUN int XSLTCALL xsltLocalVariablePush | ( | xsltTransformContextPtr | ctxt, |
| xsltStackElemPtr | variable, | ||
| int | level | ||
| ) |
xsltLocalVariablePush: : the transformation context : variable to be pushed to the variable stack : new value for variable's level
Places the variable onto the local variable stack
Returns: 0 for success, -1 for any error **NOTE:** This is an internal routine and should not be called by users!
| XSLTPUBFUN xsltTransformContextPtr XSLTCALL xsltNewTransformContext | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc | ||
| ) |
Export context to users.
xsltNewTransformContext: : a parsed XSLT stylesheet : the input document
Create a new XSLT TransformContext
Returns the newly allocated xsltTransformContextPtr or NULL in case of error
| XSLTPUBFUN void XSLTCALL xsltNumber | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltNumber: : a XSLT process context : the node in the source tree. : the xslt number node : precomputed information
Process the xslt number node on the source node
| XSLTPUBFUN void XSLTCALL xsltProcessingInstruction | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltProcessingInstruction: : a XSLT process context : the node in the source tree. : the xslt processing-instruction node : precomputed information
Process the xslt processing-instruction node on the source node
| XSLTPUBFUN void XSLTCALL xsltProcessOneNode | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | contextNode, | ||
| xsltStackElemPtr | withParams | ||
| ) |
xsltProcessOneNode: : a XSLT process context : the "current node" in the source tree : extra parameters (e.g. xsl:with-param) passed to the template if any
Process the source node.
| XSLTPUBFUN xmlDocPtr XSLTCALL xsltProfileStylesheet | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc, | ||
| const char ** | params, | ||
| FILE * | output | ||
| ) |
xsltProfileStylesheet: : a parsed XSLT stylesheet : a parsed XML document : a NULL terminated arry of parameters names/values tuples : a FILE * for the profiling output
Apply the stylesheet to the document and dump the profiling to the given output.
Returns the result document or NULL in case of error
| XSLTPUBFUN void XSLTCALL xsltRegisterAllElement | ( | xsltTransformContextPtr | ctxt | ) |
xsltRegisterAllElement: : the XPath context
Registers all default XSLT elements in this context
| XSLTPUBFUN int XSLTCALL xsltRunStylesheet | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc, | ||
| const char ** | params, | ||
| const char * | output, | ||
| xmlSAXHandlerPtr | SAX, | ||
| xmlOutputBufferPtr | IObuf | ||
| ) |
xsltRunStylesheet: : a parsed XSLT stylesheet : a parsed XML document : a NULL terminated array of parameters names/values tuples : the URL/filename ot the generated resource if available : a SAX handler for progressive callback output (not implemented yet) : an output buffer for progressive output (not implemented yet)
Apply the stylesheet to the document and generate the output according to and . It's an error to specify both and .
NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8
Returns the number of bytes written to the main resource or -1 in case of error.
| XSLTPUBFUN int XSLTCALL xsltRunStylesheetUser | ( | xsltStylesheetPtr | style, |
| xmlDocPtr | doc, | ||
| const char ** | params, | ||
| const char * | output, | ||
| xmlSAXHandlerPtr | SAX, | ||
| xmlOutputBufferPtr | IObuf, | ||
| FILE * | profile, | ||
| xsltTransformContextPtr | userCtxt | ||
| ) |
xsltRunStylesheetUser: : a parsed XSLT stylesheet : a parsed XML document : a NULL terminated array of parameters names/values tuples : the URL/filename ot the generated resource if available : a SAX handler for progressive callback output (not implemented yet) : an output buffer for progressive output (not implemented yet) : profile FILE * output or NULL : user provided transform context
Apply the stylesheet to the document and generate the output according to and . It's an error to specify both and .
NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8
Returns the number of by written to the main resource or -1 in case of error.
| XSLTPUBFUN void XSLTCALL xsltSetXIncludeDefault | ( | int | xinclude | ) |
XInclude default processing.
xsltSetXIncludeDefault: : whether to do XInclude processing
Set whether XInclude should be processed on document being loaded by default
| XSLTPUBFUN void XSLTCALL xsltSort | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr node | ATTRIBUTE_UNUSED, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | comp | ||
| ) |
xsltSort: : a XSLT process context : the node in the source tree. : the xslt sort node : precomputed information
function attached to xsl:sort nodes, but this should not be called directly
| XSLTPUBFUN void XSLTCALL xsltText | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr node | ATTRIBUTE_UNUSED, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr comp | ATTRIBUTE_UNUSED | ||
| ) |
xsltText: : a XSLT process context : the node in the source tree. : the xslt text node : precomputed information
Process the xslt text node on the source node
| XSLTPUBFUN void XSLTCALL xsltValueOf | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNodePtr | inst, | ||
| xsltStylePreCompPtr | castedComp | ||
| ) |
xsltValueOf: : a XSLT process context : the node in the source tree. : the xslt value-of node : precomputed information
Process the xslt value-of node on the source node
1.7.4