rss-style.tx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <: component('Header', {
  6. title_select => $title_select,
  7. route => $route,
  8. lang => $lang,
  9. no_doctype => 1,
  10. }) :>
  11. <a>
  12. <xsl:attribute name="href">
  13. <xsl:value-of select="rss/channel/link"/>
  14. </xsl:attribute>
  15. Back to Site &#x2192;
  16. </a>
  17. <h3>RSS for Posts at <xsl:value-of select="rss/channel/description"/>:</h3>
  18. <xsl:for-each select="rss/channel/item">
  19. <div>
  20. <div>
  21. <a>
  22. <xsl:attribute name="href">
  23. <xsl:value-of select="link"/>
  24. </xsl:attribute>
  25. <xsl:value-of select="title"/>
  26. </a>
  27. </div>
  28. <div>
  29. Published on
  30. <xsl:value-of select="substring(pubDate, 0, 11)" />
  31. By
  32. <xsl:value-of select="author" />
  33. </div>
  34. <div>
  35. <xsl:value-of select="description" />
  36. </div>
  37. </div>
  38. </xsl:for-each>
  39. <: component('Footer') :>
  40. </xsl:template>
  41. </xsl:stylesheet>