The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

PHP at the Core: A Hacker's Guide to the Zend Engine> <xslt_set_scheme_handlers
[edit] Last updated: Sat, 12 May 2012

view this page in


(PHP 4 >= 4.3.0)

xslt_setoptSet options on a given XSLT processor


mixed xslt_setopt ( resource $processor , int $newmask )

xslt_setopt() sets the options specified by newmask on the given processor.



The XSLT processor link identifier, created with xslt_create().


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.

Return Values

Returns the number of previous mask is possible, TRUE otherwise, FALSE in case of an error.


Example #1 xslt_setopt() Example



// Tell Sablotron to process public entities

// Let's also ask him to suppress whitespace stripping
xslt_setopt($xhxslt_getopt($xh) | XSLT_SABOPT_DISABLE_STRIPPING);


See Also

add a note add a note User Contributed Notes xslt_setopt
There are no user contributed notes for this page.

show source | credits | sitemap | contact | advertising | mirror sites