1 |
kusanagi |
1.1 |
<?xml version="1.0" encoding="UTF-8"?> <!-- Prologo XML --> |
2 |
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Dichiarazione del documento XSLT --> |
3 |
|
|
<!-- <xsl:stylesheet version="1.0" |
4 |
|
|
xmlns:xsl="http://www.w3.org/TR/WD-xsl"> --> |
5 |
|
|
|
6 |
|
|
<!-- |
7 |
|
|
===================================================================================== |
8 |
|
|
Stylesheet: PhysEndRunTemplate.xsl |
9 |
|
|
Version: 1.0 (2005-03-14) |
10 |
|
|
Author: Maurizio Nagni |
11 |
|
|
Descr.: Format the output of the PhysEndRunToXml.c script to generate a human |
12 |
|
|
readble verion of the PhysEndRun packet |
13 |
|
|
===================================================================================== |
14 |
|
|
--> |
15 |
|
|
|
16 |
|
|
<!--Contains some utility to converts dec/hex/bin numbers--> |
17 |
|
|
<xsl:include href="numberutils_lib.xsl"/> |
18 |
|
|
|
19 |
|
|
<!--Contains all the customer specific parameters--> |
20 |
|
|
<!--<xsl:include href="Configure.xsl"/>--> |
21 |
|
|
|
22 |
|
|
<!-- Define which a key called "varDes" |
23 |
|
|
which will search inside the node "var" of the reference |
24 |
|
|
ArrDumpInfo.xml (or whatever file instead of the is used) |
25 |
|
|
all values values of the node "idx" matching the valued passed when |
26 |
|
|
the key "fileName" is called --> |
27 |
|
|
<!-- No xml file is defined here because the xsl:key is absolutely generic --> |
28 |
|
|
<!-- <xsl:key name="arrDes" match="arr" use="idx"/> |
29 |
|
|
|
30 |
|
|
<xsl:template match="/" name="ArrDumpReference"> |
31 |
|
|
<xsl:param name="code"/> |
32 |
|
|
<xsl:param name="arrval"/> |
33 |
|
|
<xsl:for-each select="document('./compilationInfo/PRH_ParamHandler_INFN_auto.arr.xml')"> |
34 |
|
|
<xsl:for-each select="key('arrDes', $code)"> |
35 |
|
|
<td> <th align="left"><xsl:value-of select="name"/><xsl:text>(</xsl:text><xsl:value-of select="idx"/><xsl:text>)</xsl:text> </th> </td> |
36 |
|
|
<td> <th align="left"><xsl:copy-of select="$arrval"/></th> </td> |
37 |
|
|
<td> <th align="left"><xsl:value-of select="comment"/></th> </td> |
38 |
|
|
</xsl:for-each> |
39 |
|
|
</xsl:for-each> |
40 |
|
|
</xsl:template> |
41 |
|
|
--> |
42 |
|
|
<xsl:template match="/" name="PhysEndRunTemplate"> |
43 |
|
|
<html> |
44 |
|
|
<body STYLE="font-family:Arial, helvetica, sans-serif; font-size:10pt"> |
45 |
|
|
<h2>PhysEndRun Event (all values are hex except OBT and PktNumber)</h2> |
46 |
|
|
<xsl:for-each select="//PHYSER_EVENT"> |
47 |
|
|
<hr size = '1' color = '#ff0000'/> |
48 |
|
|
<table border='1' width = '100%' height = '5'> |
49 |
|
|
<tr bgcolor="#ff0000" > |
50 |
|
|
<th align="left">Packet OBT</th> |
51 |
|
|
<th align="left">Packet Num</th> |
52 |
|
|
<th width = '100%'></th> |
53 |
|
|
</tr> |
54 |
|
|
<tr> |
55 |
|
|
<td align="center"><xsl:value-of select="PACKET_OBT"/></td> |
56 |
|
|
<td align="center"><xsl:value-of select="PACKET_NUM"/></td> |
57 |
|
|
<td width = '100%'></td> |
58 |
|
|
</tr> |
59 |
|
|
</table> |
60 |
|
|
<table border="1" width = '100%'> |
61 |
|
|
<tr bgcolor="#7777FF"> |
62 |
|
|
<th align="left" colspan = '99'>CALO EndRun Section</th> |
63 |
|
|
</tr> |
64 |
|
|
<xsl:for-each select="CALOENDRUN_RECORDS/CALOENDRUN_RECORD"> |
65 |
|
|
<tr bgcolor="#1acd32"> |
66 |
|
|
<th align="center">Board Id HK</th> |
67 |
|
|
<th align="center">Board Status HK</th> |
68 |
|
|
<td rowspan = '2' colspan = '99'> |
69 |
|
|
<table border = '1' width = '100%'> |
70 |
|
|
<tr> |
71 |
|
|
<th align="center">HK0</th> |
72 |
|
|
<xsl:for-each select="HK0/HK0_ITEM"> |
73 |
|
|
<td bgcolor="#ffffff"> |
74 |
|
|
<xsl:call-template name="Dec2Hex"> |
75 |
|
|
<xsl:with-param name="value" select="."/> |
76 |
|
|
</xsl:call-template> |
77 |
|
|
</td> |
78 |
|
|
</xsl:for-each> |
79 |
|
|
</tr> |
80 |
|
|
<tr> |
81 |
|
|
<th bgcolor="#1acd32" align="center">HK1</th> |
82 |
|
|
<xsl:for-each select="HK1/HK1_ITEM"> |
83 |
|
|
<td bgcolor="#ffffff"> |
84 |
|
|
<xsl:call-template name="Dec2Hex"> |
85 |
|
|
<xsl:with-param name="value" select="."/> |
86 |
|
|
</xsl:call-template> |
87 |
|
|
</td> |
88 |
|
|
</xsl:for-each> |
89 |
|
|
</tr> |
90 |
|
|
<tr> |
91 |
|
|
<th bgcolor="#1acd32" align="center">REG</th> |
92 |
|
|
<xsl:for-each select="CALO_REG/CALO_REG_ITEM"> |
93 |
|
|
<td bgcolor="#ffffff"> |
94 |
|
|
<xsl:call-template name="Dec2Hex"> |
95 |
|
|
<xsl:with-param name="value" select="."/> |
96 |
|
|
</xsl:call-template> |
97 |
|
|
</td> |
98 |
|
|
</xsl:for-each> |
99 |
|
|
</tr> |
100 |
|
|
</table> |
101 |
|
|
</td> |
102 |
|
|
</tr> |
103 |
|
|
<tr> |
104 |
|
|
<td> |
105 |
|
|
<xsl:call-template name="Dec2Hex"> |
106 |
|
|
<xsl:with-param name="value" select="BOARD_ID_HK"/> |
107 |
|
|
</xsl:call-template> |
108 |
|
|
</td> |
109 |
|
|
<td> |
110 |
|
|
<xsl:call-template name="Dec2Hex"> |
111 |
|
|
<xsl:with-param name="value" select="BOARD_ST_HK"/> |
112 |
|
|
</xsl:call-template> |
113 |
|
|
</td> |
114 |
|
|
<td> |
115 |
|
|
<xsl:call-template name="Dec2Hex"> |
116 |
|
|
<xsl:with-param name="value" select="BOARD_ID_REG"/> |
117 |
|
|
</xsl:call-template> |
118 |
|
|
</td> |
119 |
|
|
<td> |
120 |
|
|
<xsl:call-template name="Dec2Hex"> |
121 |
|
|
<xsl:with-param name="value" select="BOARD_ST_REG"/> |
122 |
|
|
</xsl:call-template> |
123 |
|
|
</td> |
124 |
|
|
</tr> |
125 |
|
|
</xsl:for-each> |
126 |
mocchiut |
1.2 |
<xsl:for-each select="TBENDRUN"> |
127 |
|
|
<tr bgcolor="#7777FF"> |
128 |
|
|
<th align="left" colspan = '99'>TriggerBoard EndRun Section</th> |
129 |
|
|
</tr> |
130 |
|
|
<tr bgcolor="#1acd32"> |
131 |
|
|
<table border="1" width = '100%'> |
132 |
|
|
<tr> |
133 |
|
|
<th align="center">Alarm Mask</th> |
134 |
|
|
<th align="center">S3S2S11 Mask</th> |
135 |
|
|
<th align="center">S11CRC Mask</th> |
136 |
|
|
<th align="center">S4CAL Mask</th> |
137 |
|
|
<th align="center">Busy Mask</th> |
138 |
|
|
<th align="center">Trig Conf</th> |
139 |
|
|
</tr> |
140 |
|
|
<tr> |
141 |
|
|
<td> |
142 |
|
|
<xsl:call-template name="Dec2Hex"> |
143 |
|
|
<xsl:with-param name="value" select="ALARM_MASK"/> |
144 |
|
|
</xsl:call-template> |
145 |
|
|
</td> |
146 |
|
|
<td> |
147 |
|
|
<xsl:call-template name="Dec2Hex"> |
148 |
|
|
<xsl:with-param name="value" select="PMT_MASK_S3S2S12"/> |
149 |
|
|
</xsl:call-template> |
150 |
|
|
</td> |
151 |
|
|
<td> |
152 |
|
|
<xsl:call-template name="Dec2Hex"> |
153 |
|
|
<xsl:with-param name="value" select="PMT_MASK_S11CRC"/> |
154 |
|
|
</xsl:call-template> |
155 |
|
|
</td> |
156 |
|
|
<td> |
157 |
|
|
<xsl:call-template name="Dec2Hex"> |
158 |
|
|
<xsl:with-param name="value" select="PMT_MASK_S4CAL"/> |
159 |
|
|
</xsl:call-template> |
160 |
|
|
</td> |
161 |
|
|
<td> |
162 |
|
|
<xsl:call-template name="Dec2Hex"> |
163 |
|
|
<xsl:with-param name="value" select="BUSY_MASK"/> |
164 |
|
|
</xsl:call-template> |
165 |
|
|
</td> |
166 |
|
|
<td> |
167 |
|
|
<xsl:call-template name="Dec2Hex"> |
168 |
|
|
<xsl:with-param name="value" select="TRIG_CONF"/> |
169 |
|
|
</xsl:call-template> |
170 |
|
|
</td> |
171 |
|
|
</tr> |
172 |
|
|
</table> |
173 |
|
|
</tr> |
174 |
|
|
</xsl:for-each> |
175 |
kusanagi |
1.1 |
</table> |
176 |
|
|
</xsl:for-each> |
177 |
|
|
<!-- |
178 |
|
|
<td> |
179 |
|
|
<xsl:text>0x</xsl:text> |
180 |
|
|
<xsl:call-template name="Dec2Hex"> |
181 |
|
|
<xsl:with-param name="value" select="INFO1"/> |
182 |
|
|
</xsl:call-template> |
183 |
|
|
<xsl:value-of select="INFO1"/> |
184 |
|
|
</td> |
185 |
|
|
--> |
186 |
|
|
|
187 |
|
|
</body> |
188 |
|
|
</html> |
189 |
|
|
</xsl:template> |
190 |
|
|
|
191 |
|
|
</xsl:stylesheet> |