.
php-.
RSS , xsl, : http://atom.geekhood.net/, : http://atom.geekhood.net/atom2rss.xsl
, VS :
<link xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" rel="replies" type="application/atom+xml" href="http://stackoverflow.com/feeds/question/204696/answers" thr:count="5" />
, , :
<x:template match='*'>
<x:comment>Unknown element <x:value-of select="local-name(.)"/></x:comment>
</x:template>
php php- :
<?php
$url=$_GET['url'];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch);
curl_close($ch);
$chan = new DOMDocument();
$chan->loadXML($content);
$sheet = new DOMDocument();
$sheet->load('atom2rss.xsl');
$processor = new XSLTProcessor();
$processor->registerPHPFunctions();
$processor->importStylesheet($sheet);
$result = $processor->transformToXML($chan);
echo $result;
?>
atom2rss.xsl , php.
VS URL- :
http://yourserver.com/file.php?http://stackoverflow/feeds
yourserver.com - , file.php - php ...
RSS- Stackoverflow.com Visual Studio, , , .
, PHP5 php_curl.dll php_xsl.dll .
Enjoy