[16] | 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> |
---|
| 11 | WITSML Target Data Object |
---|
| 12 | </title> |
---|
| 13 | </head> |
---|
| 14 | <body> |
---|
| 15 | <table border="2" align="center"> |
---|
| 16 | <tr><th colspan="9" ><font size="+2" color="blue">WITSML</font></th></tr> |
---|
| 17 | <tr><th colspan="9"><font size="+2" color="blue">Target Information</font></th></tr> |
---|
| 18 | <xsl:for-each select="witsml:targets"> |
---|
| 19 | <xsl:for-each select="witsml:target"> |
---|
| 20 | <tr> <td colspan="3"><font size="+1" color="blue">Well uid: </font> <xsl:value-of select="@uidWell"/></td> |
---|
| 21 | <td colspan="5"><font size="+1" color="blue">Well Name: </font> <xsl:value-of select="witsml:nameWell"/></td></tr> |
---|
| 22 | <tr> <td colspan="3"><font size="-1" color="blue"><b>Wellbore uid: </b></font> <font size="-1"><xsl:value-of select="@uidWellbore"/></font></td> |
---|
| 23 | <td colspan="5"><font size="-1" color="blue"><b>Target uid: </b></font> <font size="-1"><xsl:value-of select="@uid"/></font></td></tr> |
---|
| 24 | <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> |
---|
| 25 | <td colspan="5"><font size="-1" color="blue"><b>Target Name: </b></font> <font size="-1"><xsl:value-of select="witsml:name"/></font></td></tr> |
---|
| 26 | <tr> <td colspan="4"><font size="-1"><b>Target parent uid: </b> <xsl:value-of select="witsml:uidTargetParent"/></font></td> |
---|
| 27 | <td colspan="4"><font size="-1"><b>Target parent name: </b> <xsl:value-of select="witsml:nameTargetParent"/></font></td></tr> |
---|
| 28 | <tr> <td colspan="2" align="right"><font size="-1"><b>Target center points: </b></font></td> |
---|
| 29 | <td colspan="2"><font size="-1"><b>Northing: </b> <xsl:apply-templates select="witsml:dispNsCenter" mode="valueWithUomRef"/></font></td> |
---|
| 30 | <td colspan="2"><font size="-1"><b>Easting: </b> <xsl:apply-templates select="witsml:dispEwCenter" mode="valueWithUomRef"/></font></td> |
---|
| 31 | <td colspan="2"><font size="-1"><b>Depth: </b> <xsl:apply-templates select="witsml:dispEwCenter" mode="valueWithUomRef"/></font></td></tr> |
---|
| 32 | <tr> <td colspan="2"><font size="-1"><b></b></font></td> |
---|
| 33 | <td colspan="2"><font size="-1"><b>Height above: </b> <xsl:apply-templates select="witsml:thickAbove" mode="valueWithUomRef"/></font></td> |
---|
| 34 | <td colspan="2"><font size="-1"><b>Depth below: </b> <xsl:apply-templates select="witsml:thickBelow" mode="valueWithUomRef"/></font></td></tr> |
---|
| 35 | <tr> <td colspan="2" align="right"><font size="-1"><b>Offset of target intercept: </b></font></td> |
---|
| 36 | <td colspan="2"><font size="-1"><b>Northing: </b> <xsl:apply-templates select="witsml:dispNsCenter" mode="valueWithUomRef"/></font></td> |
---|
| 37 | <td colspan="2"><font size="-1"><b>Easting: </b> <xsl:apply-templates select="witsml:dispEwCenter" mode="valueWithUomRef"/></font></td></tr> |
---|
| 38 | <tr> <td colspan="2" align="right"><font size="-1"><b>Disp. sect. orig.: </b></font></td><td><font size="-1">NS: <xsl:apply-templates select="witsml:dispNsSectOrig" mode="valueWithUomRef"/></font></td> |
---|
| 39 | <td><font size="-1">EW: <xsl:apply-templates select="witsml:dispEwSectOrig" mode="valueWithUomRef"/></font></td></tr> |
---|
| 40 | <tr> <td colspan="2"><font size="-1"><b>Angle of dip: </b> <xsl:apply-templates select="witsml:dip" mode="valueWithUomRef"/></font></td> |
---|
| 41 | <td colspan="2"><font size="-1"><b>Direction of dip: </b> <xsl:apply-templates select="witsml:strike" mode="valueWithUomRef"/></font></td> |
---|
| 42 | <td colspan="2"><font size="-1"><b>Direction of target geometry: </b> <xsl:apply-templates select="witsml:rotation" mode="valueWithUomRef"/></font></td></tr> |
---|
| 43 | <tr> <td colspan="2"><font size="-1"><b>Major axis length: </b> <xsl:apply-templates select="witsml:lenMajorAxis" mode="valueWithUomRef"/></font></td> |
---|
| 44 | <td colspan="2"><font size="-1"><b>Minor Axis width: </b> <xsl:apply-templates select="witsml:widMinorAxis" mode="valueWithUomRef"/></font></td></tr> |
---|
| 45 | <tr> <td colspan="3"><font size="-1"><b>Type: </b> <xsl:value-of select="witsml:typeTargetScope"/></font></td> |
---|
| 46 | <td colspan="3"><font size="-1"><b>Azimuth ref: </b> <xsl:value-of select="witsml:aziRef"/></font></td> |
---|
| 47 | <td colspan="3"><font size="-1"><b>Target category: </b> <xsl:value-of select="witsml:catTarg"/></font></td></tr> |
---|
| 48 | |
---|
| 49 | <!-- Check for a location --> |
---|
| 50 | <xsl:if test="witsml:location"> |
---|
| 51 | <tr><td colspan="9" align="center"><font size="+1" color="blue">Target Location</font></td></tr> |
---|
| 52 | <xsl:for-each select="witsml:location"> |
---|
| 53 | <xsl:apply-templates select="."/> |
---|
| 54 | </xsl:for-each> |
---|
| 55 | </xsl:if> |
---|
| 56 | |
---|
| 57 | <tr><td colspan="9" align="center"><font size="+1" color="blue">Target Sections</font></td></tr> |
---|
| 58 | <!-- Check for a target section --> |
---|
| 59 | <xsl:for-each select="witsml:targetSection"> |
---|
| 60 | <xsl:apply-templates select="."/> |
---|
| 61 | </xsl:for-each> |
---|
| 62 | |
---|
| 63 | <!-- Common Data --> |
---|
| 64 | <tr><td colspan="9" align="center"><font size="+1" color="blue">Common Data</font></td></tr> |
---|
| 65 | <tr><td colspan="3"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td> |
---|
| 66 | <td colspan="3"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td> |
---|
| 67 | <td colspan="3"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr> |
---|
| 68 | <tr><td colspan="9"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr> |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | </xsl:for-each> |
---|
| 72 | </xsl:for-each> |
---|
| 73 | </table> |
---|
| 74 | </body> |
---|
| 75 | </html> |
---|
| 76 | </xsl:template> |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | <!-- section Template --> |
---|
| 80 | <xsl:template match="witsml:targetSection"> |
---|
| 81 | <tr><td colspan="1"><font size="-1"><b>Section seq.: </b> <xsl:value-of select="witsml:sectNumber"/></font></td> |
---|
| 82 | <td colspan="8"><font size="-1"><b>Type: </b> <xsl:value-of select="witsml:typeTargetSectionScope"/></font></td></tr> |
---|
| 83 | <tr><td colspan="1"><font size="-1"><b></b></font></td> |
---|
| 84 | <td colspan="2"><font size="-1"><b>Radius length: </b> <xsl:apply-templates select="witsml:lenRadius" mode="valueWithUomRef"/></font></td> |
---|
| 85 | <td colspan="2"><font size="-1"><b>Arc angle: </b> <xsl:apply-templates select="witsml:angleArc" mode="valueWithUomRef"/></font></td> |
---|
| 86 | <td colspan="2"><font size="-1"><b>Height above: </b> <xsl:apply-templates select="witsml:thickAbove" mode="valueWithUomRef"/></font></td> |
---|
| 87 | <td colspan="2"><font size="-1"><b>Depth below: </b> <xsl:apply-templates select="witsml:thickBelow" mode="valueWithUomRef"/></font></td></tr> |
---|
| 88 | <!-- Check for a location --> |
---|
| 89 | <tr><td colspan="1" align="left"><font size="-1"></font></td> |
---|
| 90 | <td colspan="8" align="center"><font size="-1"><b>Section Location</b></font></td></tr> |
---|
| 91 | <xsl:for-each select="witsml:location"> |
---|
| 92 | <xsl:apply-templates select="."/> |
---|
| 93 | </xsl:for-each> |
---|
| 94 | </xsl:template> |
---|
| 95 | |
---|
| 96 | <!-- Location Template --> |
---|
| 97 | <xsl:template match="witsml:location"> |
---|
| 98 | <tr> |
---|
| 99 | <td colspan="1"/> |
---|
| 100 | <td colspan="1"> |
---|
| 101 | <font size="-1"> |
---|
| 102 | <b>uid: </b> |
---|
| 103 | <xsl:value-of select="@uid" /> |
---|
| 104 | </font> |
---|
| 105 | </td> |
---|
| 106 | <td colspan="2"> |
---|
| 107 | <font size="-1"> |
---|
| 108 | <b>CRS Name: </b> |
---|
| 109 | <xsl:value-of select="witsml:nameWellCRS" /> |
---|
| 110 | </font> |
---|
| 111 | </td> |
---|
| 112 | <td colspan="1"> |
---|
| 113 | <font size="-1"> |
---|
| 114 | <b>CRS uid: </b> |
---|
| 115 | <xsl:value-of select="witsml:nameWellCRS/@uidRef" /> |
---|
| 116 | </font> |
---|
| 117 | </td> |
---|
| 118 | <xsl:if test="witsml:latitude"> |
---|
| 119 | <td colspan="1"> |
---|
| 120 | <font size="-1"> |
---|
| 121 | <b>Latitude: </b> |
---|
| 122 | <xsl:apply-templates select="witsml:latitude" mode="valueWithUomRef"/> |
---|
| 123 | </font> |
---|
| 124 | </td> |
---|
| 125 | <td colspan="1"> |
---|
| 126 | <font size="-1"> |
---|
| 127 | <b>Longitude: </b> |
---|
| 128 | <xsl:apply-templates select="witsml:longitude" mode="valueWithUomRef"/> |
---|
| 129 | </font> |
---|
| 130 | </td> |
---|
| 131 | </xsl:if> |
---|
| 132 | <xsl:if test="witsml:easting"> |
---|
| 133 | <td colspan="1"> |
---|
| 134 | <font size="-1"> |
---|
| 135 | <b>Easting: </b> |
---|
| 136 | <xsl:apply-templates select="witsml:easting" mode="valueWithUomRef"/> |
---|
| 137 | </font> |
---|
| 138 | </td> |
---|
| 139 | <td colspan="1"> |
---|
| 140 | <font size="-1"> |
---|
| 141 | <b>Northing: </b> |
---|
| 142 | <xsl:apply-templates select="witsml:northing" mode="valueWithUomRef"/> |
---|
| 143 | </font> |
---|
| 144 | </td> |
---|
| 145 | </xsl:if> |
---|
| 146 | <xsl:if test="witsml:westing"> |
---|
| 147 | <td colspan="1"> |
---|
| 148 | <font size="-1"> |
---|
| 149 | <b>Westing: </b> |
---|
| 150 | <xsl:apply-templates select="witsml:westing" mode="valueWithUomRef"/> |
---|
| 151 | </font> |
---|
| 152 | </td> |
---|
| 153 | <td colspan="1"> |
---|
| 154 | <font size="-1"> |
---|
| 155 | <b>Southing: </b> |
---|
| 156 | <xsl:apply-templates select="witsml:southing" mode="valueWithUomRef"/> |
---|
| 157 | </font> |
---|
| 158 | </td> |
---|
| 159 | </xsl:if> |
---|
| 160 | <xsl:if test="witsml:projectedX"> |
---|
| 161 | <td colspan="1"> |
---|
| 162 | <font size="-1"> |
---|
| 163 | <b>Projected X: </b> |
---|
| 164 | <xsl:apply-templates select="witsml:projectedX" mode="valueWithUomRef"/> |
---|
| 165 | </font> |
---|
| 166 | </td> |
---|
| 167 | <td colspan="1"> |
---|
| 168 | <font size="-1"> |
---|
| 169 | <b>Projected Y: </b> |
---|
| 170 | <xsl:apply-templates select="witsml:projectedY" mode="valueWithUomRef"/> |
---|
| 171 | </font> |
---|
| 172 | </td> |
---|
| 173 | </xsl:if> |
---|
| 174 | <xsl:if test="witsml:localX"> |
---|
| 175 | <td colspan="1"> |
---|
| 176 | <font size="-1"> |
---|
| 177 | <b>Local X: </b> |
---|
| 178 | <xsl:apply-templates select="witsml:localX" mode="valueWithUomRef"/> |
---|
| 179 | </font> |
---|
| 180 | </td> |
---|
| 181 | <td colspan="1"> |
---|
| 182 | <font size="-1"> |
---|
| 183 | <b>Local Y: </b> |
---|
| 184 | <xsl:apply-templates select="witsml:localY" mode="valueWithUomRef"/> |
---|
| 185 | </font> |
---|
| 186 | </td> |
---|
| 187 | </xsl:if> |
---|
| 188 | <td> |
---|
| 189 | <font size="-1"> |
---|
| 190 | <b>Original?: </b> |
---|
| 191 | <xsl:choose> |
---|
| 192 | <xsl:when test="witsml:original='true'" >yes</xsl:when> |
---|
| 193 | <xsl:when test="witsml:original='1'" >yes</xsl:when> |
---|
| 194 | <xsl:when test="witsml:original='false'">no</xsl:when> |
---|
| 195 | <xsl:when test="witsml:original='0'" >no</xsl:when> |
---|
| 196 | <xsl:otherwise >no</xsl:otherwise> |
---|
| 197 | </xsl:choose> |
---|
| 198 | </font> |
---|
| 199 | </td> |
---|
| 200 | <td colspan="2"> |
---|
| 201 | <font size="-1"> |
---|
| 202 | <b>Description: </b> |
---|
| 203 | <xsl:value-of select="witsml:description" /> |
---|
| 204 | </font> |
---|
| 205 | </td> |
---|
| 206 | </tr> |
---|
| 207 | </xsl:template> |
---|
| 208 | |
---|
| 209 | <!-- Common Data Template --> |
---|
| 210 | <xsl:template match="witsml:commonData"> |
---|
| 211 | <tr><td colspan="3"><font size="-1"><b>User ID: </b> <xsl:value-of select="witsml:nameSource"/></font></td> |
---|
| 212 | <td colspan="3"><font size="-1"><b>Time Stamp: </b> <xsl:value-of select="witsml:dTimStamp"/></font></td> |
---|
| 213 | <td colspan="3"><font size="-1"><b>State: </b> <xsl:value-of select="witsml:itemState"/></font></td></tr> |
---|
| 214 | <tr><td colspan="9"><font size="-1"><b>Comments: </b> <xsl:value-of select="witsml:comments"/></font></td></tr> |
---|
| 215 | </xsl:template> |
---|
| 216 | |
---|
| 217 | |
---|
| 218 | </xsl:stylesheet> |
---|