PHP Classes

File: tester.salamcast.xsl

Recommend this page to a friend!
  Classes of Karl Holz  >  SalamCast PHP Podcast Generator  >  tester.salamcast.xsl  >  Download  
File: tester.salamcast.xsl
Role: Auxiliary data
Content type: text/plain
Description: XSLT template tester to basic HTML
Class: SalamCast PHP Podcast Generator
Generate RSS feeds for podcasts
Author: By
Last change: Update of tester.salamcast.xsl
Date: 11 months ago
Size: 1,301 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl=""
  <xsl:output  method="html" />
  <xsl:template match="/">
    <title><xsl:value-of select="/rss/channel/title|/rss/channel/generator"/></title>
   <xsl:apply-templates select="/rss/channel" />
  <xsl:template match="/rss/channel">
     <h2><xsl:value-of select="/rss/channel/title|/rss/channel/generator"/></h2>
      <xsl:apply-templates select="atom:link" />
   <br /><hr />
   <xsl:apply-templates select="item" />
  <xsl:template match="atom:link|enclosure">
    <li><a href="{@href|@url}" rel="{@rel}"><xsl:value-of select="@title|../title"/></a></li>    
  <xsl:template match="item">
     <h2><a href="{link}"><xsl:value-of select="title"/></a></h2>
     <p><xsl:value-of select="description|itunes:summary"/></p>
     <hr />
       <xsl:apply-templates select="atom:link|enclosure" />
For more information send a message to info at phpclasses dot org.