Date: Fri, 9 Jun 2006 11:48:39 +0300 (EEST) From: Mario Pavlov <freebsd@abv.bg> To: freebsd-questions@freebsd.org Subject: RDF transformation for FreeBSD's news ? Message-ID: <742140988.391211149842919278.JavaMail.nobody@mail03.abv.bg>
next in thread | raw e-mail | index | archive | help
Hello :) I wish to add the FreeBSD news in my site but I can't transform the RDF document: http://www.freebsd.org/news/news.rdf I have a little knowledge in XML XSL but it seems that isn't enough :) here is my XSL script: ======================================================================= <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">; <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/> <xsl:template match="/"> <html> <body> <table border="1"> <xsl:for-each select="RDF/item"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="link"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> /====================================================================== why doesn't this work ? it outputs this: ======================================================================= <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">; <html><body><table border="1"></table></body></html> /====================================================================== can anyone help me please ? thank you :) ----------------------------------------------------------------- http://www.sportni.bg/worldcup/ - Ãåðìàíèÿ 2006 - Ñâåòîâíîòî ïúðâåíñòâî ïî ôóòáîë íàáëèæàâà!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?742140988.391211149842919278.JavaMail.nobody>