Skip to main content

Module errors

Module errors 

Source
Expand description

XSLT error handling (§33, §85 Phase 8).

Defines error domains, error levels, error handler types, and the public API for reporting and retrieving XSLT errors.

§Phase 8 status

Constants and function types are fully defined. Functions are stubbed and will be implemented as part of Phase 8.

Constants§

XSLT_ERR_CYCLIC_REFERENCE
Cyclic reference detected.
XSLT_ERR_INTERNAL
Internal XSLT error.
XSLT_ERR_INVALID_ATTRIBUTE
Invalid attribute value.
XSLT_ERR_INVALID_ELEMENT
Invalid element.
XSLT_ERR_INVALID_MATCH
Invalid match pattern.
XSLT_ERR_INVALID_NAMESPACE
Invalid namespace.
XSLT_ERR_INVALID_SELECT
Invalid select expression.
XSLT_ERR_INVALID_TEST
Invalid test expression.
XSLT_ERR_INVALID_USE
Invalid use expression.
XSLT_ERR_LEVEL_ERROR
Error — processing may continue but results may be incomplete.
XSLT_ERR_LEVEL_FATAL
Fatal error — processing cannot continue.
XSLT_ERR_LEVEL_NONE
No error level (unset).
XSLT_ERR_LEVEL_WARNING
Warning — non-fatal issue.
XSLT_ERR_MISSING_ATTRIBUTE
Missing required attribute.
XSLT_ERR_MISSING_ELEMENT
Missing required element.
XSLT_ERR_MISSING_MATCH
Missing match attribute.
XSLT_ERR_MISSING_NAME
Missing name attribute.
XSLT_ERR_MISSING_NAMESPACE
Missing required namespace.
XSLT_ERR_MISSING_NS
Missing namespace.
XSLT_ERR_MISSING_SELECT
Missing select attribute.
XSLT_ERR_MISSING_TEST
Missing test attribute.
XSLT_ERR_MISSING_USE
Missing use attribute.
XSLT_ERR_NONE
No error.
XSLT_ERR_RECURSION
Recursion limit exceeded.
XSLT_ERR_UNKNOWN
Unknown error.

Functions§

xsltGenericDebug
Emit a generic debug message (upstream xsltGenericDebug).
xsltGetLastError
Get the last XSLT error message as a NUL-terminated heap string.
xsltSetGenericDebugFunc
Set the generic debug handler (upstream xsltSetGenericDebugFunc).
xsltSetTransformErrorFunc
Set the transform error handler for a context.
xsltTransformError
Report an XSLT error.

Type Aliases§

xsltTransformErrorFunc
Global XSLT error handler function type.