false ] ); } function defaultView() { Lib::loadXslFunction('testFetchWfs'); Lib::loadXslFunction('testHtmlContent'); $xml = " TEST_PERMS.1 TEST_PERMS.99999 TestPermsAnt.1 "; $xsl = ''; $xsl .= '

Items

featureId item
				        
				      

Test function to get xml content from php function

'; $xmldoc = new DOMDocument; $xmldoc->loadXML($xml); $xsldoc = new DOMDocument; $xsldoc->loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xsldoc); $transformed = $proc->transformToXML($xmldoc); DBG::nicePrint(htmlspecialchars($xml), 'xml'); DBG::nicePrint(htmlspecialchars($xsl), 'xsl'); DBG::nicePrint(htmlspecialchars($transformed), 'xml transformed'); echo "\n".'
'; echo $transformed; echo '
'."\n"; } }