16 if ($proc ===
false) $proc =
new XSLTProcessor();
17 $this->xsltProcessor = $proc;
25 if (is_string($xsl)) {
28 $xsl->load($xsl_file);
30 return $this->xsltProcessor->importStylesheet($xsl);
41 if (is_string(
$xml)) {
47 $out = $this->xsltProcessor->transformToXML($dom);
51 $out = str_replace(
'/>',
' />',
$out);
52 $out = str_replace(
' xmlns=""',
'',
$out);
54 if (class_exists(
'Tidy')) {
58 'output-xhtml' =>
true,
77 $this->xsltProcessor->setParameter(
'',
$name, $value);
86 call_user_func_array(
array($this->xsltProcessor,
$name), $arguments);
Decorator/extender XSLT processor specifically for HTML documents.
transformToHTML($xml)
Transforms an XML file into compatible XHTML based on the stylesheet.
__call($name, $arguments)
Forward any other calls to the XSLT processor.
$xsltProcessor
Instance of XSLTProcessor.
Create styles array
The data for the language used.
setParameters($options)
Bulk sets parameters for the XSL stylesheet.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options