-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail.xsl
More file actions
40 lines (35 loc) · 870 Bytes
/
email.xsl
File metadata and controls
40 lines (35 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Comparison Results</h2>
<table border="0">
<xsl:choose>
<xsl:when test="count(table/rows/row) > 0">
<xsl:apply-templates select="table/rows/row"/>
</xsl:when>
<xsl:otherwise>
No differences found for this comparison
</xsl:otherwise>
</xsl:choose>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="row">
<xsl:if test="position()=1">
<tr bgcolor="#9acd32">
<xsl:for-each select="*">
<th><xsl:value-of select="name()"/></th>
</xsl:for-each>
</tr>
</xsl:if>
<tr>
<xsl:for-each select="*">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:template>
</xsl:stylesheet>