xslt_setopt
(PHP 4 >= 4.3.0, PECL)
xslt_setopt --
Set options on a given xsl processor
Description
mixed
xslt_setopt ( resource processor, int newmask )
xslt_setopt() sets the options specified by
newmask on the given processor.
Returns the number of previous mask is possible, TRUE otherwise,
FALSE in case of an error.
newmask is a bitmask constructed with the following
constants:
XSLT_SABOPT_PARSE_PUBLIC_ENTITIES - Tell the processor
to parse public entities. By default this has been turned off.
XSLT_SABOPT_DISABLE_ADDING_META - Do not add the meta
tag "Content-Type" for HTML output. The default is set during the compilation
of the processor.
XSLT_SABOPT_DISABLE_STRIPPING - Suppress the whitespace
stripping (on data files only).
XSLT_SABOPT_IGNORE_DOC_NOT_FOUND - Consider unresolved
documents (the document() function) non-lethal.
Examples
Example 1. xslt_setopt() Example
<?php
$xh = xslt_create();
// Tell Sablotron to process public entities xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES);
// Let's also ask him to suppress whitespace stripping xslt_setopt($xh, xslt_getopt($xh) | XSLT_SABOPT_DISABLE_STRIPPING);
?>
|
|
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/.
Please see full copyright text at http://www.php.net/manual/en/copyright.php
Original version of the above documentation is available at http://www.php.net/manual/en/