Skip to main content
Inspiring
June 17, 2007
Question

XML - XSL

  • June 17, 2007
  • 2 replies
  • 467 views
I have this error when I try to access my index.php page that uses xsl to translate an xml file. It is part of a tutorial so I can't tell you if the xml is accurate or not.

Any idea what this refers to:
MM_XSLTransform error.
feed.xml is not a valid XML document.
Non-static method DOMDocument::loadXML() should not be called statically, assuming $this from incompatible context in file feed.xml.

I tried an RSS source from wired.com and also have the same error
MM_XSLTransform error.
http://www.wired.com/news/feeds/rss2/0,2610,,00.xml is not a valid XML document.
Non-static method DOMDocument::loadXML() should not be called statically, assuming $this from incompatible context in file http://www.wired.com/news/feeds/rss2/0,2610,,00.xml.


the actual code that is the feeder in .php is:
<?php
$mm_xsl = new MM_XSLTransform();
$mm_xsl->setXML(" http://www.wired.com/news/feeds/rss2/0,2610,,00.xml");
$mm_xsl->setXSL("moreNews.xsl");
echo $mm_xsl->Transform();
?>

<?php
$mm_xsl = new MM_XSLTransform();
$mm_xsl->setXML("feed.xml");
$mm_xsl->setXSL("news.xsl");
echo $mm_xsl->Transform();
?>

would appreciate any insight, never worked on this before

Kevin
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
June 23, 2007
Thank You
Kevin
Inspiring
June 22, 2007
kevin raleigh wrote:
> Any idea what this refers to:
> MM_XSLTransform error.
> feed.xml is not a valid XML document.
> Non-static method DOMDocument::loadXML() should not be called statically,
> assuming $this from incompatible context in file feed.xml.

There's a bug in the XSL Transformation Server Behavior. Get the PHP
updater from here:

http://www.adobe.com/go/b6c2ae2a

Click the link in the first paragraph for the Dreamweaver extension fix.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/