convert RDF to RSS with XSL

Funny headline !?

As i have written in a longer article (german) on www.devtrain.de, i searched for a way to display RDF data (which includes namespaces rdf:RDF) with xmldatasource. XMLDatasource can not handle namespaces in xpath.

Following XSL converts it to RSS which solves the problem

<?xml version="1.0" encoding="utf-8"?>
<
xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<
xsl:template match="/">
<rss>
<
xsl:for-each select="/*/*[name()='item']">
<
item>
<
title> <xsl:value-of select="child::*[name()='title']"/></title>
</
item>
</
xsl:for-each>
</
rss></xsl:template>
</
xsl:stylesheet>

Published Thursday, May 18, 2006 12:48 PM by preishuber
Filed under: ,

Comments

# re: convert RDF to RSS with XSL

Thursday, May 18, 2006 7:09 AM by dandamm
hi

Leave a Comment

(required) 
(required) 
(optional)
(required)