Query: xslt_create
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XSLT_CREATE(3) 1 XSLT_CREATE(3) xslt_create - Create a new XSLT processorSYNOPSISresource xslt_create (void )DESCRIPTIONCreate and return a new XSLT processor resource for manipulation by the other XSLT functions.RETURN VALUESReturns an XSLT processor link identifier on success, or FALSE on error.EXAMPLESExample #1 xslt_create(3) example <?php function xml2html($xmldata, $xsl) { /* $xmldata -> your XML */ /* $xsl -> XSLT file */ $path = 'include'; $arguments = array('/_xml' => $xmldata); $xsltproc = xslt_create(); xslt_set_encoding($xsltproc, 'ISO-8859-1'); $html = xslt_process($xsltproc, 'arg:/_xml', "$path/$xsl", NULL, $arguments); if (empty($html)) { die('XSLT processing error: '. xslt_error($xsltproc)); } xslt_free($xsltproc); return $html; } ?>SEE ALSOxslt_free(3). PHP Documentation Group XSLT_CREATE(3)
Related Man Pages |
---|
libxslt(3) - sunos |
xslt_set_error_handler(3) - php |
xslt_set_log(3) - php |
xslt_set_sax_handlers(3) - php |
libxslt(3) - x11r4 |