/usr/share/d-rats/forms/ICS213_US_OS.xsl is in d-rats 0.3.3-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="form">
<html>
<head>
<style type="text/css">
div.field {
border: 1px solid black;
}
td.field {
border: none;
}
.title {
text-align: center;
}
.line {
width: 100%;
}
.group {
border-spacing: 0px;
border-collapse: collapse;
border: 1px solid black
}
table {
border-collapse: collapse;
}
.form {
width: 80%;
border-spacing: 0px;
border-collapse: collapse;
padding-top: 0px;
padding-bottom: 0px;
}
.field-caption {
font-size: 60%;
font-weight: bold;
}
.field-content {
font-family: Arial, Helvetica, sans-serif;
white-space: pre;
}
.fineprint {
font-size:40%;
}
</style>
</head>
<body>
<h1 class="title">
<xsl:value-of select="title"/>
</h1>
<table class="form" cellpadding="0" align="center">
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tr>
<td class="group">
<xsl:apply-templates select="field[@id='incident']"/>
</td>
<td class="group">
<xsl:call-template name="_field">
<xsl:with-param name="caption">
<xsl:text>Date/Time of message</xsl:text>
</xsl:with-param>
<xsl:with-param name="value">
<xsl:value-of select="field[@id='date']/entry"/>
<xsl:text> </xsl:text>
<xsl:value-of select="field[@id='time']/entry"/>
</xsl:with-param>
</xsl:call-template>
</td>
<td class="group">
<div align="right">
<b>GENERAL MESSAGE</b><br/>
<b>ICS 213-OS</b>
</div>
</td>
</tr>
</table>
</td></tr><tr><td>
<table class="line">
<tr class="group">
<td>
<xsl:apply-templates select="field[@id='recip']"/>
</td><td>
<xsl:apply-templates select="field[@id='to_pos']"/>
</td>
</tr>
<tr class="group">
<td>
<xsl:apply-templates select="field[@id='sender']"/>
</td><td>
<xsl:apply-templates select="field[@id='from_pos']"/>
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table class="line">
<tr class="line">
<td class="group">
<xsl:apply-templates select="field[@id='subject']"/>
</td>
</tr>
<tr class="line">
<td class="group">
<xsl:apply-templates select="field[@id='message']"/>
</td>
</tr>
<tr class="line">
<td class="group">
<xsl:apply-templates select="field[@id='reply']"/>
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table class="line">
<tr class="group">
<td>
<xsl:apply-templates select="field[@id='sig']"/>
</td><td>
<xsl:call-template name="_field">
<xsl:with-param name="caption">
<xsl:text>Date/Time of reply</xsl:text>
</xsl:with-param>
<xsl:with-param name="value">
<xsl:value-of select="field[@id='date_reply']/entry"/>
<xsl:text> </xsl:text>
<xsl:value-of select="field[@id='time_reply']/entry"/>
</xsl:with-param>
</xsl:call-template>
</td>
</tr>
</table>
</td></tr>
<tr><td>
<table class="line">
<tr class="group">
<td width="33%">GENERAL MESSAGE</td>
<td width="33%" align="center"><small>June 2000</small></td>
<td width="33%" align="right">ICS213-OS</td>
</tr>
</table>
</td></tr>
</table>
<div align="right" class="form">
<span class="fineprint">
Electronic version: Generated by D-RATS
</span>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="entry">
<xsl:choose>
<xsl:when test="@type = 'choice'">
<xsl:value-of select="choice[@set='y']"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="_field">
<xsl:param name="caption"/>
<xsl:param name="value"/>
<table class="element">
<tr>
<td class="field">
<span class="field-caption">
<xsl:value-of select="$caption"/>
</span>
</td>
</tr><tr>
<td>
<span class="field-content">
<xsl:value-of select="$value"/>
</span>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="field">
<xsl:call-template name="_field">
<xsl:with-param name="caption" select="caption"/>
<xsl:with-param name="value">
<xsl:apply-templates select="entry"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
|