Skip to content

Instantly share code, notes, and snippets.

@odalet
Created May 2, 2013 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odalet/5502010 to your computer and use it in GitHub Desktop.
Save odalet/5502010 to your computer and use it in GitHub Desktop.
MSDN Keys export viewer
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>MSDN Product Keys</h2>
<table border="1">
<tr bgcolor="#cccccc">
<th align="left">Product Name</th>
<th align="left">Key Type</th>
<th align="left">Claimed Date</th>
<th align="left">Product Key</th>
</tr>
<xsl:for-each select="/YourKey/Product_Key">
<tr>
<td><xsl:value-of select="@Name"/></td>
<td><xsl:value-of select="Key/@Type"/></td>
<td><xsl:value-of select="Key/@ClaimedDate"/></td>
<td><xsl:value-of select="Key" disable-output-escaping="yes" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
@odalet
Copy link
Author

odalet commented May 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment