Skip to content

Instantly share code, notes, and snippets.

@crzsotona
Created April 6, 2025 14:59
Show Gist options
  • Save crzsotona/54bbbd736940a5da5740bc8c99cfbf8b to your computer and use it in GitHub Desktop.
Save crzsotona/54bbbd736940a5da5740bc8c99cfbf8b to your computer and use it in GitHub Desktop.
Stalker Shadow of Chernobyl xlst transform for game dialogs xmls
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>String Table</title>
</head>
<body>
<h1>String Table</h1>
<table border="1">
<tr>
<th>ID</th>
<th>Text</th>
</tr>
<xsl:for-each select="string_table/string">
<tr>
<td><xsl:value-of select="@id"/></td>
<td><xsl:value-of select="text"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment