Moved CSS for API XSLT to api.xsl, and fixed element names

This commit is contained in:
Andy Smith
2015-03-18 08:28:30 +00:00
parent c20dfafef1
commit fca42eec3e
3 changed files with 57 additions and 56 deletions

View File

@@ -5,7 +5,7 @@ $xmlDoc = new DOMDocument("1.0");
if($data['format'] == "xml") {
// Add reference to the XSLT
$xsl = $xmlDoc->createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"/css/api.xsl\"");
$xsl = $xmlDoc->createProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"".base_url()."css/api.xsl\"");
$xmlDoc->appendChild($xsl);
}