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 Wellbore Geometry Stylesheet |
---|
13 | </title> |
---|
14 | </head> |
---|
15 | <body> |
---|
16 | <table border="1" 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">Wellbore Geometry Information</font></th></tr> |
---|
19 | <xsl:for-each select="witsml:wbGeometrys"> |
---|
20 | <xsl:for-each select="witsml:wbGeometry"> |
---|
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>WbGeometry 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>WB Geometry Name: </b></font> <font size="-1"><xsl:value-of select="witsml:name"/></font></td></tr> |
---|
27 | <tr> <td colspan="4"><font size="-1"><b>Date/time of report: </b></font> <xsl:value-of select="witsml:dTimReport"/></td></tr> |
---|
28 | |
---|
29 | <tr> <td colspan="2"><font size="-1"><b>MD at bottom: </b></font> <xsl:apply-templates select="witsml:mdBottom" mode="valueWithUomRef"/></td> |
---|
30 | <td colspan="2"><font size="-1"><b>Air gap: </b></font> <xsl:apply-templates select="witsml:gapAir" mode="valueWithUomRef"/></td> |
---|
31 | <td colspan="2"><font size="-1"><b>Water depth: </b></font> <xsl:apply-templates select="witsml:depthWaterMean" mode="valueWithUomRef"/></td> |
---|
32 | </tr> |
---|
33 | |
---|
34 | <!-- Check for Wellbore Geometry Section --> |
---|
35 | <xsl:for-each select="witsml:wbGeometrySection"> |
---|
36 | <tr><td colspan="9" align="center"><font size="-1" color="blue"><b>Wellbore Geometry Section - </b>(uid= <xsl:value-of select="@uid"/>)</font></td></tr> |
---|
37 | <xsl:apply-templates select="."/> |
---|
38 | </xsl:for-each> |
---|
39 | |
---|
40 | <!-- Common Data --> |
---|
41 | <tr><td colspan="8" align="center"><font size="-1" color="blue">Common Data</font></td></tr> |
---|
42 | <tr><td colspan="2"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td> |
---|
43 | <td colspan="2"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td> |
---|
44 | <td colspan="4"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr> |
---|
45 | <tr><td colspan="8"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr> |
---|
46 | |
---|
47 | <tr><td colspan="8" align="center"><font size="-1"><b>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</b></font></td></tr> |
---|
48 | |
---|
49 | </xsl:for-each> |
---|
50 | |
---|
51 | </xsl:for-each> |
---|
52 | </table> |
---|
53 | </body> |
---|
54 | </html> |
---|
55 | </xsl:template> |
---|
56 | |
---|
57 | |
---|
58 | <!-- Wellbore Geometry Section Template --> |
---|
59 | <xsl:template match="witsml:wbGeometrySection"> |
---|
60 | <tr><td colspan="4"><font size="-1"><b>Type: </b> <xsl:value-of select="witsml:typeHoleCasing"/></font></td> |
---|
61 | <td colspan="2"><font size="-1"><b>Grade: </b> <xsl:value-of select="witsml:grade"/></font></td></tr> |
---|
62 | <tr> <td colspan="2"><font size="-1"><b>MD top: </b></font> <xsl:apply-templates select="witsml:mdTop" mode="valueWithUomRef"/></td> |
---|
63 | <td colspan="2"><font size="-1"><b>MD bottom: </b></font> <xsl:apply-templates select="witsml:mdBottom" mode="valueWithUomRef"/></td> |
---|
64 | <td colspan="2"><font size="-1"><b>TVD top: </b></font> <xsl:apply-templates select="witsml:tvdTop" mode="valueWithUomRef"/></td> |
---|
65 | <td colspan="2"><font size="-1"><b>TVD bottom: </b></font> <xsl:apply-templates select="witsml:tvdBottom" mode="valueWithUomRef"/></td></tr> |
---|
66 | <tr> <td colspan="2"><font size="-1"><b>Inner diameter: </b></font> <xsl:apply-templates select="witsml:idSection" mode="valueWithUomRef"/></td> |
---|
67 | <td colspan="2"><font size="-1"><b>Outer diameter: </b></font> <xsl:apply-templates select="witsml:odSection" mode="valueWithUomRef"/></td> |
---|
68 | <td colspan="3"><font size="-1"><b>Wt. per unit length of casing section: </b></font> <xsl:apply-templates select="witsml:wtPerLen" mode="valueWithUomRef"/></td></tr> |
---|
69 | <tr> <td colspan="2"><font size="-1"><b>Curve Conductor?: </b></font> <xsl:value-of select="witsml:curveConductor"/></td> |
---|
70 | <td colspan="2"><font size="-1"><b>Max pass through dia.: </b></font> <xsl:apply-templates select="witsml:diaDrift" mode="valueWithUomRef"/></td> |
---|
71 | <td colspan="3"><font size="-1"><b>Friction factor: </b></font> <xsl:value-of select="witsml:factFric"/></td></tr> |
---|
72 | </xsl:template> |
---|
73 | |
---|
74 | |
---|
75 | </xsl:stylesheet> |
---|