1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <xsl:stylesheet version="1.0" |
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
4 | xmlns:witsml="http://www.witsml.org/schemas/131"> |
---|
5 | |
---|
6 | <xsl:include href="all_object_utility_templates.xsl"/> |
---|
7 | |
---|
8 | <xsl:template match="/"> |
---|
9 | <html> |
---|
10 | <head> |
---|
11 | <title> |
---|
12 | WITSML Survey Program Data Object |
---|
13 | </title> |
---|
14 | </head> |
---|
15 | <body> |
---|
16 | <table border="2" align="center"> |
---|
17 | <tr><th colspan="9" ><font size="+2" color="blue">WITSML</font></th></tr> |
---|
18 | <tr><th colspan="9"><font size="+2" color="blue">Survey Program</font></th></tr> |
---|
19 | <xsl:for-each select="witsml:surveyPrograms"> |
---|
20 | <xsl:for-each select="witsml:surveyProgram"> |
---|
21 | <tr> <td colspan="3"><font size="+1" color="blue">Well uid: </font> <xsl:value-of select="@uidWell"/></td> |
---|
22 | <td colspan="5"><font size="+1" color="blue">Well Name: </font> <xsl:value-of select="witsml:nameWell"/></td></tr> |
---|
23 | <tr> <td colspan="3"><font size="-1" color="blue"><b>Wellbore uid: </b></font> <font size="-1"><xsl:value-of select="@uidWellbore"/></font></td> |
---|
24 | <td colspan="5"><font size="-1" color="blue"><b>Program uid: </b></font> <font size="-1"><xsl:value-of select="@uid"/></font></td></tr> |
---|
25 | <tr> <td colspan="3"><font size="-1" color="blue"><b>Wellbore Name: </b></font> <font size="-1"><xsl:value-of select="witsml:nameWellbore"/></font></td> |
---|
26 | <td colspan="5"><font size="-1" color="blue"><b>Program Name: </b></font> <font size="-1"><xsl:value-of select="witsml:name"/></font></td></tr> |
---|
27 | <tr><td colspan="1"><font size="-1"><b>Survey version: </b> <xsl:value-of select="witsml:surveyVer"/></font></td> |
---|
28 | <td colspan="2"><font size="-1"><b>Traj. created: </b> <xsl:value-of select="witsml:dTimTrajProg"/></font></td> |
---|
29 | <td colspan="2"><font size="-1"><b>Engineer: </b> <xsl:value-of select="witsml:engineer"/></font></td> |
---|
30 | <td colspan="4"><font size="-1"><b>Final: </b> <xsl:value-of select="witsml:final"/></font></td> |
---|
31 | </tr> |
---|
32 | |
---|
33 | <tr><td colspan="9" align="center"><font size="+1" color="blue">Survey Sections</font></td></tr> |
---|
34 | <!-- Check for a survey section --> |
---|
35 | <xsl:for-each select="witsml:surveySection"> |
---|
36 | <xsl:apply-templates select="."/> |
---|
37 | </xsl:for-each> |
---|
38 | |
---|
39 | <!-- Common Data --> |
---|
40 | <tr><td colspan="8" align="center"><font size="+1" color="blue">Common Data</font></td></tr> |
---|
41 | <tr><td colspan="2"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td> |
---|
42 | <td colspan="2"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td> |
---|
43 | <td colspan="4"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr> |
---|
44 | <tr><td colspan="8"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr> |
---|
45 | |
---|
46 | |
---|
47 | </xsl:for-each> |
---|
48 | </xsl:for-each> |
---|
49 | </table> |
---|
50 | </body> |
---|
51 | </html> |
---|
52 | </xsl:template> |
---|
53 | |
---|
54 | <!-- section Template --> |
---|
55 | <xsl:template match="witsml:surveySection"> |
---|
56 | <tr><td colspan="1"><font size="-1"><b>Section seq.: </b> <xsl:value-of select="witsml:sequence"/></font></td> |
---|
57 | <td colspan="8"><font size="-1"><b>Name: </b> <xsl:value-of select="witsml:nameSect"/></font></td></tr> |
---|
58 | <tr><td colspan="1"><font size="-1"><b></b></font></td> |
---|
59 | <td colspan="2"><font size="-1"><b>MD survey begins: </b> <xsl:apply-templates select="witsml:mdStart" mode="valueWithUomRef"/></font></td> |
---|
60 | <td colspan="2"><font size="-1"><b>MD survey ends: </b> <xsl:apply-templates select="witsml:mdEnd" mode="valueWithUomRef"/></font></td> |
---|
61 | <td colspan="4"><font size="-1"><b>Survey company: </b> <xsl:value-of select="witsml:nameSurveyCompany"/></font></td></tr> |
---|
62 | <tr> <td colspan="1"><font size="-1"><b></b></font></td> |
---|
63 | <td colspan="2"><font size="-1"><b>Tool name: </b> <xsl:value-of select="witsml:nameTool"/></font></td> |
---|
64 | <td colspan="2"><font size="-1"><b>Tool type: </b> <xsl:value-of select="witsml:typeTool"/></font></td> |
---|
65 | <td colspan="2"><font size="-1"><b>Overwrite: </b> <xsl:value-of select="witsml:overwrite"/></font></td> |
---|
66 | <td colspan="2"><font size="-1"><b>Max depth freq.: </b> <xsl:apply-templates select="witsml:frequencyMx" mode="valueWithUomRef"/></font></td></tr> |
---|
67 | <tr><td colspan="1"><font size="-1"><b></b></font></td> |
---|
68 | <td colspan="8"><font size="-1"><b>Model error: </b> <xsl:value-of select="witsml:modelError"/></font></td></tr> |
---|
69 | <xsl:for-each select="witsml:commonData"> |
---|
70 | <tr><td colspan="1"><font size="-1"><b></b></font></td> |
---|
71 | <td colspan="8"><font size="-1"><b>Section state: </b> <xsl:value-of select="witsml:itemState"/></font></td></tr> |
---|
72 | <tr><td colspan="1"><font size="-1"><b></b></font></td> |
---|
73 | <td colspan="8"><font size="-1"><b>Comments: </b> <xsl:value-of select="witsml:comments"/></font></td></tr> |
---|
74 | </xsl:for-each> |
---|
75 | </xsl:template> |
---|
76 | |
---|
77 | |
---|
78 | <!-- Common Data Template --> |
---|
79 | <xsl:template match="witsml:commonData"> |
---|
80 | <tr><td colspan="3"><font size="-1"><b>User ID: </b> <xsl:value-of select="witsml:nameSource"/></font></td> |
---|
81 | <td colspan="3"><font size="-1"><b>Time Stamp: </b> <xsl:value-of select="witsml:dTimStamp"/></font></td> |
---|
82 | <td colspan="3"><font size="-1"><b>State: </b> <xsl:value-of select="witsml:itemState"/></font></td></tr> |
---|
83 | <tr><td colspan="9"><font size="-1"><b>Comments: </b> <xsl:value-of select="witsml:comments"/></font></td></tr> |
---|
84 | </xsl:template> |
---|
85 | |
---|
86 | |
---|
87 | </xsl:stylesheet> |
---|