Mbaroudi / puelia-php

Automatically exported from code.google.com/p/puelia-php
0 stars 0 forks source link

XSLT formatter can't access source XML #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With the attached configuration file and XSLT (placed in the same directory), 
when I access:

  http://localhost/education/api/school.html

I get the error message:

  Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: Invalid or inclomplete context in /Library/WebServer/Documents/puelia/views/xslt.php  on line 23

When I expect to see the <result> element coming through in the output of the 
transformation. It looks as though the XML document isn't being passed in 
properly.

Original issue reported on code.google.com by jeni.ten...@gmail.com on 3 Jul 2010 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Education API HTML</title>
</head>
<body></body>
</html>

No warning errors or anything.  But no output from your data either.

Original comment by K.J.W.Al...@gmail.com on 13 Aug 2010 at 9:18

GoogleCodeExporter commented 9 years ago
In xslt.php, rather than:

$dom = new DomDocument($simpleXml);

use:

$dom = new DomDocument();
$dom->loadXML($simpleXml);

and it will work better.

Original comment by jeni.ten...@gmail.com on 1 Oct 2010 at 9:41

GoogleCodeExporter commented 9 years ago
Fixed in revision 124

Original comment by jeni.ten...@gmail.com on 2 Oct 2010 at 10:24