summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.h
diff options
context:
space:
mode:
authorJaroslaw Kolakowski <jarkol@php.net>2002-01-08 00:31:26 +0000
committerJaroslaw Kolakowski <jarkol@php.net>2002-01-08 00:31:26 +0000
commit415d5cbb75d91331d05ff77f7e3f3c2ae981dff1 (patch)
tree0795e991133022c64d8922b8608310639d0e75e6 /ext/domxml/php_domxml.h
parentf8a6ab9ae75d2ccea744832f13e431c2f4c56ebe (diff)
downloadphp-git-415d5cbb75d91331d05ff77f7e3f3c2ae981dff1.tar.gz
- Added functions: htmldoc(), htmldocfile(), domxml_htmldumpmem().
- Added error handling for the libxml library. - Added preliminary DOM XSLT support: -- uses the libxslt library, -- operates on DOM objects, not strings, -- functions: domxml_xslt_process(), domxml_xslt_version().
Diffstat (limited to 'ext/domxml/php_domxml.h')
-rw-r--r--ext/domxml/php_domxml.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h
index 9fdf1d174e..2a165ea2bd 100644
--- a/ext/domxml/php_domxml.h
+++ b/ext/domxml/php_domxml.h
@@ -23,12 +23,22 @@
#if HAVE_DOMXML
#include <libxml/parser.h>
+#include <libxml/tree.h>
+#if defined(LIBXML_HTML_ENABLED)
+#include <libxml/HTMLparser.h>
+#include <libxml/HTMLtree.h>
+#endif
#if defined(LIBXML_XPATH_ENABLED)
#include <libxml/xpath.h>
#endif
#if defined(LIBXML_XPTR_ENABLED)
#include <libxml/xpointer.h>
#endif
+#if HAVE_DOMXSLT
+#include <libxslt/xsltInternals.h>
+#include <libxslt/xsltutils.h>
+#include <libxslt/transform.h>
+#endif
extern zend_module_entry domxml_module_entry;
#define domxml_module_ptr &domxml_module_entry
@@ -40,6 +50,10 @@ PHP_MINFO_FUNCTION(domxml);
PHP_FUNCTION(domxml_version);
PHP_FUNCTION(xmldoc);
PHP_FUNCTION(xmldocfile);
+#if defined(LIBXML_HTML_ENABLED)
+PHP_FUNCTION(htmldoc);
+PHP_FUNCTION(htmldocfile);
+#endif
PHP_FUNCTION(xmltree);
PHP_FUNCTION(domxml_new_xmldoc);
@@ -58,6 +72,9 @@ PHP_FUNCTION(domxml_doc_imported_node);
PHP_FUNCTION(domxml_add_root);
PHP_FUNCTION(domxml_intdtd);
PHP_FUNCTION(domxml_dumpmem);
+#if defined(LIBXML_HTML_ENABLED)
+PHP_FUNCTION(domxml_htmldumpmem);
+#endif
/* Class DocumentType methods */
PHP_FUNCTION(domxml_doctype_name);
@@ -142,6 +159,12 @@ PHP_FUNCTION(xptr_eval);
#endif
PHP_FUNCTION(domxml_test);
+/* DOMXSLT functions */
+#if HAVE_DOMXSLT
+PHP_FUNCTION(domxml_xslt_version);
+PHP_FUNCTION(domxml_xslt_process);
+#endif
+
#else
#define domxml_module_ptr NULL
#endif /* HAVE_DOMXML */