BeGe
Вождь Апачей, блин (c)
XSLT преобразование
есть такое преобразование
есть такой xml
Если XML в таком виде - все хорошо
если в чистом виде с http://www.php.net/news.rss - нифига не получается (((
PHP:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<xsl:for-each select="//description">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
есть такой xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<RDF>
<channel about="http://www.php.net/">
<title>PHP: Hypertext Preprocessor</title>
<link>[url]http://www.php.net/[/url]</link>
<description>The PHP scripting language web site</description>
<items>
<Seq>
<li resource="http://conf.phpquebec.com/" />
<li resource="http://www.pawscon.com/" />
<li resource="http://qa.php.net/" />
<li resource="http://conferences.oreillynet.com/os2004/" />
<li resource="http://www.phpconference.com/" />
<li resource="http://www.phparch.com/cruise" />
<li resource="http://www.pawscon.com" />
<li resource="http://vancouver.php.net/" />
<li resource="http://www.php.net/downloads.php" />
<li resource="http://shiflett.org/archive/19" />
<li resource="http://software-support.biz/en" />
<li resource="http://conf.phpquebec.org/main.php/en/dvd2003/main" />
<li resource="http://mysql.com/events/uc2004/speakers.html" />
<li resource="http://webdevmagazine.co.uk/conf/index_n.php" />
</Seq>
</items>
</channel>
<!-- RSS-Items -->
<item about="http://conf.phpquebec.com/">
<title>Conf&eacute;rence PHP Qu&eacute;bec 2004 - (Montr&eacute;al, March 25&amp;26rst, 2004)</title>
<link>[url]http://conf.phpquebec.com/[/url]</link>
<description>The PHP Qu&eacute;bec Association announces the Conference PHP Qu&eacute;bec 2004. The conference features 20 sessions over 2 days, in English and French. 3 tracks : PHP advanced technics, PHP professionnal and Open Source technologies. It will take place downtown Montr&eacute;al, Qu&eacute;bec, Canada. We are currently offering early bird prices. Students and Small Businesses are eligible for reduced prices. Buy your tickets early to get rebates and discount with the DVD! Learn more about those exciting days at conf.phpquebec.com.</description>
<date>2004-02-11</date>
</item>
<item about="http://www.pawscon.com/">
<title>PaWS Tickets Now On Sale!</title>
<link>[url]http://www.pawscon.com/[/url]</link>
<description>The PaWS Group is proud to announce that tickets are now available for the first PHP and Web Standards Conference. We are offering Weekend tickets (Saturday 21st and Sunday 22nd only) as well as Conference tickets (Friday 20th - Tuesday 24th) for the entire length of the event. Additionally, we also have Daily tickets available for each day of the conference. Tickets will also be available on the door for those that simply want to drop in. For ticket and accommodation Prices, look over our pricing guide for more information. Purchase your tickets today for this one of a kind conference!</description>
<date>2004-02-05</date>
</item>
<!-- / RSS-Items PHP/RSS -->
</RDF>
если в чистом виде с http://www.php.net/news.rss - нифига не получается (((