php man page for xslt_error

Query: xslt_error

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

XSLT_ERROR(3)								 1							     XSLT_ERROR(3)

xslt_error - Returns an error string

SYNOPSIS
string xslt_error (resource $xh)
DESCRIPTION
Returns a string describing the last error that occurred on the passed XSLT processor.
PARAMETERS
o $ xh -The XSLT processor link identifier, created with xslt_create(3).
RETURN VALUES
Returns the error message, as a string.
EXAMPLES
Example #1 Handling errors using the xslt_error(3) and xslt_errno(3) functions. <?php $xh = xslt_create(); $result = xslt_process($xh, 'dog.xml', 'pets.xsl'); if (!$result) { die(sprintf("Cannot process XSLT document [%d]: %s", xslt_errno($xh), xslt_error($xh))); } echo $result; xslt_free($xh); ?>
SEE ALSO
xslt_errno(3). PHP Documentation Group XSLT_ERROR(3)
Related Man Pages
ingres_errsqlstate(3) - php
msql_query(3) - php
xslt_process(3) - php
xslt_set_log(3) - php
xslt_set_sax_handlers(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch