Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stephlocke
Created January 15, 2015 14:25
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 stephlocke/ddbf672443dd5b371457 to your computer and use it in GitHub Desktop.
Save stephlocke/ddbf672443dd5b371457 to your computer and use it in GitHub Desktop.
Iris transformation file
<?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