XSLT_SETOPT(3) 1 XSLT_SETOPT(3)xslt_setopt - Set options on a given XSLT processorSYNOPSIS
mixed xslt_setopt (resource $processor, int $newmask)
DESCRIPTION xslt_setopt(3) sets the options specified by $newmask on the given $processor.
PARAMETERS
o $
processor -The XSLT processor link identifier, created with xslt_create(3).
o $newmask
-$newmask is a bitmask constructed with the following constants:
o XSLT_SABOPT_PARSE_PUBLIC_ENTITIES - Tell the processor to parse public entities. By default this has been turned off.
o 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.
o XSLT_SABOPT_DISABLE_STRIPPING - Suppress the whitespace stripping (on data files only).
o 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.
EXAMPLES
Example #1
xslt_setopt(3) Example
<?php
$xh = xslt_create();
// Tell Sablotron to process public entities
xslt_setopt($xh, XSLT_SABOPT_PARSE_PUBLIC_ENTITIES);
// Let's also ask it to suppress whitespace stripping
xslt_setopt($xh, xslt_getopt($xh) | XSLT_SABOPT_DISABLE_STRIPPING);
?>
SEE ALSO xslt_getopt(3).
PHP Documentation Group XSLT_SETOPT(3)
Check Out this Related Man Page
XSLT_SET_OBJECT(3) 1 XSLT_SET_OBJECT(3)xslt_set_object - Sets the object in which to resolve callback functionsSYNOPSIS
bool xslt_set_object (resource $processor, object &$obj)
DESCRIPTION
This function allows to use the $processor inside an $object and to resolve all callback functions in it.
The callback functions can be declared with xslt_set_sax_handlers(3), xslt_set_scheme_handlers(3) or xslt_set_error_handler(3) and are
assumed to be methods of $object.
PARAMETERS
o $
processor -The XSLT processor link identifier, created with xslt_create(3).
o $obj
- An object.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
Example #1
Using your own error handler as a method
<?php
class my_xslt_processor {
var $_xh; // our XSLT processor
function my_xslt_processor()
{
$this->_xh = xslt_create();
// Make $this object the callback resolver
xslt_set_object($this->_xh, $this);
// Let's handle the errors
xslt_set_error_handler($this->_xh, "my_xslt_error_handler");
}
function my_xslt_error_handler($handler, $errno, $level, $info)
{
// for now, let's just see the arguments
var_dump(func_get_args());
}
}
?>
PHP Documentation Group XSLT_SET_OBJECT(3)
can anyone help me with stripping an absolute filepath? I did a search on this topic but didnt find anything but maybe I didn't look hard. Anyway, would really appreciate it if anyone could help me. I am a new unix user so this might be a simple issue but I am stuck, don't really understand the use... (4 Replies)
Hello all,
I've been searching for an answer but coming up with nothing so I figured I'd give it a shot and ask. After installing a fresh version of Leopard (with the latest updates) on a computer and then copying the user data back onto said computer, the location based printing doesn't work... (0 Replies)
In our Cron table, we have the /etc/subsync client ipadr1 ipadr2
Each ipadr is an actual IP adress.
I think it has something to do with synchronizing the clock between servers, but what is the ipadr2 for ? (0 Replies)
Can any one please help me. We are getting belwo error.
EXSORT_NOT_ENOUGH_MEMORY
ShrtText Internal error: Too litle memory for the external sort.
Error analysis ... (0 Replies)
Hi All,
I am successfully able to compile the file through gcc.
At the time of compilling the file throught xlc, I am facing the following issues:
1) 1540-0836 (S) The #include file <multimap.h> is not found.
2) 1540-0836 (S) The #include file <pair.h> is not found.
3) ld: 0706-012 The... (0 Replies)
Hi,
I have AIX 5.3 and my code is written in proc . i am getting following error during compilation
Please help?////.....
[H[2J:-d:
Compiling with RMS
cc -w -q32 -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -c -q32... (0 Replies)