diff --git a/application/views/api/index.php b/application/views/api/index.php index 2042c3e0..df27a7c1 100644 --- a/application/views/api/index.php +++ b/application/views/api/index.php @@ -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); } diff --git a/css/api.css b/css/api.css deleted file mode 100644 index 542e0549..00000000 --- a/css/api.css +++ /dev/null @@ -1,52 +0,0 @@ -body { - background: #eee; - font-family: Verdana, sans-serif; - font-size: 8px; -} -#results table { - border: 0px solid #000; - border-collapse: collapse; -} -#results th { - padding: 4px; - border: 1px solid #000; - background-color: #6AA57B; - font-size: 11px; -} -#results td { - padding: 4px; - border: 1px solid #000; - font-size: 11px; -} -#results tr.row0 { - background-color: #A3BDF5; -} -#results tr.row1 { - background-color: #9ADF9A; -} -img { - border: 0px; -} -#footer { - font-size: 8px; -} -#debug { - border: 1px dotted #fff; - background-color: #c00; - color: #fff; - font-size: 8px; -} -#debug td { - padding: 4px; - color: #fff; - font-size: 10px; -} -.blank { - background-color: transparent; -} -.sub { - background-color: #cfc; -} -.subattr { - background-color: #cfc; -} diff --git a/css/api.xsl b/css/api.xsl index f81aa8b2..e26b0ded 100644 --- a/css/api.xsl +++ b/css/api.xsl @@ -5,17 +5,70 @@ <xsl:value-of select="//queryInfo/@calledMethod"/> - +

Output of ''

- + - +