Published Online: February 20, 2009

Grant Detail

', $xml); $xmlDoc = new DOMDocument; $xmlDoc->loadXML($xml); $xsl = file_get_contents('../../../lib/data/grant_info.xsl'); $xslDoc = new DOMDocument; $xslDoc->loadXML($xsl); #print libxslt_transform($xml, $xsl); $proc = new XSLTProcessor; $proc->importStyleSheet($xslDoc); // attach the xsl rules $data = trim($proc->transformToDoc($xmlDoc)->saveXML()); $token = "style='display:none;'"; $data = str_replace($token, "", $data); $pattern = '/<.*?<\/program>/'; $data = preg_replace($pattern, 'N/A', $data); echo $data ; } ?>

Most Popular Stories

Viewed

Emailed

Recommended

Commented

MORE EDUCATION JOBS >>