topical media & game development

talk show tell print

basic-xml-13-xhtml2rss.xsl / xsl

  <xsl:stylesheet version="1.0"  
  <xsl:output method="xml" indent="yes"/>  
  <xsl:template match="/xhtml:html">
    <rss version="0.91">
      <description>This will not change</description>
      <xsl:apply-templates />
  <xsl:template match="xhtml:title">
      <xsl:value-of select="." />
  <xsl:template match="xhtml:body/xhtml:h1">
        <xsl:value-of select="." />
        <xsl:value-of select="following-sibling::xhtml: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.