This repository was archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbroadcatch.xsl
More file actions
57 lines (51 loc) · 1.47 KB
/
broadcatch.xsl
File metadata and controls
57 lines (51 loc) · 1.47 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="hash">
<xsl:param name="text" select="text()"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="break">
<xsl:param name="text" select="text()"/>
<xsl:choose>
<xsl:when test="contains($text, '
')">
<xsl:call-template name="hash">
<xsl:with-param name="text" select="substring-before($text, '
')"/>
</xsl:call-template>
<br/>
<xsl:call-template name="break">
<xsl:with-param name="text" select="substring-after($text,'
')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="hash">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="BROADCATCH">
<html>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="RUN">
<table border="1">
<tr bgcolor="#777777">
<td><xsl:value-of select="@AT"/></td>
<td><xsl:value-of select="@PID"/></td>
<td><xsl:value-of select="@NAME"/></td>
</tr>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="ENTRY">
<xsl:if test="@TYPE != 'TRACE'">
<tr>
<td><xsl:value-of select="@TYPE"/></td>
<td colspan="2"><xsl:call-template name="break"/></td>
</tr>
</xsl:if>
</xsl:template>
</xsl:stylesheet>