Matt Robinson 30b5a4da65
fix: parsing for files with message/rfc822 MIME type; dir for unsupported files (#358)
Adds the ability to process files with a message/rfc822 MIME type, which previously caused failures for example-docs/fake-email-header.eml.
2023-03-10 15:10:39 -08:00

27 lines
758 B
XML

<?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>World Factbook</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th style="text-align:left">Country</th>
<th style="text-align:left">Capital</th>
<th style="text-align:left">Leader</th>
<th style="text-align:left">Sport</th>
</tr>
<xsl:for-each select="factbook/country">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="capital"/></td>
<td><xsl:value-of select="leader"/></td>
<td><xsl:value-of select="sport"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>