Expand description
XSLT transformation engine (§33, §85 Phase 8).
Executes compiled stylesheets against source documents:
xsltNewTransformContext/xsltFreeTransformContextxsltApplyStylesheetand variants- Template application and instruction execution
- Result tree construction
- Current node / context position / context size management
- Recursion depth limiting
§UPSTREAM-PARITY
Upstream libxslt (transform.c) drives the transformation from
xsltApplyStylesheet:
- Create a transform context (or reuse a user-supplied one).
- Initialize global variables and key tables.
- Apply the template matching the root node of the source document.
- Execute the template’s instructions, building the result tree.
- Return the result document.
The insert pointer in the context tracks the current insertion point
in the result tree; the node / nodeList fields track the current
source node and node list; contextSize / proximityPosition track
the XPath context.
Constants§
- XSLT_
MAX_ DEPTH - Maximum template recursion depth (matches upstream XSLT_MAX_DEPTH).
- XSLT_
MAX_ INSERT_ DEPTH - Maximum insert depth.
- XSLT_
STATE_ ERROR - XSLT_
STATE_ OK - State flags for the transform context.
- XSLT_
STATE_ STOPPED - The transformation was stopped (e.g. xsl:message terminate=“yes”).
Statics§
- xslt
MaxDepth - Maximum template recursion depth (upstream
xsltMaxDepth, transform.c). Default 30000 (upstream xslt.c). - xslt
MaxVars - Maximum number of variables/params (upstream
xsltMaxVars, transform.c).
Functions§
- execute_
content ⚠ - Execute the content of a template (a list of nodes).
- exslt_
element_ names - The set of EXSLT element names recognized by
element-available(). - exslt_
function_ names - The set of EXSLT function QNames (prefix:local) for
function-available(). - xslt
Apply ⚠Stylesheet - Apply a stylesheet to a document.
- xslt
Apply ⚠Stylesheet Stacked - Apply a stylesheet with a parameter stack.
- xslt
Apply ⚠Stylesheet User - Apply a stylesheet with user control.
- xslt
Free ⚠Transform Context - Free a transform context.
- xslt
Free ⚠Transform Result - Free the result of a transformation.
- xslt
GetX ⚠Include Default - Get the current XInclude default (upstream
xsltGetXIncludeDefault). - xslt
NewTransform ⚠Context - Create a new transform context.
- xslt
Process ⚠Instruction - Process a single instruction node.
- xslt
RunStylesheet ⚠ - Apply a stylesheet and write the result to an output channel.
- xslt
RunStylesheet ⚠User - Apply a stylesheet and write the result to an output channel.
- xslt
SetX ⚠Include Default - Set whether XInclude processing is done on documents loaded by the
transformation (upstream
xsltSetXIncludeDefault).