The cdf.xsl File


Previous Topic Previous Next Topic Next
Xoc Software

Other Xoc managed sites:
http://grr.xoc.net
http://www.986faq.com
http://www.mayainfo.org
https://mayacalendar.xoc.net
http://www.yachtslog.com
<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Greg Reddick -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" version="1.0" encoding="iso-8859-1" omit-xml-declaration="no" indent="yes" media-type="application/x-cdf"/>
   <xsl:template match="/">
      <channel href="http://www.xoc.net/links" base="http://www.xoc.net/link">
      <title>Xoc Links</title>
         <logo href="http://www.xoc.net/links/xocicon.gif" style="icon"/>
         <xsl:apply-templates/>
      </channel>
   </xsl:template>
   
   <xsl:template match="links">
      <xsl:apply-templates>
         <xsl:sort select="attribute::title"/>
      </xsl:apply-templates>
   </xsl:template>

   <xsl:template match="group">
      <channel>
         <title><xsl:value-of select="attribute::title"/></title>
         <xsl:apply-templates>
            <xsl:sort select="attribute::title"/>
         </xsl:apply-templates>
      </channel>      
   </xsl:template>

   <xsl:template match="link">
      <item href="{attribute::href}">
         <title><xsl:value-of select="attribute::title"/></title>
      </item>
   </xsl:template>
</xsl:stylesheet>


Top