-
-
Save stephlocke/ddbf672443dd5b371457 to your computer and use it in GitHub Desktop.
Iris transformation file
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="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="/"> | |
<html> | |
<body> | |
<h2>Iris</h2> | |
<table border="1"> | |
<tr bgcolor="#9acd32"> | |
<th style="text-align:left">Sepal.Length</th> | |
<th style="text-align:left">Species</th> | |
</tr> | |
<xsl:for-each select="doc/iris/row"> | |
<tr> | |
<td><xsl:value-of select="Sepal.Length"/></td> | |
<td><xsl:value-of select="Species"/></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