Files
wwdpublic/Tools/changelogs/stylesheet.xsl
Matt c277c9d7b0 feat: add xsl stylesheet to changelogs (#21930)
(cherry picked from commit 40e4d43c3b33097df35b45dedeed7a75c4855433)
2024-01-26 22:04:40 +01:00

83 lines
1.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss14="https://spacestation14.com/changelog_rss">
<head>
<style>
<![CDATA[
body {
font-family: Arial;
font-size: 1.6em;
background-color: rgb(32, 32, 48);
max-width: 1024px;
margin: 0 auto;
}
.title {
font-size: 1.2em;
color: rgb(155, 34, 54);
font-weight: bold;
padding: 4px;
}
.author {
font-size: 1.2em;
}
.description {
margin-left: 20px;
margin-bottom: 1em;
font-size: 10pt;
color: rgb(199, 199, 199);
}
span {
color: white;
}
.changes li {
list-style-type: none;
padding: 1px;
}
li::before {
margin-right: 6px;
}
li.Tweak::before {
content: '🔧';
}
li.Fix::before {
content: '🐛';
}
li.Add::before {
content: '';
}
li.Remove::before {
content: '';
}
]]>
</style>
</head>
<body>
<xsl:for-each select="rss/channel/item">
<div class='title'>
<xsl:copy-of select="pubDate"/>
</div>
<div class='description'>
<xsl:for-each select="*[local-name()='entry']">
<div class='author'>
<span>
<xsl:value-of select="*[local-name()='author']"/>
</span> updated
</div>
<div class='changes'>
<ul>
<xsl:for-each select="*[local-name()='change']">
<li>
<xsl:attribute name="class">
<xsl:value-of select="@*" />
</xsl:attribute>
<xsl:copy-of select="node()" />
</li>
</xsl:for-each>
</ul>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</body>
</html>