The links.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" standalone="yes"?>
<!-- Written by Greg Reddick -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" standalone="no"/>

   <xsl:template match="links">
      <table cellspacing="0" cellpadding="0" class="smaller">
         <xsl:apply-templates select="group">
            <xsl:sort select="attribute::title"/>
         </xsl:apply-templates>
      </table>
   </xsl:template>
   
   <xsl:template match="group">
      <tr>
         <th colspan="3" align="left" valign="bottom" height="30px">
            <p class="heading"><xsl:value-of select="attribute::title"/></p>
         </th>
      </tr>
      <xsl:apply-templates select="link">            
         <xsl:sort select="attribute::title"/>
      </xsl:apply-templates>
   </xsl:template>


   <xsl:template match="link">
      <tr>
         <td><xsl:value-of select="attribute::title"/></td>
         <td width="10px">&#160;</td>
         <td>
            <a href="{attribute::href}"><xsl:value-of select="attribute::href"/></a>
         </td>
      </tr>
   </xsl:template>
</xsl:stylesheet>


Top