Data Structures | Functions

include/inc.xsl5compliance.php File Reference

Go to the source code of this file.

Data Structures

class  php4XSLTProcessor

Functions

 xslt_create ()
 xslt_process (&$proc, $xml_var, $xslt_var, $dummy, $args, $params, $a_no_warnings=false)
 xslt_free (&$proc)
 xslt_error (&$proc)

Function Documentation

xslt_create (  ) 
xslt_error ( &$  proc  ) 
xslt_free ( &$  proc  ) 
xslt_process ( &$  proc,
xml_var,
xslt_var,
dummy,
args,
params,
a_no_warnings = false 
)

Definition at line 40 of file inc.xsl5compliance.php.

References $key, and $result.

Referenced by ilObjDlBookGUI::__applyCitationText(), ilPCTableGUI::edit(), ilObjMediaObjectGUI::editMapArea(), ilObjMediaObjectGUI::editMapAreasObject(), ilPageObject::getFO(), ilLMPresentationGUI::ilMedia(), ilGlossaryPresentationGUI::media(), ilObjDlBookGUI::showAbstract(), ilObjDlBookGUI::showCitation(), ilObjMediaPoolGUI::showMedia(), ilPageObjectGUI::showMediaFullscreen(), ilPageObjectGUI::showPage(), and ilXML2FO::transform().

{
        $xslt = $proc->myProc;
//echo htmlentities($args[substr($xslt_var, 4)]);
        $xslt->importStyleSheet(DomDocument::loadXML($args[substr($xslt_var, 4)]));
        if (is_array($params))
        {
                foreach ($params as $key => $value)
                {
                        $xslt->setParameter("", $key, $value);
                }
        }

        // supress warnings all the time. (some lib xslt bring warnings due to & in links)
        //if ($a_no_warnings)
        //{
                $result = @$xslt->transformToXML(DomDocument::loadXML($args[substr($xml_var, 4)]));
        //}
        //else
        //{
        //      $result = $xslt->transformToXML(DomDocument::loadXML($args[substr($xml_var, 4)]));
        //}

//echo "<br><br><b>xslt_process</b>".htmlentities($result);
        return $result;
}

Here is the caller graph for this function: