xslt_create(3) php man page | unix.com

Man Page: xslt_create

Operating Environment: php

Section: 3

XSLT_CREATE(3)								 1							    XSLT_CREATE(3)

xslt_create - Create a new XSLT processor

SYNOPSIS
resource xslt_create (void )
DESCRIPTION
Create and return a new XSLT processor resource for manipulation by the other XSLT functions.
RETURN VALUES
Returns an XSLT processor link identifier on success, or FALSE on error.
EXAMPLES
Example #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 ALSO
xslt_free(3). PHP Documentation Group XSLT_CREATE(3)
Related Man Pages
xsltproc(1) - opensolaris
libxslt(3) - opensolaris
xslt-parser(1) - suse
libxslt(3) - opendarwin
xslt_set_scheme_handlers(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!