Created
April 6, 2025 14:59
-
-
Save crzsotona/54bbbd736940a5da5740bc8c99cfbf8b to your computer and use it in GitHub Desktop.
Stalker Shadow of Chernobyl xlst transform for game dialogs xmls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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