topical media & game development

talk show tell print

basic-xml-13-rss2xhtml.xsl / xsl

  <xsl:stylesheet version="1.0"  
  <xsl:output method="html" indent="yes"/>  
  <xsl:template match="rss">
    <xsl:text disable-output-escaping="yes">
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""&gt;
      <xsl:apply-templates />
  <xsl:template match="channel">
        <xsl:value-of select="title" />
      <xsl:apply-templates />
  <xsl:template match="item">
    <h1><xsl:value-of select="title" /></h1>
    <p><xsl:value-of select="description" /></p>
  <xsl:template match="text()" />

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.