root / projects / DailyProductionReport_1.0 / XML / Version1.0 / WITSML131 / stylesheets / opsReport.xsl @ 16

Revision 16, 88.7 kB (checked in by ryland, 15 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
3                xmlns:witsml="http://www.witsml.org/schemas/131">
4
5        <xsl:include href="all_object_utility_templates.xsl"/>
6
7  <xsl:template match="/">
8  <html>
9  <head>
10  <title>WITSML opsReport Data Object</title> 
11  </head>
12  <body>
13  <table border="2" align="center">
14  <tr>
15  <th colspan="9">
16  <font size="+2" color="blue">WITSML</font> 
17  </th>
18  </tr>
19  <tr>
20  <th colspan="9">
21  <font size="+2" color="blue">Operations Report</font> 
22  </th>
23  </tr>
24  <xsl:for-each select="witsml:opsReports">
25  <xsl:for-each select="witsml:opsReport">
26  <tr>  <td colspan="3"><font size="+1" color="blue">Well uid: </font>  <xsl:value-of select="@uidWell"/></td>
27        <td colspan="5"><font size="+1" color="blue">Well Name: </font>  <xsl:value-of select="witsml:nameWell"/></td></tr>
28  <tr>  <td colspan="3"><font size="-1" color="blue"><b>Wellbore uid: </b></font>  <font size="-1"><xsl:value-of select="@uidWellbore"/></font></td>
29        <td colspan="5"><font size="-1" color="blue"><b>Report uid: </b></font>  <font size="-1"><xsl:value-of select="@uid"/></font></td></tr>
30  <tr>  <td colspan="3"><font size="-1" color="blue"><b>Wellbore Name: </b></font>  <font size="-1"><xsl:value-of select="witsml:nameWellore"/></font></td>
31        <td colspan="5"><font size="-1" color="blue"><b>Report Name: </b></font>  <font size="-1"><xsl:value-of select="witsml:name"/></font></td></tr>
32  <tr>
33  <td colspan="2">
34  <font size="-1">
35  <b>Report date: </b> 
36  <xsl:value-of select="witsml:dTim" /> 
37  </font>
38  </td>
39  <td colspan="2">
40  <font size="-1">
41  <b>Days Oper.: </b> 
42  <xsl:apply-templates select="witsml:eTimStart" mode="valueWithUomRef"/> 
43  </font>
44  </td>
45  <td colspan="2">
46  <font size="-1">
47  <b>DFS: </b> 
48  <xsl:apply-templates select="witsml:eTimSpud" mode="valueWithUomRef"/>
49  </font>
50  </td>
51  <td colspan="2">
52  <font size="-1">
53  <b>Days Rig on Loc: </b> 
54  <xsl:apply-templates select="witsml:eTimSpud" mode="valueWithUomRef"/>
55  </font>
56  </td>
57  </tr>
58  <tr>
59  <td colspan="2">
60  <font size="-1">
61  <b>MD: </b> 
62  <xsl:apply-templates select="witsml:mdReport" mode="valueWithUomRef"/>
63  </font>
64  </td>
65  <td colspan="2">
66  <font size="-1">
67  <b>TVD: </b> 
68  <xsl:apply-templates select="witsml:tvdReport" mode="valueWithUomRef"/>
69  </font>
70  </td>
71  <td colspan="2">
72  <font size="-1">
73  <b>Distance drilled: </b> 
74  <xsl:apply-templates select="witsml:distDrill" mode="valueWithUomRef"/>
75  </font>
76  </td>
77  <td colspan="2">
78  <font size="-1">
79  <b>Drilling time: </b> 
80  <xsl:apply-templates select="witsml:eTimDrill" mode="valueWithUomRef"/>
81  </font>
82  </td>
83  </tr>
84  <tr>
85  <td colspan="2">
86  <font size="-1">
87  <b>MD Plan: </b> 
88  <xsl:apply-templates select="witsml:mdPlanned" mode="valueWithUomRef"/>
89  </font>
90  </td>
91  <td colspan="2">
92  <font size="-1">
93  <b>Avg ROP: </b> 
94 <xsl:apply-templates select="witsml:ropAv" mode="valueWithUomRef"/>
95  </font>
96  </td>
97  <td colspan="2">
98  <font size="-1">
99  <b>ROP at Rpt time: </b> 
100  <xsl:apply-templates select="witsml:ropCurrent" mode="valueWithUomRef"/>
101  </font>
102  </td>
103  </tr>
104  <tr>
105  <td colspan="3">
106  <font size="-1">
107  <b>Supervisor: </b> 
108  <xsl:value-of select="witsml:supervisor" /> 
109  </font>
110  </td>
111  <td colspan="3">
112  <font size="-1">
113  <b>Engineer: </b> 
114  <xsl:value-of select="witsml:engineer" /> 
115  </font>
116  </td>
117  <td colspan="3">
118  <font size="-1">
119  <b>Geologist: </b> 
120  <xsl:value-of select="witsml:geologist" /> 
121  </font>
122  </td>
123  </tr>
124  <tr>
125  <td colspan="2">
126  <font size="-1">
127  <b>Rot Hours: </b> 
128  <xsl:apply-templates select="witsml:eTimDrillRot" mode="valueWithUomRef"/>
129  </font>
130  </td>
131  <td colspan="2" align="right">
132  <font size="-1">
133  <b>Time from start of bit run: </b> 
134  </font>
135  </td>
136  <td colspan="1">
137  <font size="-1">
138  <b>Sliding: </b> 
139  <xsl:apply-templates select="witsml:eTimDrillSlid" mode="valueWithUomRef"/>
140  </font>
141  </td>
142  <td colspan="1">
143  <font size="-1">
144  <b>Circulating: </b> 
145  <xsl:apply-templates select="witsml:eTimCirc" mode="valueWithUomRef"/>
146  </font>
147  </td>
148  <td colspan="1">
149  <font size="-1">
150  <b>Reaming: </b> 
151  <xsl:apply-templates select="witsml:eTimReam" mode="valueWithUomRef"/>
152  </font>
153  </td>
154  </tr>
155  <tr>
156  <td colspan="1" align="right">
157  <font size="-1">
158  <b>Distance: </b> 
159  </font>
160  </td>
161  <td colspan="1">
162  <font size="-1">
163  <b>Drilled Rot.: </b> 
164  <xsl:apply-templates select="witsml:distDrillRot" mode="valueWithUomRef"/>
165  </font>
166  </td>
167  <td colspan="1">
168  <font size="-1">
169  <b>Drilled Sliding: </b> 
170  <xsl:apply-templates select="witsml:distDrillSlid" mode="valueWithUomRef"/>
171  </font>
172  </td>
173  <td colspan="1">
174  <font size="-1">
175  <b>Reamed: </b> 
176  <xsl:apply-templates select="witsml:distReam" mode="valueWithUomRef"/>
177  </font>
178  </td>
179  <td colspan="2">
180  <font size="-1">
181  <b>Hold Drilling: </b> 
182  <xsl:apply-templates select="witsml:distHold" mode="valueWithUomRef"/>
183  </font>
184  </td>
185  <td colspan="1">
186  <font size="-1">
187  <b>Steering: </b> 
188  <xsl:apply-templates select="witsml:distSteering" mode="valueWithUomRef"/>
189  </font>
190  </td>
191  </tr>
192  <tr>
193  <td colspan="2" align="right">
194  <font size="-1">
195  <b>POB: </b> 
196  </font>
197  </td>
198  <td colspan="1">
199  <font size="-1">
200  <b>Total: </b> 
201  <xsl:value-of select="witsml:numPob" />
202  </font>
203  </td>
204  <td colspan="1">
205  <font size="-1">
206  <b>Contractor: </b> 
207  <xsl:value-of select="witsml:numContract" />
208  </font>
209  </td>
210  <td colspan="1">
211  <font size="-1">
212  <b>Operator: </b> 
213  <xsl:value-of select="witsml:numOperator" />
214  </font>
215  </td>
216  <td colspan="1">
217  <font size="-1">
218  <b>Service Co.: </b> 
219  <xsl:value-of select="witsml:numService" />
220  </font>
221  </td>
222  </tr>
223  <tr>
224  <td colspan="2">
225  <font size="-1">
226  <b>AFE No.: </b> 
227  <xsl:value-of select="witsml:numAFE" /> 
228  </font>
229  </td>
230  <td colspan="1" align="right">
231  <font size="-1">
232  <b>Daily: </b> 
233  </font>
234  </td>
235  <td colspan="1">
236  <font size="-1">
237  <b>Cost: </b> 
238  <xsl:value-of select="witsml:costDay" />
239  <xsl:text> </xsl:text>
240  <xsl:value-of select="witsml:costDay/@currency" />
241  </font>
242  </td>
243  <td colspan="1">
244  <font size="-1">
245  <b>Mud Cost: </b> 
246  <xsl:value-of select="witsml:costDayMud" /> 
247  <xsl:text> </xsl:text>
248  <xsl:value-of select="witsml:costDayMud/@currency" />
249  </font>
250  </td>
251  <td colspan="2">
252  <font size="-1">
253  <b>Hole Size: </b> 
254  <xsl:apply-templates select="witsml:diaHole" mode="valueWithUomRef"/>
255  </font>
256  </td>
257  <td colspan="2">
258  <font size="-1">
259  <b>Hole Cond.: </b> 
260  <xsl:value-of select="witsml:conditionHole" /> 
261  </font>
262  </td>
263  </tr>
264  <tr>
265  <td colspan="4">
266  <font size="-1">
267  <b>Lithology: </b> 
268  <xsl:value-of select="witsml:lithology" /> 
269  </font>
270  </td>
271  <td colspan="5">
272  <font size="-1">
273  <b>Formation: </b> 
274  <xsl:value-of select="witsml:nameFormation" /> 
275  </font>
276  </td>
277  </tr>
278  <tr>
279  <td colspan="1" align="right">
280  <font size="-1">
281  <b>Last casing: </b> 
282  </font>
283  </td>
284  <td colspan="1">
285  <font size="-1">
286  <b>dia.: </b> 
287  <xsl:apply-templates select="witsml:diaCsgLast" mode="valueWithUomRef"/>
288  </font>
289  </td>
290  <td colspan="1">
291  <font size="-1">
292  <b>md: </b> 
293  <xsl:apply-templates select="witsml:mdCsgLast" mode="valueWithUomRef"/>
294  </font>
295  </td>
296  <td colspan="1">
297  <font size="-1">
298  <b>tvd: </b> 
299  <xsl:apply-templates select="witsml:tvdCsgLast" mode="valueWithUomRef"/>
300  </font>
301  </td>
302  <td colspan="2">
303  <font size="-1">
304  <b>LOT TVD: </b> 
305  <xsl:apply-templates select="witsml:tvdLot" mode="valueWithUomRef"/>
306  </font>
307  </td>
308  <td colspan="3">
309  <font size="-1">
310  <b>Tub. Assy: </b> 
311  <xsl:if test="witsml:nameTubular">
312    <xsl:value-of select="witsml:nameTubular"/> (uid: <xsl:value-of select="witsml:nameTubular/@uidRef"/>)
313  </xsl:if>
314  </font>
315  </td>
316  </tr>
317  <tr>
318  <td colspan="2">
319  <font size="-1">
320  <b>Leak off test EMW: </b> 
321  <xsl:apply-templates select="witsml:presLotEmw" mode="valueWithUomRef"/>
322  </font>
323  </td>
324  <td colspan="2">
325  <font size="-1">
326  <b>Kick tol. press.: </b> 
327  <xsl:apply-templates select="witsml:presKickTol" mode="valueWithUomRef"/>
328  </font>
329  </td>
330  <td colspan="2">
331  <font size="-1">
332  <b>Kick tol. vol.: </b> 
333  <xsl:apply-templates select="witsml:volKickTol" mode="valueWithUomRef"/>
334  </font>
335  </td>
336  <td colspan="3">
337  <font size="-1">
338  <b>MAASP.: </b> 
339 <xsl:apply-templates select="witsml:maasp" mode="valueWithUomRef"/>
340  </font>
341  </td>
342  </tr>
343  <xsl:if test="witsml:sum24Hr">
344  <tr>
345  <td colspan="9">
346  <font size="-1">
347  <b>24 hr summary: </b> 
348  <xsl:value-of select="witsml:sum24Hr" /> 
349  </font>
350  </td>
351  </tr>
352  </xsl:if>
353  <xsl:if test="witsml:forecast24Hr">
354  <tr>
355  <td colspan="9">
356  <font size="-1">
357  <b>24 hr Forecast: </b> 
358  <xsl:value-of select="witsml:forecast24Hr" /> 
359  </font>
360  </td>
361  </tr>
362  </xsl:if>
363  <xsl:if test="witsml:statusCurrent">
364  <tr>
365  <td colspan="9">
366  <font size="-1">
367  <b>Curr. status: </b> 
368  <xsl:value-of select="witsml:statusCurrent" /> 
369  </font>
370  </td>
371  </tr>
372  </xsl:if>
373  <!--                  Check for activity information    --> 
374  <xsl:for-each select="witsml:activity">
375  <tr>
376  <td colspan="9" align="center">
377  <font size="+1" color="blue">Activity Breakdown</font> 
378  </td>
379  </tr>
380  <xsl:apply-templates select="." /> 
381  </xsl:for-each>
382  <!--                  Check for dayCost information   
383  --> 
384  <xsl:if test="witsml:dayCost">
385  <tr>
386  <td colspan="9" align="center">
387  <font size="+1" color="blue">Day Costs</font> 
388  </td>
389  </tr>
390  </xsl:if>
391  <xsl:for-each select="witsml:dayCost">
392  <xsl:apply-templates select="." /> 
393  </xsl:for-each>
394  <!--                  Check for hse information       
395  --> 
396  <xsl:for-each select="witsml:hse">
397  <tr>
398  <td colspan="9" align="center">
399  <font size="+1" color="blue">Health, Safety, and Environmental Data</font> 
400  </td>
401  </tr>
402  <xsl:apply-templates select="." /> 
403  </xsl:for-each>
404  <!--                  Check for drillingParams information   
405  --> 
406  <xsl:if test="witsml:drillingParams">
407  <tr>
408  <td colspan="9" align="center">
409  <font size="+1" color="blue">Drilling Parameters</font> 
410  </td>
411  </tr>
412  </xsl:if>
413  <xsl:for-each select="witsml:drillingParams">
414  <xsl:apply-templates select="." /> 
415  </xsl:for-each>
416  <!--                  Check for fluid information     
417  --> 
418  <xsl:for-each select="witsml:fluid">
419  <xsl:apply-templates select="." /> 
420  </xsl:for-each>
421  <!--                  Check for trajectoryStation information
422  --> 
423  <xsl:if test="witsml:trajectoryStation">
424  <tr>
425  <td colspan="9" align="center">
426  <font size="+1" color="blue">Trajectory Stations</font> 
427  </td>
428  </tr>
429  </xsl:if>
430  <xsl:for-each select="witsml:trajectoryStation">
431  <xsl:apply-templates select="." /> 
432  </xsl:for-each>
433  <!--                  Check for pitVolume information
434  --> 
435  <xsl:if test="witsml:pitVolume">
436  <tr>
437  <td colspan="9" align="center">
438  <font size="+1" color="blue">Pit Volumes</font> 
439  </td>
440  </tr>
441  </xsl:if>
442  <xsl:for-each select="witsml:pitVolume">
443  <tr>
444  <td colspan="2">
445  <font size="-1">
446  <b>Pit: </b> 
447  <xsl:value-of select="witsml:indexPit" /> 
448  <b>uid: </b> <xsl:value-of select="witsml:indexPit/@uidRef" /> 
449  </font>
450  </td>
451  <td colspan="2">
452  <font size="-1">
453  <b>Vol. taken: </b> 
454  <xsl:value-of select="witsml:dTim" /> 
455  </font>
456  </td>
457  <td colspan="1">
458  <font size="-1">
459  <b>Vol.: </b> 
460  <xsl:apply-templates select="witsml:volPit" mode="valueWithUomRef"/>
461  </font>
462  </td>
463  <td colspan="2">
464  <font size="-1">
465  <b>Density: </b> 
466  <xsl:apply-templates select="witsml:densFluid" mode="valueWithUomRef"/>
467  </font>
468  </td>
469  <td colspan="2">
470  <font size="-1">
471  <b>Funnel vis.: </b> 
472  <xsl:apply-templates select="witsml:visFunnel" mode="valueWithUomRef"/>
473  </font>
474  </td>
475  </tr>
476  <tr>
477  <td colspan="2" /> 
478  <td colspan="7">
479  <font size="-1">
480  <b>Description: </b> 
481  <xsl:value-of select="witsml:descFluid" /> 
482  </font>
483  </td>
484  </tr>
485  </xsl:for-each>
486  <!--                  Check for mudVolume information
487  --> 
488  <xsl:for-each select="witsml:mudVolume">
489  <tr>
490  <td colspan="9" align="center">
491  <font size="+1" color="blue">Mud Volumes</font> 
492  </td>
493  </tr>
494  <xsl:apply-templates select="." /> 
495  </xsl:for-each>
496  <!--                  Check for mudInventory information     
497  --> 
498  <xsl:if test="witsml:mudInventory">
499  <tr>
500  <td colspan="9" align="center">
501  <font size="+1" color="blue">Mud Inventory</font> 
502  </td>
503  </tr>
504  </xsl:if>
505  <xsl:for-each select="witsml:mudInventory">
506  <xsl:apply-templates select="." /> 
507  </xsl:for-each>
508  <!--                  Check for bulk information     
509  --> 
510  <xsl:if test="witsml:bulk">
511  <tr>
512  <td colspan="9" align="center">
513  <font size="+1" color="blue">Bulk</font> 
514  </td>
515  </tr>
516  </xsl:if>
517  <xsl:for-each select="witsml:bulk">
518  <xsl:apply-templates select="." /> 
519  </xsl:for-each>
520  <!--                  Check for pumpOp information   
521  --> 
522  <xsl:if test="witsml:pumpOp">
523  <tr>
524  <td colspan="9" align="center">
525  <font size="+1" color="blue">Pump Operations</font> 
526  </td>
527  </tr>
528  </xsl:if>
529  <xsl:for-each select="witsml:pumpOp">
530  <tr>
531  <td colspan="2">
532  <font size="-1">
533  <b>Pump: </b> 
534  <xsl:value-of select="witsml:indexPump" />  (uid=
535  <xsl:value-of select="indexPump/@uidRef" /> )
536  </font>
537  </td>
538  <td colspan="3">
539  <font size="-1">
540  <b>Measured: </b> 
541  <xsl:value-of select="witsml:dTim" /> 
542  </font>
543  </td>
544  <td colspan="4">
545  <font size="-1">
546  <b>Type oper.: </b> 
547  <xsl:value-of select="witsml:typeOperation" /> 
548  </font>
549  </td>
550  </tr>
551  <tr>
552  <td /> 
553  <td colspan="1">
554  <font size="-1">
555  <b>Liner id.: </b> 
556  <xsl:apply-templates select="witsml:idLiner" mode="valueWithUomRef"/>
557  </font>
558  </td>
559  <td colspan="2">
560  <font size="-1">
561  <b>Stroke len.: </b> 
562  <xsl:apply-templates select="witsml:lenStroke" mode="valueWithUomRef"/>
563  </font>
564  </td>
565  <td colspan="2">
566  <font size="-1">
567  <b>Stroke rate: </b> 
568  <xsl:apply-templates select="witsml:rateStroke" mode="valueWithUomRef"/>
569  </font>
570  </td>
571  </tr>
572  <tr>
573  <td /> 
574  <td colspan="2">
575  <font size="-1">
576  <b>Pump press.: </b> 
577  <xsl:apply-templates select="witsml:pressure" mode="valueWithUomRef"/>
578  </font>
579  </td>
580  <td colspan="1">
581  <font size="-1">
582  <b>Efficiency: </b> 
583  <xsl:apply-templates select="witsml:pcEfficiency" mode="valueWithUomRef"/>
584  </font>
585  </td>
586  <td colspan="2">
587  <font size="-1">
588  <b>Pump o/p: </b> 
589  <xsl:apply-templates select="witsml:pumpOutput" mode="valueWithUomRef"/>
590  </font>
591  </td>
592  <td colspan="2">
593  <font size="-1">
594  <b>Bit md: </b> 
595  <xsl:apply-templates select="witsml:mdBit" mode="valueWithUomRef"/>
596  </font>
597  </td>
598  </tr>
599  </xsl:for-each>
600  <!--                  Check for shakerOp information 
601  --> 
602  <xsl:for-each select="witsml:shakerOp">
603  <tr>
604  <td colspan="9" align="center">
605  <font size="+1" color="blue">
606  Shaker Operations for shaker:
607  <xsl:value-of select="@uidShaker" /> 
608  </font>
609  </td>
610  </tr>
611  <xsl:apply-templates select="." /> 
612  </xsl:for-each>
613  <!--                  Check for scr information       
614  --> 
615  <xsl:if test="witsml:scr">
616  <tr>
617  <td colspan="9" align="center">
618  <font size="+1" color="blue">Slow Circulation Rates (SCR)</font> 
619  </td>
620  </tr>
621  </xsl:if>
622  <xsl:for-each select="witsml:scr">
623  <xsl:apply-templates select="." /> 
624  </xsl:for-each>
625  <!--                  Check for incident information 
626  --> 
627  <xsl:for-each select="witsml:incident">
628  <tr>
629  <td colspan="9" align="center">
630  <font size="+1" color="blue">Incidents</font> 
631  </td>
632  </tr>
633  <xsl:apply-templates select="." /> 
634  </xsl:for-each>
635  <!--                  Check for personnel information
636  --> 
637  <xsl:if test="witsml:personnel">
638  <tr>
639  <td colspan="9" align="center">
640  <font size="+1" color="blue">Personnel</font> 
641  </td>
642  </tr>
643  </xsl:if>
644  <xsl:for-each select="witsml:personnel">
645  <xsl:apply-templates select="." /> 
646  </xsl:for-each>
647  <!--                  Check for supportCraft information     
648  --> 
649  <xsl:if test="witsml:supportCraft">
650  <tr>
651  <td colspan="9" align="center">
652  <font size="+1" color="blue">
653  Support Craft:
654  <xsl:value-of select="witsml:supportCraft/@uid" /> 
655  </font>
656  </td>
657  </tr>
658  </xsl:if>
659  <xsl:for-each select="witsml:supportCraft">
660  <xsl:apply-templates select="." /> 
661  </xsl:for-each>
662  <!--                  Check for rigResponse information       
663  --> 
664  <xsl:if test="witsml:rigResponse">
665  <tr>
666  <td colspan="9" align="center">
667  <font size="+1" color="blue">
668  Rig Response
669  </font>
670  </td>
671  </tr>
672  </xsl:if>
673  <xsl:for-each select="witsml:rigResponse">
674  <xsl:apply-templates select="." /> 
675  </xsl:for-each>
676  <!--          Check for weather information   
677  --> 
678  <xsl:if test="witsml:weather">
679  <tr>
680  <td colspan="9" align="center">
681  <font size="+1" color="blue">Weather</font> 
682  </td>
683  </tr>
684  </xsl:if>
685  <xsl:for-each select="witsml:weather">
686  <xsl:apply-templates select="." /> 
687  </xsl:for-each>
688                                <!--      Common Data   -->
689                                <tr><td colspan="8" align="center"><font size="+1" color="blue">Common Data</font></td></tr>
690                                <tr><td colspan="2"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td>
691                                        <td colspan="2"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td>
692                                        <td colspan="4"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr>
693                                <tr><td colspan="8"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr>
694
695  </xsl:for-each>
696  </xsl:for-each>
697  </table>
698  </body>
699  </html>
700  </xsl:template>
701  <!--                          activity Template       --> 
702  <xsl:template match="witsml:activity">
703  <tr>
704  <td colspan="1" align="right">
705  <font size="-1">
706  <b>Activity: </b> 
707  </font>
708  </td>
709  <td colspan="2">
710  <font size="-1">
711  <b>started: </b> 
712  <xsl:value-of select="witsml:dTimStart" /> 
713  </font>
714  </td>
715  <td colspan="2">
716  <font size="-1">
717  <b>ended: </b> 
718  <xsl:value-of select="witsml:dTimEnd" /> 
719  </font>
720  </td>
721  <td colspan="1">
722  <font size="-1">
723  <b>duration: </b> 
724  <xsl:apply-templates select="witsml:duration" mode="valueWithUomRef"/>
725  </font>
726  </td>
727  <td colspan="2">
728  <font size="-1">
729  <b>Item State: </b> 
730  <xsl:value-of select="witsml:itemState" /> 
731  </font>
732  </td>
733  </tr>
734  <tr>
735  <td colspan="2">
736  <font size="-1">
737  <b>Phase: </b> 
738  <xsl:value-of select="witsml:phase" /> 
739  </font>
740  </td>
741  <td colspan="2">
742  <font size="-1">
743  <b>Type: </b> 
744  <xsl:value-of select="witsml:typeActivityClass" /> 
745  </font>
746  </td>
747  <td colspan="2">
748  <font size="-1">
749  <b>State: </b> 
750  <xsl:value-of select="witsml:state" /> 
751  </font>
752  </td>
753  </tr>
754  <!--          Check for a activityCode information   
755  --> 
756  <xsl:for-each select="witsml:activityCode">
757  <xsl:apply-templates select="." /> 
758  </xsl:for-each>
759  <tr>
760  <td colspan="1" align="right">
761  <font size="-1">
762  <b>Hole: </b> 
763  </font>
764  </td>
765  <td colspan="1">
766  <font size="-1">
767  <b>MD start: </b> 
768  <xsl:apply-templates select="witsml:mdHoleStart" mode="valueWithUomRef"/>
769  </font>
770  </td>
771  <td colspan="1">
772  <font size="-1">
773  <b>MD end: </b> 
774  <xsl:apply-templates select="witsml:mdHoleEnd" mode="valueWithUomRef"/>
775  </font>
776  </td>
777  <td colspan="1">
778  <font size="-1">
779  <b>TVD start: </b> 
780 <xsl:apply-templates select="witsml:tvdHoleStart" mode="valueWithUomRef"/>
781  </font>
782  </td>
783  <td colspan="1">
784  <font size="-1">
785  <b>TVD end: </b> 
786  <xsl:apply-templates select="witsml:tvdHoleStart" mode="valueWithUomRef"/>
787  </font>
788  </td>
789  <td colspan="1" align="right">
790  <font size="-1">
791  <b>MD of bit at: </b> 
792  </font>
793  </td>
794  <td colspan="1">
795  <font size="-1">
796  <b>start: </b> 
797  <xsl:apply-templates select="witsml:mdBitStart" mode="valueWithUomRef"/>
798  </font>
799  </td>
800  <td colspan="2">
801  <font size="-1">
802  <b>end: </b> 
803  <xsl:apply-templates select="witsml:mdBitEnd" mode="valueWithUomRef"/>
804  </font>
805  </td>
806  </tr>
807  <tr>
808  <td colspan="2">
809  <font size="-1">
810  <b>Operator: </b> 
811  <xsl:value-of select="witsml:operator" /> 
812  </font>
813  </td>
814  <td colspan="2">
815  <font size="-1">
816  <b>Tub. Assy ID: </b> 
817  <xsl:if test="witsml:nameTubular">
818    <xsl:value-of select="witsml:nameTubular"/> (uid: <xsl:value-of select="witsml:nameTubular/@uidRef"/>)
819  </xsl:if>  </font>
820  </td>
821  <td colspan="2">
822  <font size="-1">
823  <b>Activity optimum?: </b> 
824  <xsl:value-of select="witsml:optimum" /> 
825  </font>
826  </td>
827  <td colspan="3">
828  <font size="-1">
829  <b>Productive?: </b> 
830  <xsl:value-of select="witsml:productive" /> 
831  </font>
832  </td>
833  </tr>
834  <tr>
835  <td colspan="9">
836  <font size="-1">
837  <b>Comments: </b> 
838  <xsl:value-of select="witsml:comments" /> 
839  </font>
840  </td>
841  </tr>
842  </xsl:template> <!--   end Activity Template -->
843  <!--                                                  activityCode Template  --> 
844  <xsl:template match="witsml:activityCode">
845  <td colspan="2">
846  <font size="-1">
847  <b>Activity Code: </b> 
848  <xsl:value-of select="witsml:activityCode" /> 
849  </font>
850  </td>
851  <td colspan="4">
852  <font size="-1">
853  <b>Detail: </b> 
854  <xsl:value-of select="witsml:detailActivity" /> 
855  </font>
856  </td>
857  </xsl:template>
858  <!--                                                                  dayCost Template                                                       
859  --> 
860  <xsl:template match="witsml:dayCost">
861  <tr>
862  <td colspan="2">
863  <font size="-1">
864  <b>AFE: </b> 
865  <xsl:value-of select="witsml:numAFE" /> 
866  </font>
867  </td>
868  <td colspan="1" align="right">
869  <font size="-1">
870  <b>Cost: </b> 
871  </font>
872  </td>
873  <td colspan="1">
874  <font size="-1">
875  <b>group: </b> 
876  <xsl:value-of select="witsml:costGroup" /> 
877  </font>
878  </td>
879  <td colspan="1">
880  <font size="-1">
881  <b>class: </b> 
882  <xsl:value-of select="witsml:costClass" /> 
883  </font>
884  </td>
885  <td colspan="1">
886  <font size="-1">
887  <b>code: </b> 
888  <xsl:value-of select="witsml:costCode" /> 
889  </font>
890  </td>
891  <td colspan="1">
892  <font size="-1">
893  <b>subcode: </b> 
894  <xsl:value-of select="witsml:costSubCode" /> 
895  </font>
896  </td>
897  </tr>
898  <tr>
899  <td colspan="1">
900  <font size="-1">
901  <b /> 
902  </font>
903  </td>
904  <td colspan="2">
905  <font size="-1">
906  <b>Desc: </b> 
907  <xsl:value-of select="witsml:costItemDescription" /> 
908  </font>
909  </td>
910  <td colspan="2">
911  <font size="-1">
912  <b>Cost/item: </b> 
913  <xsl:value-of select="witsml:costPerItem" /> 
914  <xsl:text> </xsl:text>
915  <xsl:value-of select="witsml:costPerItem/@currency" />
916  </font>
917  </td>
918  <td colspan="1">
919  <font size="-1">
920  <b>Item qty: </b> 
921  <xsl:value-of select="witsml:qtyItem" /> 
922  </font>
923  </td>
924  <td colspan="1">
925  <font size="-1">
926  <b>Amt used: </b> 
927  <xsl:value-of select="witsml:itemSize" /> 
928  </font>
929  </td>
930  <td colspan="2">
931  <font size="-1">
932  <b>Cost: </b> 
933  <xsl:value-of select="witsml:costAmount" />
934  <xsl:text> </xsl:text>
935  <xsl:value-of select="witsml:costAmount/@currency" /> 
936  </font>
937  </td>
938  </tr>
939  <tr>
940  <td colspan="1">
941  <font size="-1">
942  <b /> 
943  </font>
944  </td>
945  <td colspan="2">
946  <font size="-1">
947  <b>Invoice: </b> 
948  <xsl:value-of select="witsml:numInvoice" /> 
949  </font>
950  </td>
951  <td colspan="1">
952  <font size="-1">
953  <b>P.O.: </b> 
954  <xsl:value-of select="witsml:numPO" /> 
955  </font>
956  </td>
957  <td colspan="1">
958  <font size="-1">
959  <b>Ticket: </b> 
960  <xsl:value-of select="witsml:numTicket" /> 
961  </font>
962  </td>
963  <td colspan="2">
964  <font size="-1">
965  <b>Carry over?: </b> 
966  <xsl:value-of select="witsml:isCarryOver" /> 
967  </font>
968  </td>
969  <td colspan="2">
970  <font size="-1">
971  <b>Rental?: </b> 
972  <xsl:value-of select="witsml:isRental" /> 
973  </font>
974  </td>
975  </tr>
976  <tr>
977  <td colspan="1">
978  <font size="-1">
979  <b /> 
980  </font>
981  </td>
982  <td colspan="2">
983  <font size="-1">
984  <b>Serial no: </b> 
985  <xsl:value-of select="witsml:numSerial" /> 
986  </font>
987  </td>
988  <td colspan="3">
989  <font size="-1">
990  <b>Vendor: </b> 
991  <xsl:value-of select="witsml:nameVendor" /> 
992  </font>
993  </td>
994  <td colspan="2">
995  <font size="-1">
996  <b>Vendor no.: </b> 
997  <xsl:value-of select="witsml:numVendor" /> 
998  </font>
999  </td>
1000  </tr>
1001  <tr>
1002  <td colspan="1">
1003  <font size="-1">
1004  <b /> 
1005  </font>
1006  </td>
1007  <td colspan="4">
1008  <font size="-1">
1009  <b>Pool: </b> 
1010  <xsl:value-of select="witsml:pool" /> 
1011  </font>
1012  </td>
1013  <td colspan="2">
1014  <font size="-1">
1015  <b>Cost estimated?: </b> 
1016  <xsl:value-of select="witsml:estimated" /> 
1017  </font>
1018  </td>
1019  </tr>
1020  </xsl:template>
1021  <!--                                                                  hse Template                                                   
1022  --> 
1023  <xsl:template match="witsml:hse">
1024  <tr>
1025  <td colspan="2" align="right">
1026  <font size="-1">
1027  <b>Last csg press. test: </b> 
1028  </font>
1029  </td>
1030  <td colspan="2">
1031  <font size="-1">
1032  <b>date: </b> 
1033  <xsl:value-of select="witsml:lastCsgPressTest" /> 
1034  </font>
1035  </td>
1036  <td colspan="2">
1037  <font size="-1">
1038  <b>pressure: </b> 
1039  <xsl:apply-templates select="witsml:presLastCsg" mode="valueWithUomRef"/>
1040  </font>
1041  </td>
1042  <td colspan="2">
1043  <font size="-1">
1044  <b>Incident free days: </b> 
1045  <xsl:value-of select="witsml:daysIncFree" /> 
1046  </font>
1047  </td>
1048  </tr>
1049  <tr>
1050  <td colspan="1" align="right">
1051  <font size="-1">
1052  <b>BOP pressure test: </b> 
1053  </font>
1054  </td>
1055  <td colspan="2">
1056  <font size="-1">
1057  <b>last: </b> 
1058  <xsl:value-of select="witsml:lastBopPresTest" /> 
1059  </font>
1060  </td>
1061  <td colspan="2">
1062  <font size="-1">
1063  <b>next: </b> 
1064  <xsl:value-of select="witsml:nextBopPresTest" /> 
1065  </font>
1066  </td>
1067  </tr>
1068  <tr>
1069  <td colspan="1" align="right">
1070  <font size="-1">
1071  <b>Press. tested to: </b> 
1072  </font>
1073  </td>
1074  <td colspan="1">
1075  <font size="-1">
1076  <b>stdpipe man.: </b> 
1077  <xsl:apply-templates select="witsml:presStdPipe" mode="valueWithUomRef"/>
1078  </font>
1079  </td>
1080  <td colspan="1">
1081  <font size="-1">
1082  <b>kelly hose: </b> 
1083  <xsl:apply-templates select="witsml:presKellyHose" mode="valueWithUomRef"/>
1084  </font>
1085  </td>
1086  <td colspan="1">
1087  <font size="-1">
1088  <b>bop div: </b> 
1089  <xsl:apply-templates select="witsml:presDiverter" mode="valueWithUomRef"/>
1090  </font>
1091  </td>
1092  <td colspan="1">
1093  <font size="-1">
1094  <b>bop ann.: </b> 
1095  <xsl:apply-templates select="witsml:presAnnular" mode="valueWithUomRef"/>
1096  </font>
1097  </td>
1098  <td colspan="1">
1099  <font size="-1">
1100  <b>bop ram: </b> 
1101  <xsl:apply-templates select="witsml:presRams" mode="valueWithUomRef"/>
1102  </font>
1103  </td>
1104  <td colspan="1">
1105  <font size="-1">
1106  <b>chkln: </b> 
1107  <xsl:apply-templates select="witsml:presChokeLine" mode="valueWithUomRef"/>
1108  </font>
1109  </td>
1110  <td colspan="2">
1111  <font size="-1">
1112  <b>chkman.: </b> 
1113  <xsl:apply-templates select="witsml:presChokeMan" mode="valueWithUomRef"/>
1114  </font>
1115  </td>
1116  </tr>
1117  <tr>
1118  <td colspan="1" align="right">
1119  <font size="-1">
1120  <b>Last: </b> 
1121  </font>
1122  </td>
1123  <td colspan="2">
1124  <font size="-1">
1125  <b>fire/boat drill: </b> 
1126  <xsl:value-of select="witsml:lastFireBoatDrill" /> 
1127  </font>
1128  </td>
1129  <td colspan="2">
1130  <font size="-1">
1131  <b>aband. drill: </b> 
1132  <xsl:value-of select="witsml:lastAbandonDrill" /> 
1133  </font>
1134  </td>
1135  <td colspan="2">
1136  <font size="-1">
1137  <b>rig inspect.: </b> 
1138  <xsl:value-of select="witsml:lastRigInspection" /> 
1139  </font>
1140  </td>
1141  </tr>
1142  <tr>
1143  <td colspan="1" align="right">
1144  <font size="-1">
1145  <b /> 
1146  </font>
1147  </td>
1148  <td colspan="2">
1149  <font size="-1">
1150  <b>safety mtg: </b> 
1151  <xsl:value-of select="witsml:lastSafetyMeeting" /> 
1152  </font>
1153  </td>
1154  <td colspan="2">
1155  <font size="-1">
1156  <b>trip drill: </b> 
1157  <xsl:value-of select="witsml:lastTripDrill" /> 
1158  </font>
1159  </td>
1160  <td colspan="2">
1161  <font size="-1">
1162  <b>diverter drill: </b> 
1163  <xsl:value-of select="witsml:lastDiverterDrill" /> 
1164  </font>
1165  </td>
1166  </tr>
1167  <tr>
1168  <td colspan="1" align="right">
1169  <font size="-1">
1170  <b /> 
1171  </font>
1172  </td>
1173  <td colspan="2">
1174  <font size="-1">
1175  <b>bop drill: </b> 
1176  <xsl:value-of select="witsml:lastBopDrill" /> 
1177  </font>
1178  </td>
1179  </tr>
1180  <tr>
1181  <td colspan="2">
1182  <font size="-1">
1183  <b>Govt Regul. Agency inspect.?: </b> 
1184  <xsl:value-of select="witsml:regAgencyInsp" /> 
1185  </font>
1186  </td>
1187  <td colspan="2">
1188  <font size="-1">
1189  <b>Non-compliance notice served?: </b> 
1190  <xsl:value-of select="witsml:nonComplianceIssued" /> 
1191  </font>
1192  </td>
1193  <td colspan="2">
1194  <font size="-1">
1195  <b>Num STOP Cards Issued: </b> 
1196  <xsl:value-of select="witsml:numStopCards" /> 
1197  </font>
1198  </td>
1199  </tr>
1200  <tr>
1201  <td colspan="1" align="right">
1202  <font size="-1">
1203  <b>Vol. discharged: </b> 
1204  </font>
1205  </td>
1206  <td colspan="1">
1207  <font size="-1">
1208  <b>daily mud: </b> 
1209  <xsl:apply-templates select="witsml:fluidDischarged" mode="valueWithUomRef"/>
1210  </font>
1211  </td>
1212  <td colspan="1">
1213  <font size="-1">
1214  <b>cuttings: </b> 
1215  <xsl:apply-templates select="witsml:volCtgDischarged" mode="valueWithUomRef"/>
1216  </font>
1217  </td>
1218  <td colspan="2">
1219  <font size="-1">
1220  <b>daily oil on cuttings: </b> 
1221  <xsl:apply-templates select="witsml:volOilCtgDischarge" mode="valueWithUomRef"/>
1222  </font>
1223  </td>
1224  <td colspan="2">
1225  <font size="-1">
1226  <b>vol. sanitary waste: </b> 
1227  <xsl:apply-templates select="witsml:wasteDischarged" mode="valueWithUomRef"/>
1228  </font>
1229  </td>
1230  </tr>
1231  <!--          Check for a incident information       
1232  --> 
1233  <xsl:for-each select="witsml:incident">
1234  <xsl:apply-templates select="." /> 
1235  </xsl:for-each>
1236  <tr>
1237  <td colspan="9">
1238  <font size="-1">
1239  <b>Comments: </b> 
1240  <xsl:value-of select="witsml:comments" /> 
1241  </font>
1242  </td>
1243  </tr>
1244  </xsl:template>
1245  <!--                                                                  drillingParams Template                                                 
1246  --> 
1247  <xsl:template match="witsml:drillingParams">
1248  <tr>
1249  <td colspan="3">
1250  <font size="-1">
1251  <b>Trip Reason: </b> 
1252  <xsl:value-of select="witsml:reasonTrip" /> 
1253  </font>
1254  </td>
1255  <td colspan="3">
1256  <font size="-1">
1257  <b>Objective BHA: </b> 
1258  <xsl:value-of select="witsml:objectiveBha" /> 
1259  </font>
1260  </td>
1261  <td colspan="3">
1262  <font size="-1">
1263  <b>UID Tub Assy: </b> 
1264  <xsl:value-of select="witsml:uidTubularAssy" /> 
1265  </font>
1266  </td>
1267  </tr>
1268  <tr>
1269  <td colspan="1" align="right">
1270  <font size="-1">
1271  <b>MD at: </b> 
1272  </font>
1273  </td>
1274  <td colspan="1">
1275  <font size="-1">
1276  <b>Start: </b> 
1277  <xsl:apply-templates select="witsml:mdHoleStart" mode="valueWithUomRef"/>
1278  </font>
1279  </td>
1280  <td colspan="1">
1281  <font size="-1">
1282  <b>Stop: </b> 
1283  <xsl:apply-templates select="witsml:mdHoleStop" mode="valueWithUomRef"/>
1284  </font>
1285  </td>
1286  <td colspan="1">
1287  <font size="-1">
1288  <b>Bit oper time: </b> 
1289  <xsl:apply-templates select="witsml:eTimOpBit" mode="valueWithUomRef"/>
1290  </font>
1291  </td>
1292  </tr>
1293  <tr>
1294  <td colspan="1" align="right">
1295  <font size="-1">
1296  <b>Hookload: </b> 
1297  </font>
1298  </td>
1299  <td colspan="1">
1300  <font size="-1">
1301  <b>Rotating: </b> 
1302  <xsl:apply-templates select="witsml:hkldRot" mode="valueWithUomRef"/>
1303  </font>
1304  </td>
1305  <td colspan="1">
1306  <font size="-1">
1307  <b>Overpull: </b> 
1308  <xsl:apply-templates select="witsml:overPull" mode="valueWithUomRef"/>
1309  </font>
1310  </td>
1311  <td colspan="1">
1312  <font size="-1">
1313  <b>Slackoff: </b> 
1314  <xsl:apply-templates select="witsml:slackOff" mode="valueWithUomRef"/>
1315  </font>
1316  </td>
1317  <td colspan="2">
1318  <font size="-1">
1319  <b>String moving up: </b> 
1320  <xsl:apply-templates select="witsml:hkldUp" mode="valueWithUomRef"/>
1321  </font>
1322  </td>
1323  <td colspan="2">
1324  <font size="-1">
1325  <b>String moving down: </b> 
1326  <xsl:apply-templates select="witsml:hkldUp" mode="valueWithUomRef"/>
1327  </font>
1328  </td>
1329  </tr>
1330  <tr>
1331  <td colspan="1" align="right">
1332  <font size="-1">
1333  <b>Torque on Bottom: </b> 
1334  </font>
1335  </td>
1336  <td colspan="1">
1337  <font size="-1">
1338  <b>Avg: </b> 
1339  <xsl:apply-templates select="witsml:tqOnBotAv" mode="valueWithUomRef"/>
1340  </font>
1341  </td>
1342  <td colspan="1">
1343  <font size="-1">
1344  <b>Max: </b> 
1345  <xsl:apply-templates select="witsml:tqOnBotMx" mode="valueWithUomRef"/>
1346  </font>
1347  </td>
1348  <td colspan="1">
1349  <font size="-1">
1350  <b>Min: </b> 
1351  <xsl:apply-templates select="witsml:tqOnBotMn" mode="valueWithUomRef"/>
1352  </font>
1353  </td>
1354  <td colspan="2">
1355  <font size="-1">
1356  <b>Avg Off Bottom: </b> 
1357  <xsl:apply-templates select="witsml:tqOffBotAv" mode="valueWithUomRef"/>
1358  </font>
1359  </td>
1360  <td colspan="2">
1361  <font size="-1">
1362  <b>Avg Torque Downhole: </b> 
1363  <xsl:apply-templates select="witsml:tqDhAv" mode="valueWithUomRef"/>
1364  </font>
1365  </td>
1366  </tr>
1367  <tr>
1368  <td colspan="1" align="right">
1369  <font size="-1">
1370  <b>Weight: </b> 
1371  </font>
1372  </td>
1373  <td colspan="2">
1374  <font size="-1">
1375  <b>Above Jar: </b> 
1376  <xsl:apply-templates select="witsml:wtAboveJar" mode="valueWithUomRef"/>
1377  </font>
1378  </td>
1379  <td colspan="2">
1380  <font size="-1">
1381  <b>Below Jar: </b> 
1382  <xsl:apply-templates select="witsml:wtBelowJar" mode="valueWithUomRef"/>
1383  </font>
1384  </td>
1385  <td colspan="1">
1386  <font size="-1">
1387  <b>Mud: </b> 
1388  <xsl:apply-templates select="witsml:wtMud" mode="valueWithUomRef"/>
1389  </font>
1390  </td>
1391  </tr>
1392  <tr>
1393  <td colspan="2" align="right">
1394  <font size="-1">
1395  <b>Pump flowrate: </b> 
1396  <xsl:apply-templates select="witsml:flowratePump" mode="valueWithUomRef"/>
1397  </font>
1398  </td>
1399  <td colspan="2">
1400  <font size="-1">
1401  <b>Bit Hydraulic: </b> 
1402  <xsl:apply-templates select="witsml:powBit" mode="valueWithUomRef"/>
1403  </font>
1404  </td>
1405  <td colspan="2">
1406  <font size="-1">
1407  <b>Bit nozzle avg velocity: </b> 
1408  <xsl:apply-templates select="witsml:velNozzleAv" mode="valueWithUomRef"/>
1409  </font>
1410  </td>
1411  <td colspan="2">
1412  <font size="-1">
1413  <b>Pressure drop in Bit: </b> 
1414  <xsl:apply-templates select="witsml:presDropBit" mode="valueWithUomRef"/>
1415  </font>
1416  </td>
1417  </tr>
1418  <tr>
1419  <td colspan="2" align="right">
1420  <font size="-1">
1421  <b>Time spent from start of bit run: </b> 
1422  </font>
1423  </td>
1424  <td colspan="1">
1425  <font size="-1">
1426  <b>On hold: </b> 
1427  <xsl:apply-templates select="witsml:cTimHold" mode="valueWithUomRef"/>
1428  </font>
1429  </td>
1430  <td colspan="1">
1431  <font size="-1">
1432  <b>Steering: </b> 
1433  <xsl:apply-templates select="witsml:cTimSteering" mode="valueWithUomRef"/>
1434  </font>
1435  </td>
1436  <td colspan="2">
1437  <font size="-1">
1438  <b>Rotary Drilling: </b> 
1439  <xsl:apply-templates select="witsml:cTimDrillRot" mode="valueWithUomRef"/>
1440  </font>
1441  </td>
1442  </tr>
1443  <tr>
1444  <td colspan="2">
1445  <font size="-1">
1446  <b /> 
1447  </font>
1448  </td>
1449  <td colspan="1">
1450  <font size="-1">
1451  <b>Slide Drilling: </b> 
1452  <xsl:apply-templates select="witsml:cTimDrillSlid" mode="valueWithUomRef"/>
1453  </font>
1454  </td>
1455  <td colspan="1">
1456  <font size="-1">
1457  <b>Circulating: </b> 
1458  <xsl:apply-templates select="witsml:cTimCirc" mode="valueWithUomRef"/>
1459  </font>
1460  </td>
1461  <td colspan="1">
1462  <font size="-1">
1463  <b>Reaming: </b> 
1464  <xsl:apply-templates select="witsml:cTimReam" mode="valueWithUomRef"/>
1465  </font>
1466  </td>
1467  </tr>
1468  <tr>
1469  <td colspan="2" align="right">
1470  <font size="-1">
1471  <b>Distance drilled while: </b> 
1472  </font>
1473  </td>
1474  <td colspan="1">
1475  <font size="-1">
1476  <b>rotating: </b> 
1477  <xsl:apply-templates select="witsml:distDrillRot" mode="valueWithUomRef"/>
1478  </font>
1479  </td>
1480  <td colspan="1">
1481  <font size="-1">
1482  <b>sliding: </b> 
1483  <xsl:apply-templates select="witsml:distDrillSlid" mode="valueWithUomRef"/>
1484  </font>
1485  </td>
1486  <td colspan="1">
1487  <font size="-1">
1488  <b>reamed: </b> 
1489  <xsl:apply-templates select="witsml:distReam" mode="valueWithUomRef"/>
1490  </font>
1491  </td>
1492  <td colspan="2">
1493  <font size="-1">
1494  <b>on hold: </b> 
1495  <xsl:apply-templates select="witsml:distHold" mode="valueWithUomRef"/>
1496  </font>
1497  </td>
1498  <td colspan="3">
1499  <font size="-1">
1500  <b>steering: </b> 
1501  <xsl:apply-templates select="witsml:distSteering" mode="valueWithUomRef"/>
1502  </font>
1503  </td>
1504  </tr>
1505  <tr>
1506  <td colspan="1" align="right">
1507  <font size="-1">
1508  <b>ROP: </b> 
1509  </font>
1510  </td>
1511  <td colspan="1">
1512  <font size="-1">
1513  <b>Avg: </b> 
1514  <xsl:apply-templates select="witsml:ropAv" mode="valueWithUomRef"/>
1515  </font>
1516  </td>
1517  <td colspan="1">
1518  <font size="-1">
1519  <b>Max: </b> 
1520  <xsl:apply-templates select="witsml:ropMx" mode="valueWithUomRef"/>
1521  </font>
1522  </td>
1523  <td colspan="1">
1524  <font size="-1">
1525  <b>Min: </b> 
1526  <xsl:apply-templates select="witsml:ropMn" mode="valueWithUomRef"/>
1527  </font>
1528  </td>
1529  <td colspan="1">
1530  <font size="-1">
1531  <b>Avg ROP: </b> 
1532  <xsl:apply-templates select="witsml:rpmAvDh" mode="valueWithUomRef"/>
1533  </font>
1534  </td>
1535  </tr>
1536  <tr>
1537  <td colspan="1" align="right">
1538  <font size="-1">
1539  <b>WOB: </b> 
1540  </font>
1541  </td>
1542  <td colspan="1">
1543  <font size="-1">
1544  <b>Avg: </b> 
1545  <xsl:apply-templates select="witsml:wobAv" mode="valueWithUomRef"/>
1546  </font>
1547  </td>
1548  <td colspan="1">
1549  <font size="-1">
1550  <b>Max: </b> 
1551  <xsl:apply-templates select="witsml:wobMx" mode="valueWithUomRef"/>
1552  </font>
1553  </td>
1554  <td colspan="1">
1555  <font size="-1">
1556  <b>Min: </b> 
1557  <xsl:apply-templates select="witsml:wobMn" mode="valueWithUomRef"/>
1558  </font>
1559  </td>
1560  <td colspan="1">
1561  <font size="-1">
1562  <b>Avg WOB: </b> 
1563  <xsl:apply-templates select="witsml:wobAvDh" mode="valueWithUomRef"/>
1564  </font>
1565  </td>
1566  </tr>
1567  <tr>
1568  <td colspan="1" align="right">
1569  <font size="-1">
1570  <b>Inclination: </b> 
1571  </font>
1572  </td>
1573  <td colspan="1">
1574  <font size="-1">
1575  <b>@ Start MD: </b> 
1576  <xsl:apply-templates select="witsml:wobAv" mode="valueWithUomRef"/>
1577  </font>
1578  </td>
1579  <td colspan="1">
1580  <font size="-1">
1581  <b>Max: </b> 
1582  <xsl:apply-templates select="witsml:wobMx" mode="valueWithUomRef"/>
1583  </font>
1584  </td>
1585  <td colspan="1">
1586  <font size="-1">
1587  <b>Min: </b> 
1588  <xsl:apply-templates select="witsml:wobMn" mode="valueWithUomRef"/>
1589  </font>
1590  </td>
1591  <td colspan="1">
1592  <font size="-1">
1593  <b>@ Stop MD: </b> 
1594  <xsl:apply-templates select="witsml:wobAvDh" mode="valueWithUomRef"/>
1595  </font>
1596  </td>
1597  <td colspan="4">
1598  <font size="-1">
1599  <b>Max mud temp downhole</b> 
1600  <xsl:apply-templates select="witsml:tempMudDhMx" mode="valueWithUomRef"/>
1601  </font>
1602  </td>
1603  </tr>
1604  <tr>
1605  <td colspan="1" align="right">
1606  <font size="-1">
1607  <b>Azimuth @</b> 
1608  </font>
1609  </td>
1610  <td colspan="1">
1611  <font size="-1">
1612  <b>Top MD</b> 
1613  <xsl:apply-templates select="witsml:aziTop" mode="valueWithUomRef"/>
1614  </font>
1615  </td>
1616  <td colspan="1">
1617  <font size="-1">
1618  <b>Bot. MD</b> 
1619  <xsl:apply-templates select="witsml:aziBottom" mode="valueWithUomRef"/>
1620  </font>
1621  </td>
1622  <td colspan="2">
1623  <font size="-1">
1624  <b>Avg Pump Press.</b> 
1625  <xsl:apply-templates select="witsml:presPumpAv" mode="valueWithUomRef"/>
1626  </font>
1627  </td>
1628  <td colspan="4">
1629  <font size="-1">
1630  <b>Flowrate @ bit</b> 
1631  <xsl:apply-templates select="witsml:flowrateBit" mode="valueWithUomRef"/>
1632  </font>
1633  </td>
1634  </tr>
1635  <tr>
1636  <td /> 
1637  <td colspan="8">
1638  <font size="-1">
1639  <b>Comments</b> 
1640  <xsl:value-of select="witsml:comments" /> 
1641  </font>
1642  </td>
1643  </tr>
1644  </xsl:template>
1645  <!--                                                                  bulk Template                                                   
1646  --> 
1647  <xsl:template match="witsml:bulk">
1648  <tr>
1649  <td colspan="2">
1650  <font size="-1">
1651  <b>Item: </b> 
1652  <xsl:value-of select="witsml:name" /> 
1653  </font>
1654  </td>
1655  <td colspan="1">
1656  <font size="-1">
1657     Wt Per Item: <xsl:apply-templates select="witsml:itemWtPerUnit" mode="valueWithUomRef"/>
1658  </font>
1659  </td>
1660  <td colspan="1">
1661  <font size="-1">
1662     Vol Per Item: <xsl:apply-templates select="witsml:itemVolPerUnit" mode="valueWithUomRef"/>
1663  </font>
1664  </td>
1665  <td colspan="2">
1666  <font size="-1">
1667  <b>Price per unit: </b> 
1668  <xsl:value-of select="witsml:pricePerUnit" /> 
1669  <xsl:text> </xsl:text>
1670  <xsl:value-of select="witsml:pricePerUnit/@currency" />
1671  </font>
1672  </td>
1673  <td colspan="2">
1674  <font size="-1">
1675  <b>Daily Cost: </b> 
1676  <xsl:value-of select="witsml:costItem" /> 
1677  <xsl:text> </xsl:text>
1678  <xsl:value-of select="witsml:costItem/@currency" />
1679  </font>
1680  </td>
1681  </tr>
1682  <tr>
1683  <td colspan="1" align="right">
1684  <font size="-1">
1685  <b>Qty: </b> 
1686  </font>
1687  </td>
1688  <td colspan="1">
1689  <font size="-1">
1690  <b>at start: </b> 
1691  <xsl:value-of select="witsml:qtyStart" /> 
1692  </font>
1693  </td>
1694  <td colspan="1">
1695  <font size="-1">
1696  <b>adjust: </b> 
1697  <xsl:value-of select="witsml:qtyAdjustment" /> 
1698  </font>
1699  </td>
1700  <td colspan="1">
1701  <font size="-1">
1702  <b>recvd: </b> 
1703  <xsl:value-of select="witsml:qtyReceived" /> 
1704  </font>
1705  </td>
1706  <td colspan="1">
1707  <font size="-1">
1708  <b>returned: </b> 
1709  <xsl:value-of select="witsml:qtyReturned" /> 
1710  </font>
1711  </td>
1712  <td colspan="1">
1713  <font size="-1">
1714  <b>used: </b> 
1715  <xsl:value-of select="witsml:qtyUsed" /> 
1716  </font>
1717  </td>
1718  <td colspan="3">
1719  <font size="-1">
1720  <b>on location (end of rpt): </b> 
1721  <xsl:value-of select="witsml:qtyOnLocation" /> 
1722  </font>
1723  </td>
1724  </tr>
1725  </xsl:template>
1726  <!--                                                                  fluid Template                                                 
1727  --> 
1728  <xsl:template match="witsml:fluid">
1729  <tr>
1730  <td colspan="9" align="center">
1731  <font size="+1" color="blue">Fluid Properties</font>  (uid: <xsl:value-of select="@uid" />)
1732  </td>
1733  </tr>
1734  <tr>
1735  <td colspan="3">
1736  <font size="-1">
1737  <b>Company: </b> 
1738  <xsl:value-of select="witsml:company" /> 
1739  </font>
1740  </td>
1741  <td colspan="3">
1742  <font size="-1">
1743  <b>Engineer: </b> 
1744  <xsl:value-of select="witsml:engineer" /> 
1745  </font>
1746  </td>
1747  </tr>
1748  <tr>
1749  <td colspan="3">
1750  <font size="-1">
1751  <b>Type: </b> 
1752  <xsl:value-of select="witsml:type" /> 
1753  </font>
1754  </td>
1755  <td colspan="3">
1756  <font size="-1">
1757  <b>Sample location: </b> 
1758  <xsl:value-of select="witsml:locationSample" /> 
1759  </font>
1760  </td>
1761  </tr>
1762  <tr>
1763  <td colspan="2">
1764  <font size="-1">
1765  <b>Density: </b> 
1766  <xsl:apply-templates select="witsml:density" mode="valueWithUomRef"/>
1767  </font>
1768  </td>
1769  <td colspan="2">
1770  <font size="-1">
1771  <b>Funnel Viscosity: </b> 
1772  <xsl:apply-templates select="witsml:visFunnel" mode="valueWithUomRef"/>
1773  </font>
1774  </td>
1775  <td colspan="2">
1776  <font size="-1">
1777  <b>Funnel Viscosity Temp: </b> 
1778  <xsl:apply-templates select="witsml:tempVis" mode="valueWithUomRef"/>
1779  </font>
1780  </td>
1781  <td colspan="2">
1782  <font size="-1">
1783  <b>Plastic Viscosity: </b> 
1784  <xsl:apply-templates select="witsml:pv" mode="valueWithUomRef"/>
1785  </font>
1786  </td>
1787  </tr>
1788  <tr>
1789  <td colspan="2">
1790  <font size="-1">
1791  <b>Yield Point: </b> 
1792  <xsl:apply-templates select="witsml:yp" mode="valueWithUomRef"/>
1793  </font>
1794  </td>
1795  <td colspan="2">
1796  <font size="-1">
1797  <b>10 sec. gels: </b> 
1798  <xsl:apply-templates select="witsml:gel10Sec" mode="valueWithUomRef"/>
1799  </font>
1800  </td>
1801  <td colspan="2">
1802  <font size="-1">
1803  <b>10 min. gels: </b> 
1804  <xsl:apply-templates select="witsml:gel10Min" mode="valueWithUomRef"/>
1805  </font>
1806  </td>
1807  <td colspan="2">
1808  <font size="-1">
1809  <b>30 min. gels: </b> 
1810  <xsl:apply-templates select="witsml:gel30Min" mode="valueWithUomRef"/>
1811  </font>
1812  </td>
1813  </tr>
1814  <tr>
1815  <td colspan="2">
1816  <font size="-1">
1817  <b>Filter cake thickness: </b> 
1818  <xsl:apply-templates select="witsml:filterCakeLtlp" mode="valueWithUomRef"/>
1819  </font>
1820  </td>
1821  <td colspan="2">
1822  <font size="-1">
1823  <b>API water loss: </b> 
1824  <xsl:apply-templates select="witsml:filtrateLtlp" mode="valueWithUomRef"/>
1825  </font>
1826  </td>
1827  </tr>
1828  <tr>
1829  <td colspan="1" align="right">
1830  <font size="-1">
1831  <b>HTHP: </b> 
1832  </font>
1833  </td>
1834  <td colspan="1">
1835  <font size="-1">
1836  <b>Temp.: </b> 
1837  <xsl:apply-templates select="witsml:tempHthp" mode="valueWithUomRef"/>
1838  </font>
1839  </td>
1840  <td colspan="1">
1841  <font size="-1">
1842  <b>Pressure: </b> 
1843  <xsl:apply-templates select="witsml:presHthp" mode="valueWithUomRef"/>
1844  </font>
1845  </td>
1846  <td colspan="1">
1847  <font size="-1">
1848  <b>Filtrate: </b> 
1849  <xsl:apply-templates select="witsml:filtrateHthp" mode="valueWithUomRef"/>
1850  </font>
1851  </td>
1852  <td colspan="2">
1853  <font size="-1">
1854  <b>Filter cake thickness: </b> 
1855  <xsl:apply-templates select="witsml:filterCakeHthp" mode="valueWithUomRef"/>
1856  </font>
1857  </td>
1858  </tr>
1859  <tr>
1860  <td colspan="1" align="right">
1861  <font size="-1">
1862  <b>Percent: </b> 
1863  </font>
1864  </td>
1865  <td colspan="2">
1866  <font size="-1">
1867  <b>Solids from retort: </b> 
1868  <xsl:apply-templates select="witsml:solidsPc" mode="valueWithUomRef"/>
1869  </font>
1870  </td>
1871  <td colspan="1">
1872  <font size="-1">
1873  <b>Water: </b> 
1874  <xsl:apply-templates select="witsml:waterPc" mode="valueWithUomRef"/>
1875  </font>
1876  </td>
1877  <td colspan="1">
1878  <font size="-1">
1879  <b>Oil: </b> 
1880  <xsl:apply-templates select="witsml:oilPc" mode="valueWithUomRef"/>
1881  </font>
1882  </td>
1883  <td colspan="1">
1884  <font size="-1">
1885  <b>Sand: </b> 
1886  <xsl:apply-templates select="witsml:sandPc" mode="valueWithUomRef"/>
1887  </font>
1888  </td>
1889  <td colspan="2">
1890  <font size="-1">
1891  <b>Low grav solids: </b> 
1892  <xsl:apply-templates select="witsml:solidsLowGravPc" mode="valueWithUomRef"/>
1893  </font>
1894  </td>
1895  </tr>
1896  <tr>
1897  <td colspan="1" align="right">
1898  <font size="-1">
1899  <b /> 
1900  </font>
1901  </td>
1902  <td colspan="1">
1903  <font size="-1">
1904  <b>Solids (calc.): </b> 
1905  <xsl:apply-templates select="witsml:solidsCalcPc" mode="valueWithUomRef"/>
1906  </font>
1907  </td>
1908  <td colspan="1">
1909  <font size="-1">
1910  <b>Barite: </b> 
1911  <xsl:apply-templates select="witsml:baritePc" mode="valueWithUomRef"/>
1912  </font>
1913  </td>
1914  <td colspan="1">
1915  <font size="-1">
1916  <b>Brine: </b> 
1917  <xsl:apply-templates select="witsml:brinePc" mode="valueWithUomRef"/>
1918  </font>
1919  </td>
1920  </tr>
1921  <tr>
1922  <td colspan="2">
1923  <font size="-1">
1924  <b>Loss Circ Matl: </b> 
1925  <xsl:apply-templates select="witsml:lcm" mode="valueWithUomRef"/>
1926  </font>
1927  </td>
1928  <td colspan="2">
1929  <font size="-1">
1930  <b>CEC of Mud Sample meas. by MBT: </b> 
1931  <xsl:apply-templates select="witsml:mbt" mode="valueWithUomRef"/>
1932  </font>
1933  </td>
1934  <td colspan="1">
1935  <font size="-1">
1936  <b>Mud pH: </b> 
1937  <xsl:apply-templates select="witsml:ph" mode="valueWithUomRef"/>
1938  </font>
1939  </td>
1940  <td colspan="2">
1941  <font size="-1">
1942  <b>Mud pH meas. temp: </b> 
1943 <xsl:apply-templates select="witsml:tempPh" mode="valueWithUomRef"/>
1944  </font>
1945  </td>
1946  </tr>
1947  <tr>
1948  <td colspan="2" align="right">
1949  <font size="-1">
1950  <b>Phenolpthalein alkalinity: </b> 
1951  </font>
1952  </td>
1953  <td colspan="2">
1954  <font size="-1">
1955  <b>of whole mud: </b> 
1956  <xsl:apply-templates select="witsml:pm" mode="valueWithUomRef"/>
1957  </font>
1958  </td>
1959  <td colspan="2">
1960  <font size="-1">
1961  <b>of mud filtrate: </b> 
1962  <xsl:apply-templates select="witsml:pmFiltrate" mode="valueWithUomRef"/>
1963  </font>
1964  </td>
1965  </tr>
1966  <tr>
1967  <td colspan="2">
1968  <font size="-1">
1969  <b>Methyl orange alkalinity of filtrate: </b> 
1970  <xsl:apply-templates select="witsml:mf" mode="valueWithUomRef"/>
1971  </font>
1972  </td>
1973  <td colspan="2">
1974  <font size="-1">
1975  <b>Mud alkalinity P1: </b> 
1976  <xsl:apply-templates select="witsml:alkalinityP1" mode="valueWithUomRef"/>
1977  </font>
1978  </td>
1979  <td colspan="2">
1980  <font size="-1">
1981  <b>Mud alkalinity P2: </b> 
1982  <xsl:apply-templates select="witsml:alkalinityP2" mode="valueWithUomRef"/>
1983  </font>
1984  </td>
1985  </tr>
1986  <tr>
1987  <td colspan="1" align="right">
1988  <font size="-1">
1989  <b>Content: </b> 
1990  </font>
1991  </td>
1992  <td colspan="1">
1993  <font size="-1">
1994  <b>Chloride: </b> 
1995  <xsl:apply-templates select="witsml:chloride" mode="valueWithUomRef"/>
1996  </font>
1997  </td>
1998  <td colspan="1">
1999  <font size="-1">
2000  <b>Calcium: </b> 
2001  <xsl:apply-templates select="witsml:calcium" mode="valueWithUomRef"/>
2002  </font>
2003  </td>
2004  <td colspan="1">
2005  <font size="-1">
2006  <b>Magnesium: </b> 
2007  <xsl:apply-templates select="witsml:magnesium" mode="valueWithUomRef"/>
2008  </font>
2009  </td>
2010  <td colspan="1">
2011  <font size="-1">
2012  <b>Potassium: </b> 
2013  <xsl:apply-templates select="witsml:potassium" mode="valueWithUomRef"/>
2014  </font>
2015  </td>
2016  <td colspan="1">
2017  <font size="-1">
2018  <b>Lime: </b> 
2019  <xsl:apply-templates select="witsml:lime" mode="valueWithUomRef"/>
2020  </font>
2021  </td>
2022  <td colspan="1">
2023  <font size="-1">
2024  <b>Sulfide: </b> 
2025  <xsl:apply-templates select="witsml:sulfide" mode="valueWithUomRef"/>
2026  </font>
2027  </td>
2028  </tr>
2029  <tr>
2030  <td colspan="2">
2031  <font size="-1">
2032  <b>Emulsion stability: </b> 
2033  <xsl:apply-templates select="witsml:electStab" mode="valueWithUomRef"/>
2034  </font>
2035  </td>
2036  <td colspan="2">
2037  <font size="-1">
2038  <b>Calcium chloride: </b> 
2039  <xsl:apply-templates select="witsml:calciumChloride" mode="valueWithUomRef"/>
2040  </font>
2041  </td>
2042  <td colspan="2">
2043  <font size="-1">
2044  <b>Avg spec grav of solids: </b> 
2045  <xsl:apply-templates select="witsml:asg" mode="valueWithUomRef"/>
2046  </font>
2047  </td>
2048  <td colspan="2">
2049  <font size="-1">
2050  <b>Solid high grav.: </b> 
2051  <xsl:apply-templates select="witsml:solidsHiGravPc" mode="valueWithUomRef"/>
2052  </font>
2053  </td>
2054  </tr>
2055  <tr>
2056  <td colspan="2">
2057  <font size="-1">
2058  <b>Polymer in mud: </b> 
2059  <xsl:apply-templates select="witsml:polymer" mode="valueWithUomRef"/>
2060  </font>
2061  </td>
2062  <td colspan="4">
2063  <font size="-1">
2064  <b>Type of polymers: </b> 
2065  <xsl:value-of select="witsml:polyType" /> 
2066  </font>
2067  </td>
2068  </tr>
2069  <tr>
2070  <td colspan="2">
2071  <font size="-1">
2072  <b>Solids corr. for chloride: </b> 
2073  <xsl:apply-templates select="witsml:solCorPc" mode="valueWithUomRef"/>
2074  </font>
2075  </td>
2076  <td colspan="2">
2077  <font size="-1">
2078  <b>Oil cuttings: </b> 
2079 <xsl:apply-templates select="witsml:oilCtg" mode="valueWithUomRef"/>
2080  </font>
2081  </td>
2082  <td colspan="2">
2083  <font size="-1">
2084  <b>Calcium hardness: </b> 
2085  <xsl:apply-templates select="witsml:hardnessCa" mode="valueWithUomRef"/>
2086  </font>
2087  </td>
2088  </tr>
2089  <!--          Check for Fluid Property Common Data                   
2090  --> 
2091  <tr>
2092  <td colspan="8">
2093  <font size="-1">
2094  <b>Fluid Property Comments: </b> 
2095  <xsl:value-of select="witsml:comments" /> 
2096  </font>
2097  </td>
2098  </tr>
2099  <!--          Check for Rheometer Readings   
2100  --> 
2101  <tr>
2102  <td colspan="9" align="center">
2103  <font size="+1" color="blue">Rheometer Readings</font> 
2104  </td>
2105  </tr>
2106  <xsl:for-each select="witsml:rheometer">
2107  <xsl:apply-templates select="." /> 
2108  </xsl:for-each>
2109  </xsl:template>
2110
2111  <!--                                                                  rheometer Template                                                     
2112  --> 
2113  <xsl:template match="witsml:rheometer">
2114  <tr>
2115  <td colspan="1" align="right">
2116  <font size="-1">
2117  <b>Reading: </b>
2118  </font>
2119  </td>
2120  <td colspan="2" align="center">
2121  <font size="-1">
2122  <b>uid: </b> 
2123  <xsl:value-of select="@uid" />
2124  </font>
2125  </td>
2126  <td colspan="2" align="center">
2127  <font size="-1">
2128  <b>Temperature: </b> 
2129  <xsl:apply-templates select="witsml:tempRheom" mode="valueWithUomRef"/>
2130  </font>
2131  </td>
2132  <td colspan="2" align="center">
2133  <font size="-1">
2134  <b>Pressure: </b> 
2135  <xsl:apply-templates select="witsml:presRheom" mode="valueWithUomRef"/>
2136  </font>
2137  </td>
2138  </tr>
2139  <tr>
2140  <td colspan="1" align="right">
2141  <font size="-1">
2142  <b>Viscometer: </b> 
2143  </font>
2144  </td>
2145  <td colspan="1">
2146  <font size="-1">
2147  <b>3 RPM: </b> 
2148  <xsl:value-of select="witsml:vis3Rpm" /> 
2149  </font>
2150  </td>
2151  <td colspan="1">
2152  <font size="-1">
2153  <b>6 RPM: </b> 
2154  <xsl:value-of select="witsml:vis6Rpm" /> 
2155  </font>
2156  </td>
2157  <td colspan="1">
2158  <font size="-1">
2159  <b>100 RPM: </b> 
2160  <xsl:value-of select="witsml:vis100Rpm" /> 
2161  </font>
2162  </td>
2163  <td colspan="1">
2164  <font size="-1">
2165  <b>200 RPM: </b> 
2166  <xsl:value-of select="witsml:vis200Rpm" /> 
2167  </font>
2168  </td>
2169  <td colspan="1">
2170  <font size="-1">
2171  <b>300 RPM: </b> 
2172  <xsl:value-of select="witsml:vis300Rpm" /> 
2173  </font>
2174  </td>
2175  <td colspan="1">
2176  <font size="-1">
2177  <b>600 RPM: </b> 
2178  <xsl:value-of select="witsml:vis600Rpm" /> 
2179  </font>
2180  </td>
2181  </tr>
2182  </xsl:template>
2183  <!--                                                                  incident Template                                                       
2184  --> 
2185  <xsl:template match="witsml:incident">
2186  <tr>
2187  <td colspan="1" align="right">
2188  <font size="-1">
2189  <b>Incident: </b> 
2190  </font>
2191  </td>
2192  <td colspan="2">
2193  <font size="-1">
2194  <b>Occurred: </b> 
2195  <xsl:value-of select="witsml:dTim" /> 
2196  </font>
2197  </td>
2198  <td colspan="2">
2199  <font size="-1">
2200  <b>Reporter: </b> 
2201  <xsl:value-of select="witsml:reporter" /> 
2202  </font>
2203  </td>
2204  </tr>
2205  <tr>
2206  <td colspan="1">
2207  <font size="-1">
2208  <b /> 
2209  </font>
2210  </td>
2211  <td colspan="1" align="right">
2212  <font size="-1">
2213  <b>No. of personnel: </b> 
2214  </font>
2215  </td>
2216  <td colspan="1">
2217  <font size="-1">
2218  <b>minor injuries: </b> 
2219  <xsl:value-of select="witsml:numMinorInjury" /> 
2220  </font>
2221  </td>
2222  <td colspan="1">
2223  <font size="-1">
2224  <b>major injuries: </b> 
2225  <xsl:value-of select="witsml:numMajorInjury" /> 
2226  </font>
2227  </td>
2228  <td colspan="1">
2229  <font size="-1">
2230  <b>killed: </b> 
2231  <xsl:value-of select="witsml:numFatality" /> 
2232  </font>
2233  </td>
2234  <td colspan="2">
2235  <font size="-1">
2236  <b>Near misses?: </b> 
2237  <xsl:value-of select="witsml:isNearMiss" /> 
2238  </font>
2239  </td>
2240  </tr>
2241  <tr>
2242  <td colspan="1">
2243  <font size="-1">
2244  <b /> 
2245  </font>
2246  </td>
2247  <td colspan="2">
2248  <font size="-1">
2249  <b>Locn: </b> 
2250  <xsl:value-of select="witsml:descLocation" /> 
2251  </font>
2252  </td>
2253  <td colspan="2">
2254  <font size="-1">
2255  <b>Resp. company: </b> 
2256  <xsl:value-of select="witsml:responsibleCompany" /> 
2257  </font>
2258  </td>
2259  <td colspan="2">
2260  <font size="-1">
2261  <b>Lost time: </b> 
2262  <xsl:apply-templates select="witsml:eTimLostGross" mode="valueWithUomRef"/>
2263  </font>
2264  </td>
2265  <td colspan="2">
2266  <font size="-1">
2267  <b>Cost: </b> 
2268  <xsl:apply-templates select="witsml:costLostGross" mode="valueWithUomRef"/>
2269  </font>
2270  </td>
2271  </tr>
2272  <tr>
2273  <td colspan="1">
2274  <font size="-1">
2275  <b /> 
2276  </font>
2277  </td>
2278  <td colspan="8">
2279  <font size="-1">
2280  <b>Description: </b> 
2281  <xsl:value-of select="witsml:descAccident" /> 
2282  </font>
2283  </td>
2284  </tr>
2285  <tr>
2286  <td colspan="1">
2287  <font size="-1">
2288  <b /> 
2289  </font>
2290  </td>
2291  <td colspan="8">
2292  <font size="-1">
2293  <b>Remedial action: </b> 
2294  <xsl:value-of select="witsml:remedialActionDesc" /> 
2295  </font>
2296  </td>
2297  </tr>
2298  <tr>
2299  <td colspan="1">
2300  <font size="-1">
2301  <b /> 
2302  </font>
2303  </td>
2304  <td colspan="8">
2305  <font size="-1">
2306  <b>Cause: </b> 
2307  <xsl:value-of select="witsml:causeDesc" /> 
2308  </font>
2309  </td>
2310  </tr>
2311  </xsl:template>
2312  <!--                                                                  mudInventory Template                                                   
2313  --> 
2314  <xsl:template match="witsml:mudInventory">
2315  <tr>
2316  <td colspan="2">
2317  <font size="-1">
2318  <b>Product: </b> 
2319  <xsl:value-of select="witsml:name" /> 
2320  </font>
2321  </td>
2322  <td colspan="1">
2323  <font size="-1">
2324     Wt Per Item: <xsl:apply-templates select="witsml:itemWtPerUnit" mode="valueWithUomRef"/>
2325  </font>
2326  </td>
2327  <td colspan="1">
2328  <font size="-1">
2329     Vol Per Item: <xsl:apply-templates select="witsml:itemVolPerUnit" mode="valueWithUomRef"/>
2330  </font>
2331  </td>
2332  <td colspan="2">
2333  <font size="-1">
2334  <b>Price per unit: </b> 
2335  <xsl:value-of select="witsml:pricePerUnit" />
2336  <xsl:text> </xsl:text>
2337  <xsl:value-of select="witsml:pricePerUnit/@currency" />
2338  </font>
2339  </td>
2340  <td colspan="2">
2341  <font size="-1">
2342  <b>Daily Cost: </b> 
2343  <xsl:value-of select="witsml:costItem" /> 
2344  <xsl:text> </xsl:text>
2345  <xsl:value-of select="witsml:costItem/@currency" />
2346  </font>
2347  </td>
2348  </tr>
2349  <tr>
2350  <td colspan="1" align="right">
2351  <font size="-1">
2352  <b>Qty: </b> 
2353  </font>
2354  </td>
2355  <td colspan="1">
2356  <font size="-1">
2357  <b>at start: </b> 
2358  <xsl:value-of select="witsml:qtyStart" /> 
2359  </font>
2360  </td>
2361  <td colspan="1">
2362  <font size="-1">
2363  <b>adjust: </b> 
2364  <xsl:value-of select="witsml:qtyAdjustment" /> 
2365  </font>
2366  </td>
2367  <td colspan="1">
2368  <font size="-1">
2369  <b>recvd: </b> 
2370  <xsl:value-of select="witsml:qtyReceived" /> 
2371  </font>
2372  </td>
2373  <td colspan="1">
2374  <font size="-1">
2375  <b>returned: </b> 
2376  <xsl:value-of select="witsml:qtyReturned" /> 
2377  </font>
2378  </td>
2379  <td colspan="1">
2380  <font size="-1">
2381  <b>used: </b> 
2382  <xsl:value-of select="witsml:qtyUsed" /> 
2383  </font>
2384  </td>
2385  <td colspan="3">
2386  <font size="-1">
2387  <b>on location (end of rpt): </b> 
2388  <xsl:value-of select="witsml:qtyOnLocation" /> 
2389  </font>
2390  </td>
2391  </tr>
2392  </xsl:template>
2393  <!--                                                                  mudVolume Template                                                     
2394  --> 
2395  <xsl:template match="witsml:mudVolume">
2396  <tr>
2397  <td colspan="2" align="right">
2398  <font size="-1">
2399  <b>Vol. of mud: </b> 
2400  </font>
2401  </td>
2402  <td colspan="1">
2403  <font size="-1">
2404  <b>at start: </b> 
2405  <xsl:apply-templates select="witsml:volTotMudStart" mode="valueWithUomRef"/>
2406  </font>
2407  </td>
2408  <td colspan="1">
2409  <font size="-1">
2410  <b>at end: </b> 
2411  <xsl:apply-templates select="witsml:volTotMudEnd" mode="valueWithUomRef"/>
2412  </font>
2413  </td>
2414  <td colspan="1">
2415  <font size="-1">
2416  <b>dumped: </b> 
2417  <xsl:apply-templates select="witsml:volMudDumped" mode="valueWithUomRef"/>
2418  </font>
2419  </td>
2420  <td colspan="1">
2421  <font size="-1">
2422  <b>received: </b> 
2423  <xsl:apply-templates select="witsml:volMudReceived" mode="valueWithUomRef"/>
2424  </font>
2425  </td>
2426  <td colspan="1">
2427  <font size="-1">
2428  <b>returned: </b> 
2429  <xsl:apply-templates select="witsml:volMudReturned" mode="valueWithUomRef"/>
2430  </font>
2431  </td>
2432  <td colspan="2">
2433  <font size="-1">
2434  <b>built: </b> 
2435  <xsl:apply-templates select="witsml:volMudBuilt" mode="valueWithUomRef"/>
2436  </font>
2437  </td>
2438  </tr>
2439  <tr>
2440  <td colspan="2" align="right">
2441  <font size="-1">
2442  <b>Vol. of mud contained in</b> 
2443  </font>
2444  </td>
2445  <td colspan="1">
2446  <font size="-1">
2447  <b>act. string: </b> 
2448  <xsl:apply-templates select="witsml:volMudString" mode="valueWithUomRef"/>
2449  </font>
2450  </td>
2451  <td colspan="1">
2452  <font size="-1">
2453  <b>casing: </b> 
2454  <xsl:apply-templates select="witsml:volMudCasing" mode="valueWithUomRef"/>
2455  </font>
2456  </td>
2457  <td colspan="1">
2458  <font size="-1">
2459  <b>open hole: </b> 
2460  <xsl:apply-templates select="witsml:volMudHole" mode="valueWithUomRef"/>
2461  </font>
2462  </td>
2463  <td colspan="1">
2464  <font size="-1">
2465  <b>riser: </b> 
2466  <xsl:apply-templates select="witsml:volMudRiser" mode="valueWithUomRef"/>
2467  </font>
2468  </td>
2469  </tr>
2470  <!--          Check for mudLosses information
2471  --> 
2472  <xsl:for-each select="witsml:mudLosses">
2473  <xsl:apply-templates select="." /> 
2474  </xsl:for-each>
2475  </xsl:template>
2476  <!--                                                                  mudLosses Template                                                     
2477  --> 
2478  <xsl:template match="witsml:mudLosses">
2479  <tr>
2480  <td colspan="2" align="right">
2481  <font size="-1">
2482  <b>Vol. mud lost at surface at/in: </b> 
2483  </font>
2484  </td>
2485  <td colspan="1">
2486  <font size="-1">
2487  <b>shakers: </b> 
2488  <xsl:apply-templates select="witsml:volLostShakerSurf" mode="valueWithUomRef"/>
2489  </font>
2490  </td>
2491  <td colspan="1">
2492  <font size="-1">
2493  <b>cleaning eq.: </b> 
2494  <xsl:apply-templates select="witsml:volLostMudCleanerSurf" mode="valueWithUomRef"/>
2495  </font>
2496  </td>
2497  <td colspan="1">
2498  <font size="-1">
2499  <b>pit room: </b> 
2500  <xsl:apply-templates select="witsml:volLostPitsSurf" mode="valueWithUomRef"/>
2501  </font>
2502  </td>
2503  <td colspan="1">
2504  <font size="-1">
2505  <b>tripping: </b> 
2506  <xsl:apply-templates select="witsml:volLostTrippingSurf" mode="valueWithUomRef"/>
2507  </font>
2508  </td>
2509  <td colspan="1">
2510  <font size="-1">
2511  <b>other: </b> 
2512  <xsl:apply-templates select="witsml:volLostOtherSurf" mode="valueWithUomRef"/>
2513  </font>
2514  </td>
2515  <td colspan="1">
2516  <font size="-1">
2517  <b>total: </b> 
2518  <xsl:apply-templates select="witsml:volTotMudLostSurf" mode="valueWithUomRef"/>
2519  </font>
2520  </td>
2521  </tr>
2522  <tr>
2523  <td colspan="2" align="right">
2524  <font size="-1">
2525  <b>Vol. mud lost downhole: </b> 
2526  </font>
2527  </td>
2528  <td colspan="1">
2529  <font size="-1">
2530  <b>circ.: </b> 
2531  <xsl:apply-templates select="witsml:volLostCircHole" mode="valueWithUomRef"/>
2532  </font>
2533  </td>
2534  <td colspan="1">
2535  <font size="-1">
2536  <b>run csg: </b> 
2537  <xsl:apply-templates select="witsml:volLostCsgHole" mode="valueWithUomRef"/>
2538  </font>
2539  </td>
2540  <td colspan="1">
2541  <font size="-1">
2542  <b>cement.: </b> 
2543  <xsl:apply-templates select="witsml:volLostCmtHole" mode="valueWithUomRef"/>
2544  </font>
2545  </td>
2546  <td colspan="1">
2547  <font size="-1">
2548  <b>behind csg: </b> 
2549  <xsl:apply-templates select="witsml:volLostBhdCsgHole" mode="valueWithUomRef"/>
2550  </font>
2551  </td>
2552  <td colspan="1">
2553  <font size="-1">
2554  <b>abandon: </b> 
2555  <xsl:apply-templates select="witsml:volLostAbandonHole" mode="valueWithUomRef"/>
2556  </font>
2557  </td>
2558  <td colspan="1">
2559  <font size="-1">
2560  <b>other: </b> 
2561  <xsl:apply-templates select="witsml:volLostOtherHole" mode="valueWithUomRef"/>
2562  </font>
2563  </td>
2564  <td colspan="1">
2565  <font size="-1">
2566  <b>total: </b> 
2567  <xsl:apply-templates select="witsml:volTotMudLostHole" mode="valueWithUomRef"/>
2568  </font>
2569  </td>
2570  </tr>
2571  </xsl:template>
2572  <!--                                                                  personnel Template                                                     
2573  --> 
2574  <xsl:template match="witsml:personnel">
2575  <tr>
2576  <td colspan="2">
2577  <font size="-1">
2578  <b>Company: </b> 
2579  <xsl:value-of select="witsml:company" /> 
2580  </font>
2581  </td>
2582  <td colspan="3">
2583  <font size="-1">
2584  <b>Serv. provided: </b> 
2585  <xsl:value-of select="witsml:typeService" /> 
2586  </font>
2587  </td>
2588  <td colspan="2">
2589  <font size="-1">
2590  <b>No. people: </b> 
2591  <xsl:value-of select="witsml:numPeople" /> 
2592  </font>
2593  </td>
2594  <td colspan="2">
2595  <font size="-1">
2596  <b>Tot. hrs worked: </b> 
2597  <xsl:apply-templates select="witsml:totalTime" mode="valueWithUomRef"/>
2598  </font>
2599  </td>
2600  </tr>
2601  </xsl:template>
2602  <!--                                                                  pumpOp Template                                                 
2603  --> 
2604  <xsl:template match="witsml:pumpOp">
2605  <tr>
2606  <td colspan="2">
2607  <font size="-1">
2608  <b>Measured: </b> 
2609  <xsl:value-of select="witsml:dTim" /> 
2610  </font>
2611  </td>
2612  <td colspan="2">
2613  <font size="-1">
2614  <b>Type oper.: </b> 
2615  <xsl:value-of select="witsml:typeOperation" /> 
2616  </font>
2617  </td>
2618  <td colspan="1">
2619  <font size="-1">
2620  <b>Liner id.: </b> 
2621  <xsl:apply-templates select="witsml:idLiner" mode="valueWithUomRef"/>
2622  </font>
2623  </td>
2624  <td colspan="1">
2625  <font size="-1">
2626  <b>Stroke len.: </b> 
2627  <xsl:apply-templates select="witsml:lenStroke" mode="valueWithUomRef"/>
2628  </font>
2629  </td>
2630  <td colspan="2">
2631  <font size="-1">
2632  <b>Stroke rate: </b> 
2633  <xsl:apply-templates select="witsml:rateStroke" mode="valueWithUomRef"/>
2634  </font>
2635  </td>
2636  </tr>
2637  <tr>
2638  <td colspan="2">
2639  <font size="-1">
2640  <b /> 
2641  <xsl:value-of select="witsml:dTim" /> 
2642  </font>
2643  </td>
2644  <td colspan="2">
2645  <font size="-1">
2646  <b>Pump press.: </b> 
2647  <xsl:apply-templates select="witsml:pressure" mode="valueWithUomRef"/>
2648  </font>
2649  </td>
2650  <td colspan="1">
2651  <font size="-1">
2652  <b>Efficiency: </b> 
2653  <xsl:apply-templates select="witsml:pcEfficiency" mode="valueWithUomRef"/>
2654  </font>
2655  </td>
2656  <td colspan="2">
2657  <font size="-1">
2658  <b>Pump o/p: </b> 
2659  <xsl:apply-templates select="witsml:pumpOutput" mode="valueWithUomRef"/>
2660  </font>
2661  </td>
2662  <td colspan="2">
2663  <font size="-1">
2664  <b>Bit md: </b> 
2665  <xsl:apply-templates select="witsml:mdBit" mode="valueWithUomRef"/>
2666  </font>
2667  </td>
2668  </tr>
2669  </xsl:template>
2670  <!--                                                                  rigResponse Template                                                   
2671  --> 
2672  <xsl:template match="witsml:rigResponse">
2673  <xsl:for-each select="witsml:anchorTension">
2674    <tr>
2675    <td colspan="1" align="right">
2676    <font size="-1">
2677    <b>Anchor tension: </b> 
2678    </font>
2679    </td>
2680    <td colspan="1">
2681    <font size="-1">
2682    <b>index: </b> 
2683    <xsl:value-of select="@index" /> 
2684    </font>
2685    </td>
2686    <td colspan="2">
2687    <font size="-1">
2688    <b>name: </b> 
2689    <xsl:value-of select="@name" /> 
2690    </font>
2691    </td>
2692    <td colspan="1">
2693    <font size="-1">
2694    <b>value: </b> 
2695    <xsl:apply-templates select="." mode="valueWithUomRef"/>
2696    </font>
2697    </td>
2698    <td colspan="1">
2699    <font size="-1">
2700    <b>desc: </b> 
2701    <xsl:value-of select="@description" /> 
2702    </font>
2703    </td>
2704    </tr>
2705  </xsl:for-each>
2706  <xsl:for-each select="witsml:anchorAngle">
2707  <tr>
2708  <td colspan="1" align="right">
2709  <font size="-1">
2710  <b>Anchor angle: </b> 
2711  </font>
2712  </td>
2713  <td colspan="1">
2714  <font size="-1">
2715  <b>index: </b> 
2716  <xsl:value-of select="@index" /> 
2717  </font>
2718  </td>
2719  <td colspan="2">
2720  <font size="-1">
2721  <b>name: </b> 
2722  <xsl:value-of select="@name" /> 
2723  </font>
2724  </td>
2725  <td colspan="1">
2726  <font size="-1">
2727  <b>value: </b> 
2728  <xsl:apply-templates select="." mode="valueWithUomRef"/>
2729  </font>
2730  </td>
2731    <td colspan="1">
2732    <font size="-1">
2733    <b>desc: </b> 
2734    <xsl:value-of select="@description" />
2735    </font>
2736    </td>
2737  </tr>
2738  </xsl:for-each>
2739  <tr>
2740  <td colspan="1">
2741  <font size="-1">
2742  <b>Heading</b> 
2743  <xsl:apply-templates select="witsml:rigHeading" mode="valueWithUomRef"/>
2744  </font>
2745  </td>
2746  <td colspan="1">
2747  <font size="-1">
2748  <b>Heave: </b> 
2749  <xsl:apply-templates select="witsml:rigHeave" mode="valueWithUomRef"/>
2750  </font>
2751  </td>
2752  <td colspan="1">
2753  <font size="-1">
2754  <b>Pitch angle: </b> 
2755  <xsl:apply-templates select="witsml:rigPitchAngle" mode="valueWithUomRef"/>
2756  </font>
2757  </td>
2758  <td colspan="1">
2759  <font size="-1">
2760  <b>Roll angle: </b> 
2761  <xsl:apply-templates select="witsml:rigRollAngle" mode="valueWithUomRef"/>
2762  </font>
2763  </td>
2764  <td colspan="1" align="right">
2765  <font size="-1">
2766  <b>Riser: </b> 
2767  </font>
2768  </td>
2769  <td colspan="1">
2770  <font size="-1">
2771  <b>Angle: </b> 
2772  <xsl:apply-templates select="witsml:riserAngle" mode="valueWithUomRef"/>
2773  </font>
2774  </td>
2775  <td colspan="1">
2776  <font size="-1">
2777  <b>Direction: </b> 
2778  <xsl:apply-templates select="witsml:riserDirection" mode="valueWithUomRef"/>
2779  </font>
2780  </td>
2781  <td colspan="2">
2782  <font size="-1">
2783  <b>Tension: </b> 
2784  <xsl:apply-templates select="witsml:riserTension" mode="valueWithUomRef"/>
2785  </font>
2786  </td>
2787  </tr>
2788  <tr>
2789  <td colspan="2">
2790  <font size="-1">
2791  <b>Var. deck load</b> 
2792  <xsl:apply-templates select="witsml:variableDeckLoad" mode="valueWithUomRef"/>
2793  </font>
2794  </td>
2795  <td colspan="2">
2796  <font size="-1">
2797  <b>Tot. deck load: </b> 
2798  <xsl:apply-templates select="witsml:totalDeckLoad" mode="valueWithUomRef"/>
2799  </font>
2800  </td>
2801  <td colspan="2">
2802  <font size="-1">
2803  <b>Dir. base guide: </b> 
2804  <xsl:apply-templates select="witsml:guideBaseAngle" mode="valueWithUomRef"/>
2805  </font>
2806  </td>
2807  <td colspan="2">
2808  <font size="-1">
2809  <b>Ball joint angle: </b> 
2810  <xsl:apply-templates select="witsml:ballJointAngle" mode="valueWithUomRef"/>
2811  </font>
2812  </td>
2813  </tr>
2814  <tr>
2815  <td colspan="2">
2816  <font size="-1">
2817  <b>Ball joint dir: </b> 
2818  <xsl:apply-templates select="witsml:ballJointDirection" mode="valueWithUomRef"/>
2819  </font>
2820  </td>
2821  <td colspan="1">
2822  <font size="-1">
2823  <b>Rig offset: </b> 
2824  <xsl:apply-templates select="witsml:offsetRig" mode="valueWithUomRef"/>
2825  </font>
2826  </td>
2827  <td colspan="1" align="right">
2828  <font size="-1">
2829  <b>Jackup load: </b> 
2830  </font>
2831  </td>
2832  <td colspan="1">
2833  <font size="-1">
2834  <b>leg 1: </b> 
2835  <xsl:apply-templates select="witsml:loadLeg1" mode="valueWithUomRef"/>
2836  </font>
2837  </td>
2838  <td colspan="1">
2839  <font size="-1">
2840  <b>leg 2: </b> 
2841  <xsl:apply-templates select="witsml:loadLeg2" mode="valueWithUomRef"/>
2842  </font>
2843  </td>
2844  <td colspan="1">
2845  <font size="-1">
2846  <b>leg 3: </b> 
2847 <xsl:apply-templates select="witsml:loadLeg3" mode="valueWithUomRef"/>
2848  </font>
2849  </td>
2850  <td colspan="2">
2851  <font size="-1">
2852  <b>leg 4: </b> 
2853  <xsl:apply-templates select="witsml:loadLeg4" mode="valueWithUomRef"/>
2854  </font>
2855  </td>
2856  </tr>
2857  <tr>
2858  <td colspan="2" align="right">
2859  <font size="-1">
2860  <b>Penetration in seabed: </b> 
2861  </font>
2862  </td>
2863  <td colspan="1">
2864  <font size="-1">
2865  <b>leg 1: </b> 
2866  <xsl:apply-templates select="witsml:penetrationLeg1" mode="valueWithUomRef"/>
2867  </font>
2868  </td>
2869  <td colspan="1">
2870  <font size="-1">
2871  <b>leg 2: </b> 
2872  <xsl:apply-templates select="witsml:penetrationLeg2" mode="valueWithUomRef"/>
2873  </font>
2874  </td>
2875  <td colspan="1">
2876  <font size="-1">
2877  <b>leg 3: </b> 
2878  <xsl:apply-templates select="witsml:penetrationLeg3" mode="valueWithUomRef"/>
2879  </font>
2880  </td>
2881  <td colspan="1">
2882  <font size="-1">
2883  <b>leg 4: </b> 
2884  <xsl:apply-templates select="witsml:penetrationLeg4" mode="valueWithUomRef"/>
2885  </font>
2886  </td>
2887  <td colspan="1">
2888  <font size="-1">
2889  <b>Vessel disp: </b> 
2890  <xsl:apply-templates select="witsml:dispRig" mode="valueWithUomRef"/>
2891  </font>
2892  </td>
2893  <td colspan="2">
2894  <font size="-1">
2895  <b>Mean Dft: </b> 
2896  <xsl:apply-templates select="witsml:meanDraft" mode="valueWithUomRef"/>
2897  </font>
2898  </td>
2899  </tr>
2900  </xsl:template>
2901  <!--                                                                  scrTemplate                                                     
2902  --> 
2903  <xsl:template match="witsml:scr">
2904  <tr>
2905  <td colspan="2">
2906  <font size="-1">
2907  <b>SCR recorded: </b> 
2908  <xsl:value-of select="witsml:dTim" /> 
2909  </font>
2910  </td>
2911  <td colspan="2">
2912  <font size="-1">
2913  <b>Pump: </b> 
2914  <xsl:value-of select="witsml:indexPump" /> (uid=
2915  <xsl:value-of select="witsml:indexPump/@uidRef" /> )
2916  </font>
2917  </td>
2918  <td colspan="3">
2919  <font size="-1">
2920  <b>Type: </b> 
2921  <xsl:value-of select="witsml:typeScr" /> 
2922  </font>
2923  </td>
2924  </tr>
2925  <tr>
2926  <td colspan="2">
2927  <font size="-1">
2928  <b /> 
2929  </font>
2930  </td>
2931  <td colspan="2">
2932  <font size="-1">
2933  <b>Pump stroke rate: </b> 
2934  <xsl:value-of select="witsml:rateStroke" /> 
2935  </font>
2936  </td>
2937  <td colspan="2">
2938  <font size="-1">
2939  <b>Recorded Pump press.: </b> 
2940  <xsl:apply-templates select="witsml:presRecorded" mode="valueWithUomRef"/>
2941  </font>
2942  </td>
2943  <td colspan="1">
2944  <font size="-1">
2945  <b>Bit md: </b> 
2946  <xsl:apply-templates select="witsml:mdBit" mode="valueWithUomRef"/>
2947  </font>
2948  </td>
2949  </tr>
2950  </xsl:template>
2951  <!--                                                                  shakerOp Template                                                       
2952  --> 
2953  <xsl:template match="witsml:shakerOp">
2954  <tr>
2955  <td colspan="3">
2956  <font size="-1">
2957  <b>When shaker oper. measured: </b> 
2958  <xsl:value-of select="witsml:dTim" /> 
2959  </font>
2960  </td>
2961  <td colspan="1">
2962  <font size="-1">
2963  <b>Hole md: </b> 
2964  <xsl:apply-templates select="witsml:mdHole" mode="valueWithUomRef"/>
2965  </font>
2966  </td>
2967  <td colspan="2">
2968  <font size="-1">
2969  <b>Hours run: </b> 
2970  <xsl:apply-templates select="witsml:hoursRun" mode="valueWithUomRef"/>
2971  </font>
2972  </td>
2973  <td colspan="3">
2974  <font size="-1">
2975  <b>Pct screen covered by cuttings: </b> 
2976  <xsl:apply-templates select="witsml:pcScreenCovered" mode="valueWithUomRef"/>
2977  </font>
2978  </td>
2979  </tr>
2980  <!--          Check for shakerScreen information     
2981  --> 
2982  <xsl:for-each select="witsml:shakerScreen">
2983  <xsl:apply-templates select="." /> 
2984  </xsl:for-each>
2985  </xsl:template>
2986  <!--                                                                  shakerScreen Template                                                   
2987  --> 
2988  <xsl:template match="witsml:shakerScreen">
2989  <tr>
2990  <td colspan="1">
2991  <font size="-1">
2992  <b>Shaker screen: </b> 
2993  </font>
2994  </td>
2995  <td colspan="2">
2996  <font size="-1">
2997  <b>Mesh installed: </b> 
2998  <xsl:value-of select="witsml:dTimStart" /> 
2999  </font>
3000  </td>
3001  <td colspan="2">
3002  <font size="-1">
3003  <b>Mesh removed: </b> 
3004  <xsl:value-of select="witsml:dTimEnd" /> 
3005  </font>
3006  </td>
3007  <td colspan="2">
3008  <font size="-1">
3009  <b>Mfg: </b> 
3010  <xsl:value-of select="witsml:manufacturer" /> 
3011  </font>
3012  </td>
3013  </tr>
3014  <tr>
3015  <td colspan="1">
3016  <font size="-1">
3017  <b /> 
3018  </font>
3019  </td>
3020  <td colspan="1">
3021  <font size="-1">
3022  <b>Model: </b> 
3023  <xsl:value-of select="witsml:model" /> 
3024  </font>
3025  </td>
3026  <td colspan="1">
3027  <font size="-1">
3028  <b>Deck no.: </b> 
3029  <xsl:value-of select="witsml:numDeck" /> 
3030  </font>
3031  </td>
3032  <td colspan="2">
3033  <font size="-1">
3034  <b>Mesh size x dir: </b> 
3035  <xsl:apply-templates select="witsml:meshX" mode="valueWithUomRef"/>
3036  </font>
3037  </td>
3038  <td colspan="2">
3039  <font size="-1">
3040  <b>Mesh size y dir: </b> 
3041  <xsl:apply-templates select="witsml:meshY" mode="valueWithUomRef"/>
3042  </font>
3043  </td>
3044  <td colspan="2">
3045  <font size="-1">
3046  <b>Cut pt.: </b> 
3047  <xsl:apply-templates select="witsml:cutPoint" mode="valueWithUomRef"/>
3048  </font>
3049  </td>
3050  </tr>
3051  </xsl:template>
3052  <!--                                                                  supportCraft Template                                                   
3053  --> 
3054  <xsl:template match="witsml:supportCraft">
3055  <tr>
3056  <td colspan="2">
3057  <font size="-1">
3058  <b>Name: </b> 
3059  <xsl:value-of select="witsml:name" /> 
3060  </font>
3061  </td>
3062  <td colspan="2">
3063  <font size="-1">
3064  <b>Type craft: </b> 
3065  <xsl:value-of select="witsml:typeSuppCraft" /> 
3066  </font>
3067  </td>
3068  <td colspan="2">
3069  <font size="-1">
3070  <b>Arrived: </b> 
3071  <xsl:value-of select="witsml:dTimArrived" /> 
3072  </font>
3073  </td>
3074  <td colspan="2">
3075  <font size="-1">
3076  <b>Departed: </b> 
3077  <xsl:value-of select="witsml:dTimDeparted" /> 
3078  </font>
3079  </td>
3080  </tr>
3081  <tr>
3082  <td colspan="9">
3083  <font size="-1">
3084  <b>Comments: </b> 
3085  <xsl:value-of select="witsml:comments" /> 
3086  </font>
3087  </td>
3088  </tr>
3089  </xsl:template>
3090  <!--                                                                  trajectoryStation Template                                                     
3091  --> 
3092  <xsl:template match="witsml:trajectoryStation">
3093  <tr>
3094  <td colspan="3">
3095  <font size="-1">
3096  <b>Station Uid: </b> 
3097  <xsl:value-of select="@uid" />
3098  </font>
3099  </td>
3100  </tr>
3101  <tr>
3102  <td colspan="2" align="right">
3103  <font size="-1">
3104  <b>Measurements made at: </b> 
3105  </font>
3106  </td>
3107  <td colspan="2">
3108  <font size="-1">
3109  <b>MD: </b> 
3110  <xsl:apply-templates select="witsml:md" mode="valueWithUomRef"/>
3111  </font>
3112  </td>
3113  <td colspan="2">
3114  <font size="-1">
3115  <b>TVD: </b> 
3116  <xsl:apply-templates select="witsml:tvd" mode="valueWithUomRef"/>
3117  </font>
3118  </td>
3119  <td colspan="3">
3120  <font size="-1">
3121  <b>Type: </b> 
3122  <xsl:value-of select="witsml:typeTrajStation" /> 
3123  </font>
3124  </td>
3125  </tr>
3126  <tr>
3127  <td colspan="2" align="right">
3128  <font size="-1">
3129  <b>Hole inclination: </b> 
3130  <xsl:apply-templates select="witsml:inc" mode="valueWithUomRef"/>
3131  </font>
3132  </td>
3133  <td colspan="2">
3134  <font size="-1">
3135  <b>Hole Azimuth: </b> 
3136  <xsl:apply-templates select="witsml:azi" mode="valueWithUomRef"/>
3137  </font>
3138  </td>
3139  <td colspan="2">
3140  <font size="-1">
3141  <b>Mag. toolface angle: </b> 
3142  <xsl:apply-templates select="witsml:mtf" mode="valueWithUomRef"/>
3143  </font>
3144  </td>
3145  <td colspan="3">
3146  <font size="-1">
3147  <b>Gravity toolface angle: </b> 
3148  <xsl:apply-templates select="witsml:gtf" mode="valueWithUomRef"/>
3149  </font>
3150  </td>
3151  </tr>
3152  <tr>
3153  <td colspan="2" align="right">
3154  <font size="-1">
3155  <b>NS offset: </b> 
3156  <xsl:apply-templates select="witsml:dispNs" mode="valueWithUomRef"/>
3157  </font>
3158  </td>
3159  <td colspan="2">
3160  <font size="-1">
3161  <b>EW offset: </b> 
3162  <xsl:apply-templates select="witsml:dispEw" mode="valueWithUomRef"/>
3163  </font>
3164  </td>
3165  <td colspan="2">
3166  <font size="-1">
3167  <b>Vert distance on azi plane: </b> 
3168  <xsl:apply-templates select="witsml:vertSect" mode="valueWithUomRef"/>
3169  </font>
3170  </td>
3171  <td colspan="3">
3172  <font size="-1">
3173  <b>Dogleg Severity: </b> 
3174  <xsl:apply-templates select="witsml:dls" mode="valueWithUomRef"/>
3175  </font>
3176  </td>
3177  </tr>
3178  <tr>
3179  <td colspan="2" align="right">
3180  <font size="-1">
3181  <b>Turn rate: </b> 
3182  <xsl:apply-templates select="witsml:rateTurn" mode="valueWithUomRef"/>
3183  </font>
3184  </td>
3185  <td colspan="2">
3186  <font size="-1">
3187  <b>Build rate: </b> 
3188  <xsl:apply-templates select="witsml:rateBuild" mode="valueWithUomRef"/>
3189  </font>
3190  </td>
3191  <td colspan="2">
3192  <font size="-1">
3193  <b>Delta MD from prev stn: </b> 
3194  <xsl:apply-templates select="witsml:mdDelta" mode="valueWithUomRef"/>
3195  </font>
3196  </td>
3197  <td colspan="3">
3198  <font size="-1">
3199  <b>Delta TVD from prev stn: </b> 
3200  <xsl:apply-templates select="witsml:tvdDelta" mode="valueWithUomRef"/>
3201  </font>
3202  </td>
3203  </tr>
3204  <tr>
3205  <td colspan="1" align="right">
3206  <font size="-1">
3207  <b>Survey tool: </b> 
3208  </font>
3209  </td>
3210  <td colspan="2">
3211  <font size="-1">
3212  <b>Gavity uncert.: </b> 
3213  <xsl:apply-templates select="witsml:gravTotalUncert" mode="valueWithUomRef"/>
3214  </font>
3215  </td>
3216  <td colspan="2">
3217  <font size="-1">
3218  <b>Dip uncert.: </b> 
3219  <xsl:apply-templates select="witsml:dipAngleUncert" mode="valueWithUomRef"/>
3220  </font>
3221  </td>
3222  <td colspan="2">
3223  <font size="-1">
3224  <b>Magnetic uncert.: </b> 
3225  <xsl:apply-templates select="witsml:magTotalUncert" mode="valueWithUomRef"/>
3226  </font>
3227  </td>
3228  </tr>
3229  <tr>
3230  <td colspan="1" align="right">
3231  <font size="-1">
3232  <b>Corr. used?: </b> 
3233  </font>
3234  </td>
3235  <td colspan="2">
3236  <font size="-1">
3237  <b>Accelerometer align.?: </b> 
3238  <xsl:value-of select="witsml:gravAccelCorUsed" /> 
3239  </font>
3240  </td>
3241  <td colspan="2">
3242  <font size="-1">
3243  <b>Magnetometer align.?: </b> 
3244  <xsl:value-of select="witsml:magXAxialCorUsed" /> 
3245  </font>
3246  </td>
3247  <td colspan="2">
3248  <font size="-1">
3249  <b>BHA sag?: </b> 
3250  <xsl:value-of select="witsml:sagCorUsed" /> 
3251  </font>
3252  </td>
3253  <td colspan="2">
3254  <font size="-1">
3255  <b>Drl str mag.?: </b> 
3256  <xsl:value-of select="witsml:magDrlstrCorUsed" /> 
3257  </font>
3258  </td>
3259  </tr>
3260  <tr>
3261  <td /> 
3262  <td colspan="8">
3263  <font size="-1">
3264  <b>Tool error model: </b> 
3265  <xsl:apply-templates select="witsml:modelToolError" mode="valueWithUomRef"/>
3266  </font>
3267  </td>
3268  </tr>
3269  <!--          Check for a rawData     
3270  --> 
3271  <xsl:for-each select="witsml:rawData">
3272  <tr>
3273  <td colspan="9" align="center">
3274  <font size="-1">
3275  <b>Raw Data</b> 
3276  </font>
3277  </td>
3278  </tr>
3279  <xsl:apply-templates select="." /> 
3280  </xsl:for-each>
3281  <!--          Check for a corUsed     
3282  --> 
3283  <xsl:for-each select="witsml:corUsed">
3284  <tr>
3285  <td colspan="9" align="center">
3286  <font size="-1">
3287  <b>Corrections Used</b> 
3288  </font>
3289  </td>
3290  </tr>
3291  <xsl:apply-templates select="." /> 
3292  </xsl:for-each>
3293  <!--          Check for a valid (Validation data)     
3294  --> 
3295  <xsl:for-each select="witsml:valid">
3296  <tr>
3297  <td colspan="9" align="center">
3298  <font size="-1">
3299  <b>Validation Data</b> 
3300  </font>
3301  </td>
3302  </tr>
3303  <xsl:apply-templates select="." /> 
3304  </xsl:for-each>
3305  <!--          Check for a matrixCov   
3306  --> 
3307  <xsl:for-each select="witsml:matrixCov">
3308  <tr>
3309  <td colspan="9" align="center">
3310  <font size="-1">
3311  <b>Covariance Matrix</b> 
3312  </font>
3313  </td>
3314  </tr>
3315  <xsl:apply-templates select="." /> 
3316  </xsl:for-each>
3317  <!--          Check for a location   
3318  --> 
3319  <xsl:if test="witsml:location">
3320    <tr>
3321      <td colspan="9" align="center">
3322        <font size="-1">
3323          <b>Trajectory Station Locations</b> 
3324        </font>
3325      </td>
3326    </tr>
3327    <xsl:for-each select="witsml:location">
3328      <xsl:apply-templates select="." /> 
3329    </xsl:for-each>
3330  </xsl:if>
3331  </xsl:template>
3332  <!--                                                                  rawData Template                                                       
3333  --> 
3334  <xsl:template match="witsml:rawData">
3335  <tr>
3336  <td colspan="3" align="right">
3337  <font size="-1">
3338  <b>Uncorrected gravity field strength: </b> 
3339  </font>
3340  </td>
3341  <td colspan="2">
3342  <font size="-1">
3343  <b>Axial dir.: </b> 
3344  <xsl:apply-templates select="witsml:gravAxialRaw" mode="valueWithUomRef"/>
3345  </font>
3346  </td>
3347  <td colspan="2">
3348  <font size="-1">
3349  <b>Transverse dir. 1: </b> 
3350  <xsl:apply-templates select="witsml:gravTran1Raw" mode="valueWithUomRef"/>
3351  </font>
3352  </td>
3353  <td colspan="2">
3354  <font size="-1">
3355  <b>Transverse dir. 2: </b> 
3356  <xsl:apply-templates select="witsml:gravTran2Raw" mode="valueWithUomRef"/>
3357  </font>
3358  </td>
3359  </tr>
3360  <tr>
3361  <td colspan="3" align="right">
3362  <font size="-1">
3363  <b>Uncorrected magnetic field field strength: </b> 
3364  </font>
3365  </td>
3366  <td colspan="2">
3367  <font size="-1">
3368  <b>Axial dir.: </b> 
3369  <xsl:apply-templates select="witsml:magAxialRaw" mode="valueWithUomRef"/>
3370  </font>
3371  </td>
3372  <td colspan="2">
3373  <font size="-1">
3374  <b>Transverse dir. 1: </b> 
3375  <xsl:apply-templates select="witsml:magTran1Raw" mode="valueWithUomRef"/>
3376  </font>
3377  </td>
3378  <td colspan="2">
3379  <font size="-1">
3380  <b>Transverse dir. 2: </b> 
3381  <xsl:apply-templates select="witsml:magTran2Raw" mode="valueWithUomRef"/>
3382  </font>
3383  </td>
3384  </tr>
3385  </xsl:template>
3386  <!--                                                                  corUsed (Corrections Used) Template                                                     
3387  --> 
3388  <xsl:template match="witsml:corUsed">
3389  <tr>
3390  <td colspan="3" align="right">
3391  <font size="-1">
3392  <b>Calc. grav. field Corrections used: </b> 
3393  </font>
3394  </td>
3395  <td colspan="2">
3396  <font size="-1">
3397  <b>Axial dir.: </b> 
3398  <xsl:apply-templates select="witsml:gravAxialAccelCor" mode="valueWithUomRef"/>
3399  </font>
3400  </td>
3401  <td colspan="2">
3402  <font size="-1">
3403  <b>Transverse dir. 1: </b> 
3404  <xsl:apply-templates select="witsml:gravTran1AccelCor" mode="valueWithUomRef"/>
3405  </font>
3406  </td>
3407  <td colspan="2">
3408  <font size="-1">
3409  <b>Transverse dir. 2: </b> 
3410  <xsl:apply-templates select="witsml:gravTran2AccelCor" mode="valueWithUomRef"/>
3411  </font>
3412  </td>
3413  </tr>
3414  <tr>
3415  <td colspan="3" align="right">
3416  <font size="-1">
3417  <b>Magnetic Drillstr corrections used: </b> 
3418  </font>
3419  </td>
3420  <td colspan="2">
3421  <font size="-1">
3422  <b>Axial dir.: </b> 
3423  <xsl:apply-templates select="witsml:magAxialDrlstrCor" mode="valueWithUomRef"/>
3424  </font>
3425  </td>
3426  <td colspan="2">
3427  <font size="-1">
3428  <b>Transverse dir. 1: </b> 
3429  <xsl:apply-templates select="witsml:magTran1DrlstrCor" mode="valueWithUomRef"/>
3430  </font>
3431  </td>
3432  <td colspan="2">
3433  <font size="-1">
3434  <b>Transverse dir. 2: </b> 
3435  <xsl:apply-templates select="witsml:magTran2DrlstrCor" mode="valueWithUomRef"/>
3436  </font>
3437  </td>
3438  </tr>
3439  <tr>
3440  <td colspan="3" align="right">
3441  <font size="-1">
3442  <b>Magnetic declin. corr used: </b> 
3443  <xsl:apply-templates select="witsml:stnMagDeclUsed" mode="valueWithUomRef"/>
3444  </font>
3445  </td>
3446  <td colspan="2">
3447  <font size="-1">
3448  <b>Grid corr. used</b> 
3449  <xsl:apply-templates select="witsml:stnGridCorUsed" mode="valueWithUomRef"/>
3450  </font>
3451  </td>
3452  </tr>
3453  </xsl:template>
3454  <!--                                                                  valid (validation data) Template                                                       
3455  --> 
3456  <xsl:template match="witsml:valid">
3457  <tr>
3458  <td colspan="3" align="right">
3459  <font size="-1">
3460  <b>Validation Data Used: </b> 
3461  </font>
3462  </td>
3463  <td colspan="2">
3464  <font size="-1">
3465  <b>Calc. total mag. field: </b> 
3466  <xsl:apply-templates select="witsml:magTotalFieldCalc" mode="valueWithUomRef"/>
3467  </font>
3468  </td>
3469  <td colspan="2">
3470  <font size="-1">
3471  <b>Calc. mag. dip: </b> 
3472  <xsl:apply-templates select="witsml:magDipAngleCalc" mode="valueWithUomRef"/>
3473  </font>
3474  </td>
3475  <td colspan="2">
3476  <font size="-1">
3477  <b>Calc. total grav. field: </b> 
3478  <xsl:apply-templates select="witsml:gravTotalFieldCalc" mode="valueWithUomRef"/>
3479  </font>
3480  </td>
3481  </tr>
3482  </xsl:template>
3483  <!--                                                                  matrixCov Template                                                     
3484  --> 
3485  <xsl:template match="witsml:matrixCov">
3486  <tr>
3487  <td colspan="3" align="right">
3488  <font size="-1">
3489  <b>Covariances/Crossvariances: </b> 
3490  </font>
3491  </td>
3492  <td colspan="2">
3493  <font size="-1">
3494  <b>Cov NN: </b> 
3495  <xsl:apply-templates select="witsml:varianceNN" mode="valueWithUomRef"/>
3496  </font>
3497  </td>
3498  <td colspan="2">
3499  <font size="-1">
3500  <b>Crossvar NE: </b> 
3501  <xsl:apply-templates select="witsml:varianceNE" mode="valueWithUomRef"/>
3502  </font>
3503  </td>
3504  <td colspan="2">
3505  <font size="-1">
3506  <b>Crossvar NV: </b> 
3507  <xsl:apply-templates select="witsml:varianceNVert" mode="valueWithUomRef"/>
3508  </font>
3509  </td>
3510  </tr>
3511  <tr>
3512  <td colspan="3" align="right">
3513  <font size="-1">
3514  <b /> 
3515  </font>
3516  </td>
3517  <td colspan="2">
3518  <font size="-1">
3519  <b>Cov EE: </b> 
3520  <xsl:apply-templates select="witsml:varianceEE" mode="valueWithUomRef"/>
3521  </font>
3522  </td>
3523  <td colspan="2">
3524  <font size="-1">
3525  <b>Crossvar EV: </b> 
3526  <xsl:apply-templates select="witsml:varianceEVert" mode="valueWithUomRef"/>
3527  </font>
3528  </td>
3529  <td colspan="2">
3530  <font size="-1">
3531  <b>Cov VV: </b> 
3532  <xsl:apply-templates select="witsml:varianceVertVert" mode="valueWithUomRef"/>
3533  </font>
3534  </td>
3535  </tr>
3536  <tr>
3537  <td colspan="3" align="right">
3538  <font size="-1">
3539  <b>Bias: </b> 
3540  </font>
3541  </td>
3542  <td colspan="2">
3543  <font size="-1">
3544  <b>North: </b> 
3545  <xsl:apply-templates select="witsml:biasN" mode="valueWithUomRef"/>
3546  </font>
3547  </td>
3548  <td colspan="2">
3549  <font size="-1">
3550  <b>East: </b> 
3551  <xsl:apply-templates select="witsml:biasE" mode="valueWithUomRef"/>
3552  </font>
3553  </td>
3554  <td colspan="2">
3555  <font size="-1">
3556  <b>Vertical: </b> 
3557  <xsl:apply-templates select="witsml:biasVert" mode="valueWithUomRef"/>
3558  </font>
3559  </td>
3560  </tr>
3561  </xsl:template>
3562  <!--                                  Location Template                                                                       
3563  --> 
3564  <xsl:template match="witsml:location">
3565  <tr>
3566  <td colspan="1" /> 
3567  <td colspan="1">
3568    <font size="-1">
3569      <b>uid: </b> 
3570      <xsl:value-of select="@uid" /> 
3571    </font>
3572  </td>
3573  <td colspan="1">
3574    <font size="-1">
3575      <b>CRS Name: </b> 
3576      <xsl:value-of select="witsml:nameWellCRS" /> 
3577    </font>
3578  </td>
3579  <td colspan="1">
3580    <font size="-1">
3581      <b>CRS uid: </b> 
3582      <xsl:value-of select="witsml:nameWellCRS/@uidRef" /> 
3583    </font>
3584  </td>
3585  <xsl:if test="witsml:latitude">
3586    <td colspan="1">
3587      <font size="-1">
3588        <b>Latitude: </b> 
3589        <xsl:apply-templates select="witsml:latitude" mode="valueWithUomRef"/>
3590      </font>
3591    </td>
3592    <td colspan="1">
3593      <font size="-1">
3594        <b>Longitude: </b> 
3595        <xsl:apply-templates select="witsml:longitude" mode="valueWithUomRef"/>
3596      </font>
3597    </td>
3598  </xsl:if>
3599  <xsl:if test="witsml:easting">
3600    <td colspan="1">
3601      <font size="-1">
3602        <b>Easting: </b> 
3603        <xsl:apply-templates select="witsml:easting" mode="valueWithUomRef"/>
3604      </font>
3605    </td>
3606    <td colspan="1">
3607      <font size="-1">
3608        <b>Northing: </b> 
3609        <xsl:apply-templates select="witsml:northing" mode="valueWithUomRef"/>
3610      </font>
3611    </td>
3612  </xsl:if>
3613  <xsl:if test="witsml:westing">
3614    <td colspan="1">
3615      <font size="-1">
3616        <b>Westing: </b> 
3617        <xsl:apply-templates select="witsml:westing" mode="valueWithUomRef"/>
3618      </font>
3619    </td>
3620    <td colspan="1">
3621      <font size="-1">
3622        <b>Southing: </b> 
3623        <xsl:apply-templates select="witsml:southing" mode="valueWithUomRef"/>
3624      </font>
3625    </td>
3626  </xsl:if>
3627  <xsl:if test="witsml:projectedX">
3628    <td colspan="1">
3629      <font size="-1">
3630        <b>Projected X: </b> 
3631        <xsl:apply-templates select="witsml:projectedX" mode="valueWithUomRef"/>
3632      </font>
3633    </td>
3634    <td colspan="1">
3635      <font size="-1">
3636        <b>Projected Y: </b> 
3637        <xsl:apply-templates select="witsml:projectedY" mode="valueWithUomRef"/>
3638      </font>
3639    </td>
3640  </xsl:if>
3641  <xsl:if test="witsml:localX">
3642    <td colspan="1">
3643      <font size="-1">
3644        <b>Local X: </b> 
3645        <xsl:apply-templates select="witsml:localX" mode="valueWithUomRef"/>
3646      </font>
3647    </td>
3648    <td colspan="1">
3649      <font size="-1">
3650        <b>Local Y: </b> 
3651        <xsl:apply-templates select="witsml:localY" mode="valueWithUomRef"/>
3652      </font>
3653    </td>
3654  </xsl:if>
3655  <td>
3656    <font size="-1">
3657      <b>Original?: </b>
3658      <xsl:choose>
3659        <xsl:when test="witsml:original='true'" >yes</xsl:when>
3660        <xsl:when test="witsml:original='1'"    >yes</xsl:when>
3661        <xsl:when test="witsml:original='false'">no</xsl:when>
3662        <xsl:when test="witsml:original='0'"    >no</xsl:when>
3663        <xsl:otherwise                          >no</xsl:otherwise>
3664      </xsl:choose>
3665    </font>
3666  </td>
3667  <td colspan="2">
3668    <font size="-1">
3669      <b>Description: </b> 
3670      <xsl:value-of select="witsml:description" /> 
3671    </font>
3672  </td>
3673  </tr>
3674  </xsl:template>
3675  <!--                                                                  weather Template                                                       
3676  --> 
3677  <xsl:template match="witsml:weather">
3678  <tr>
3679  <td colspan="2">
3680  <font size="-1">
3681  <b>Precipitation: </b> 
3682  <xsl:value-of select="witsml:typePrecip" /> 
3683  </font>
3684  </td>
3685  <td colspan="1">
3686  <font size="-1">
3687  <b>Amt precip.: </b> 
3688  <xsl:apply-templates select="witsml:amtPrecip" mode="valueWithUomRef"/>
3689  </font>
3690  </td>
3691  <td colspan="1">
3692  <font size="-1">
3693  <b>Wind vel.: </b> 
3694  <xsl:apply-templates select="witsml:velWind" mode="valueWithUomRef"/>
3695  </font>
3696  </td>
3697  <td colspan="1" align="right">
3698  <font size="-1">
3699  <b>Cloud: </b> 
3700  </font>
3701  </td>
3702  <td colspan="1">
3703  <font size="-1">
3704  <b>cover: </b> 
3705  <xsl:apply-templates select="witsml:coverCloud" mode="valueWithUomRef"/>
3706  </font>
3707  </td>
3708  <td colspan="1">
3709  <font size="-1">
3710  <b>ceiling: </b> 
3711  <xsl:apply-templates select="witsml:ceilingCloud" mode="valueWithUomRef"/>
3712  </font>
3713  </td>
3714  </tr>
3715  <tr>
3716  <td /> 
3717  <td colspan="2">
3718  <font size="-1">
3719  <b>Curr. speed: </b> 
3720  <xsl:apply-templates select="witsml:currentSea" mode="valueWithUomRef"/>
3721  </font>
3722  </td>
3723  <td colspan="2">
3724  <font size="-1">
3725  <b>Azi. Curr. Sea: </b> 
3726  <xsl:apply-templates select="witsml:aziCurrentSea" mode="valueWithUomRef"/>
3727  </font>
3728  </td>
3729  </tr>
3730  <tr>
3731  <td /> 
3732  <td colspan="9">
3733  <font size="-1">
3734  <b>Comments: </b> 
3735  <xsl:value-of select="witsml:comments" /> 
3736  </font>
3737  </td>
3738  </tr>
3739  </xsl:template>
3740  <!--                                                                  Common Data Template                                                   
3741  --> 
3742  <xsl:template match="witsml:commonData">
3743  <tr>
3744  <td colspan="3">
3745  <font size="-1">
3746  <b>User ID: </b> 
3747  <xsl:value-of select="witsml:nameSource" /> 
3748  </font>
3749  </td>
3750  <td colspan="3">
3751  <font size="-1">
3752  <b>Time Stamp: </b> 
3753  <xsl:value-of select="witsml:dTimStamp" /> 
3754  </font>
3755  </td>
3756  <td colspan="3">
3757  <font size="-1">
3758  <b>State: </b> 
3759  <xsl:value-of select="witsml:itemState" /> 
3760  </font>
3761  </td>
3762  </tr>
3763  <tr>
3764  <td colspan="9">
3765  <font size="-1">
3766  <b>Comments: </b> 
3767  <xsl:value-of select="witsml:comments" /> 
3768  </font>
3769  </td>
3770  </tr>
3771  </xsl:template>
3772
3773
3774  </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.