Created
May 2, 2013 12:59
-
-
Save odalet/5502010 to your computer and use it in GitHub Desktop.
MSDN Keys export viewer
This file contains 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="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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original idea: http://blog.jdconley.com/2006/11/xslt-for-msdn-product-keys.html