1
0

stylesheet.xsl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss14="https://spacestation14.com/changelog_rss">
  3. <head>
  4. <style>
  5. <![CDATA[
  6. body {
  7. font-family: Arial;
  8. font-size: 1.6em;
  9. background-color: rgb(32, 32, 48);
  10. max-width: 1024px;
  11. margin: 0 auto;
  12. }
  13. .title {
  14. font-size: 1.2em;
  15. color: rgb(155, 34, 54);
  16. font-weight: bold;
  17. padding: 4px;
  18. }
  19. .author {
  20. font-size: 1.2em;
  21. }
  22. .description {
  23. margin-left: 20px;
  24. margin-bottom: 1em;
  25. font-size: 10pt;
  26. color: rgb(199, 199, 199);
  27. }
  28. span {
  29. color: white;
  30. }
  31. .changes li {
  32. list-style-type: none;
  33. padding: 1px;
  34. }
  35. li::before {
  36. margin-right: 6px;
  37. }
  38. li.Tweak::before {
  39. content: '🔧';
  40. }
  41. li.Fix::before {
  42. content: '🐛';
  43. }
  44. li.Add::before {
  45. content: '➕';
  46. }
  47. li.Remove::before {
  48. content: '➖';
  49. }
  50. ]]>
  51. </style>
  52. </head>
  53. <body>
  54. <xsl:for-each select="rss/channel/item">
  55. <div class='title'>
  56. <xsl:copy-of select="pubDate"/>
  57. </div>
  58. <div class='description'>
  59. <xsl:for-each select="*[local-name()='entry']">
  60. <div class='author'>
  61. <span>
  62. <xsl:value-of select="*[local-name()='author']"/>
  63. </span> updated
  64. </div>
  65. <div class='changes'>
  66. <ul>
  67. <xsl:for-each select="*[local-name()='change']">
  68. <li>
  69. <xsl:attribute name="class">
  70. <xsl:value-of select="@*" />
  71. </xsl:attribute>
  72. <xsl:copy-of select="node()" />
  73. </li>
  74. </xsl:for-each>
  75. </ul>
  76. </div>
  77. </xsl:for-each>
  78. </div>
  79. </xsl:for-each>
  80. </body>
  81. </html>