2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2005-06-24 09:11:47 +00:00
|
|
|
<!-- $Revision: 1.8 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/xslt.xml, last change in rev 1.3 -->
|
|
|
|
<refentry id="function.xslt-error">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>xslt_error</refname>
|
2003-05-25 04:04:08 +00:00
|
|
|
<refpurpose>Returns an error string</refpurpose>
|
2002-04-15 00:12:54 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2005-06-24 09:11:47 +00:00
|
|
|
<type>string</type><methodname>xslt_error</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>xh</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2003-12-19 15:50:07 +00:00
|
|
|
Returns a string describing the last error that occurred on the
|
2002-04-15 00:12:54 +00:00
|
|
|
passed XSLT processor.
|
|
|
|
</para>
|
2004-08-03 14:33:40 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
|
|
&reftitle.examples;
|
|
|
|
<example>
|
|
|
|
<title>
|
2002-04-15 00:12:54 +00:00
|
|
|
Handling errors using the <function>xslt_error</function> and
|
|
|
|
<function>xslt_errno</function> functions.
|
2004-08-03 14:33:40 +00:00
|
|
|
</title>
|
|
|
|
<programlisting role="php">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?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)));
|
|
|
|
}
|
|
|
|
|
2003-12-08 13:52:47 +00:00
|
|
|
echo $result;
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
xslt_free($xh);
|
|
|
|
?>
|
|
|
|
]]>
|
2004-08-03 14:33:40 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
|
|
&reftitle.seealso;
|
2004-05-19 20:47:51 +00:00
|
|
|
<para>
|
2004-08-03 14:33:40 +00:00
|
|
|
<function>xslt_errno</function>.
|
2004-05-19 20:47:51 +00:00
|
|
|
</para>
|
2002-04-15 00:12:54 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|