Changes between Version 11 and Version 12 of XsltMacro


Ignore:
Timestamp:
Sep 30, 2006, 9:10:50 AM (18 years ago)
Author:
roadrunner
Comment:

Comment added

Legend:

Unmodified
Added
Removed
Modified
  • XsltMacro

    v11 v12  
    127127I would like to transform RSS output from WordPress and use Trac as my homepage and include a side blog section that links to the real blog.
    128128
     129==== Comment by roadrunner on Sat Sep 30 19:10:49 2006 ====
     130You could probably (mis)use the wiki-toc css class for this (or
     131better: provide some css of your own) and use a stylesheet along
     132the lines of (untested):
     133{{{
     134<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     135  <xsl:output method="html"/>
     136
     137  <xsl:template match="channel">
     138    <div class="wiki-toc">
     139      <h4><a href="{link}"><xsl:value-of select="title"/></a></h4>
     140      <ol>
     141        <xsl:apply-templates select="item"/>
     142      </ol>
     143    </div>
     144  </xsl:template>
     145
     146  <xsl:template match="item">
     147    <li>
     148      <a href="{link}" title="{description}"><xsl:value-of select="title"/></a>
     149    </li>
     150  </xsl:template>
     151</xsl:stylesheet>
     152}}}
     153
     154
    129155[[AddComment]]