rss-style.tx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  4. <xsl:template match="/">
  5. <: $header | mark_raw :>
  6. <a>
  7. <xsl:attribute name="href">
  8. <xsl:value-of select="rss/channel/link"/>
  9. </xsl:attribute>
  10. Back to Site &#x2192;
  11. </a>
  12. <h3>RSS for Posts at <xsl:value-of select="rss/channel/description"/>:</h3>
  13. <xsl:for-each select="rss/channel/item">
  14. <div>
  15. <div>
  16. <a>
  17. <xsl:attribute name="href">
  18. <xsl:value-of select="link"/>
  19. </xsl:attribute>
  20. <xsl:value-of select="title"/>
  21. </a>
  22. </div>
  23. <div>
  24. Published on
  25. <xsl:value-of select="substring(pubDate, 0, 11)" />
  26. By
  27. <xsl:value-of select="author" />
  28. </div>
  29. <div>
  30. <xsl:value-of select="description" />
  31. </div>
  32. </div>
  33. </xsl:for-each>
  34. <: $footer | mark_raw :>
  35. </xsl:template>
  36. </xsl:stylesheet>