Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

XML - XSL

Participant ,
Jun 17, 2007 Jun 17, 2007
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
TOPICS
Server side applications
458
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2007 Jun 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 23, 2007 Jun 23, 2007
LATEST
Thank You
Kevin
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines