Posted by amiri.arash on 08/09/06 15:19
Hi!
I want to feed the news section of my band - homepage with the mySpace
blog of our band (in order to keep redundancy low).
The band homepage is written in PHP.
I wrote an xsl-stylesheet that transforms the blog into my wanted
design.
Here is the code:
<?
$doc =
domxml_open_file("http://blog.myspace.com/blog/rss.cfm?friendID=70463944");
$xsl = domxml_xslt_stylesheet_file("blogMySpace.xsl");
$params = array();
$result = $xsl->process($doc,$params,false);
$wholepage = $result->dump_mem();
print $wholepage;
?>
I cant get rid of " " being displayed from the <description> tag.
Anybody knows how to get rid of them?
str_replace(' ',' ') doesnt work.
a translate function in the xsl does not work as well....
anybody got an idea?
please help...
[Back to original message]
|