<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:atom="http://www.w3.org/2005/Atom">

<xsl:output method="xml"/>

<xsl:template match="/">
<rdf:RDF>
<xsl:for-each select="atom:feed/atom:entry">
<rdf:Description>
  <xsl:attribute name="rdf:about">
    <xsl:value-of select="atom:link/@href"/>
  </xsl:attribute>
  <xsl:apply-templates select="atom:content"/>
</rdf:Description>
</xsl:for-each>
</rdf:RDF>
</xsl:template>

<xsl:template match="atom:content">
  <rdf:type>
    <xsl:attribute name="rdf:resource">
      <xsl:value-of select="concat(namespace-uri(child::*),'#',local-name(child::*))"/>
    </xsl:attribute>
  </rdf:type>
  <xsl:for-each select="child::*/*">
    <xsl:element name="{local-name()}" namespace="{concat(namespace-uri(),'#')}">
      <xsl:value-of select="string()"/>
    </xsl:element>
  </xsl:for-each>
</xsl:template>

</xsl:stylesheet>