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 | WITSMLSidewall Core Data Object |
---|
13 | </title> |
---|
14 | </head> |
---|
15 | <body> |
---|
16 | <table border="2" align="center"> |
---|
17 | <tr><th colspan="8" ><font size="+2" color="blue">WITSML</font></th></tr> |
---|
18 | <tr><th colspan="8"><font size="+2" color="blue">Sidewall Core Information</font></th></tr> |
---|
19 | <xsl:for-each select="witsml:sidewallCores"> |
---|
20 | <xsl:for-each select="witsml:sidewallCore"> |
---|
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>Core 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>Core Name: </b></font> <font size="-1"><xsl:value-of select="witsml:name"/></font></td></tr> |
---|
27 | <tr><td colspan="2" align="right"><font size="-1"><b>Date/time logging suite: </b></font></td> |
---|
28 | <td colspan="2"><font size="-1"><b>Tool run in hole: </b></font> <font size="-1"><xsl:value-of select="witsml:dTimToolRun"/></font></td> |
---|
29 | <td colspan="4"><font size="-1"><b>Tool pulled out of hole: </b></font> <font size="-1"><xsl:value-of select="witsml:dTimToolPull"/></font></td></tr> |
---|
30 | <tr><td colspan="1" align="right"><font size="-1"><b>MD: </b></font></td> |
---|
31 | <td colspan="2"><font size="-1"><b>Tool Ref: </b></font> <xsl:apply-templates select="witsml:mdToolReference" mode="valueWithUomRef"/></td> |
---|
32 | <td colspan="2"><font size="-1"><b>Core depth</b></font> <xsl:apply-templates select="witsml:mdCore" mode="valueWithUomRef"/></td></tr> |
---|
33 | <tr><td colspan="1" align="right"><font size="-1"><b>Diameter: </b></font></td> |
---|
34 | <td colspan="2"><font size="-1"><b>Hole: </b></font> <xsl:apply-templates select="witsml:diaHole" mode="valueWithUomRef"/></td> |
---|
35 | <td colspan="2"><font size="-1"><b>Plug: </b></font> <xsl:apply-templates select="witsml:diaPlug" mode="valueWithUomRef"/></td></tr> |
---|
36 | <tr><td colspan="1" align="right"><font size="-1"><b>Number: </b></font></td> |
---|
37 | <td colspan="1"><font size="-1"><b>Total plugs: </b></font> <xsl:value-of select="witsml:numPlugsShot"/></td> |
---|
38 | <td colspan="1"><font size="-1"><b>Recovered plugs: </b></font> <xsl:value-of select="witsml:numRecPlugs"/></td> |
---|
39 | <td colspan="1"><font size="-1"><b>Misfired plugs: </b></font> <xsl:value-of select="witsml:numMisfiredPlugs"/></td> |
---|
40 | <td colspan="1"><font size="-1"><b>Empty plugs: </b></font> <xsl:value-of select="witsml:numEmptyPlugs"/></td> |
---|
41 | <td colspan="1"><font size="-1"><b>Lost plugs: </b></font> <xsl:value-of select="witsml:numLostPlugs"/></td> |
---|
42 | <td colspan="1"><font size="-1"><b>Paid for: </b></font> <xsl:value-of select="witsml:numPaidPlugs"/></td></tr> |
---|
43 | |
---|
44 | <tr><td colspan="3"><font size="-1"><b>Log Ref : </b></font> <xsl:value-of select="witsml:coreReferenceLog"/></td> |
---|
45 | <td colspan="5"><font size="-1"><b>Tool Desc. : </b></font> <xsl:value-of select="witsml:sidewallCoringTool"/></td></tr> |
---|
46 | <tr> <td colspan="3"><font size="-1"><b>Service Company: </b> <xsl:value-of select="witsml:serviceCompany"/></font></td> |
---|
47 | <td colspan="3"><font size="-1"><b>Analysis Contractor: </b> <xsl:value-of select="witsml:analysisContractor"/></font></td> |
---|
48 | <td colspan="2"><font size="-1"><b>Analysis by: </b> <xsl:value-of select="witsml:analysisBy"/></font></td></tr> |
---|
49 | |
---|
50 | <!-- Check for Lithology data --> |
---|
51 | <xsl:for-each select="witsml:swcSample"> |
---|
52 | <xsl:apply-templates select="."/> |
---|
53 | </xsl:for-each> |
---|
54 | |
---|
55 | <!-- Common Data --> |
---|
56 | <tr><td colspan="8" align="center"><font size="+1" color="blue">Common Data</font></td></tr> |
---|
57 | <tr><td colspan="2"><font size="-1"><b>Creation Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimCreation"/></font></td> |
---|
58 | <td colspan="2"><font size="-1"><b>Last Chg Time Stamp: </b><xsl:value-of select="witsml:commonData/witsml:dTimLastChange"/></font></td> |
---|
59 | <td colspan="4"><font size="-1"><b>State: </b><xsl:value-of select="witsml:commonData/witsml:itemState"/></font></td></tr> |
---|
60 | <tr><td colspan="8"><font size="-1"><b>Comments: </b><xsl:value-of select="witsml:commonData/witsml:comments"/></font></td></tr> |
---|
61 | |
---|
62 | |
---|
63 | </xsl:for-each> |
---|
64 | </xsl:for-each> |
---|
65 | </table> |
---|
66 | </body> |
---|
67 | </html> |
---|
68 | </xsl:template> |
---|
69 | |
---|
70 | <!-- Sidewall Core Sample Template --> |
---|
71 | <xsl:template match="witsml:swcSample"> |
---|
72 | <tr><td colspan="8" align="center"><font size="+1" color="blue">SWC Sample - <xsl:value-of select="./@witsmluidSwcPlug"/></font></td></tr> |
---|
73 | <tr><td colspan="2"><font size="-1"><b>MD plug: </b> <xsl:apply-templates select="witsml:md" mode="valueWithUomRef"/></font></td> |
---|
74 | <td colspan="6"><font size="-1"><b>Formation: </b> <xsl:value-of select="witsml:nameFormation"/></font></td></tr> |
---|
75 | |
---|
76 | <xsl:for-each select="witsml:commonData"> |
---|
77 | <tr><td colspan="8"><font size="-1"><b>Sample Comments: </b> <xsl:value-of select="witsml:comments"/></font></td></tr> |
---|
78 | </xsl:for-each> |
---|
79 | |
---|
80 | <!-- Check for Lithology data --> |
---|
81 | <xsl:for-each select="witsml:lithology"> |
---|
82 | <xsl:apply-templates select="."/> |
---|
83 | </xsl:for-each> |
---|
84 | |
---|
85 | <!-- Check for Show data --> |
---|
86 | <xsl:for-each select="witsml:show"> |
---|
87 | <xsl:apply-templates select="."/> |
---|
88 | </xsl:for-each> |
---|
89 | |
---|
90 | |
---|
91 | </xsl:template> |
---|
92 | |
---|
93 | <!-- Show Template --> |
---|
94 | <xsl:template match="witsml:show"> |
---|
95 | <tr><td colspan="2"><font size="+1" color="blue">Show</font></td> |
---|
96 | <td colspan="1"><font size="-1"><b>Rating: </b> <xsl:value-of select="witsml:showRat"/></font></td></tr> |
---|
97 | <tr><td align="right"><font size="-1"><b>Stain: </b></font></td> |
---|
98 | <td colspan="2"><font size="-1"><b>Color: </b> <xsl:value-of select="witsml:stainColor"/></font></td> |
---|
99 | <td colspan="4"><font size="-1"><b>Distribution: </b> <xsl:value-of select="witsml:stainDistr"/></font></td> |
---|
100 | <td colspan="1"><font size="-1"><b>Pct: </b> <xsl:value-of select="witsml:stainPc"/></font></td></tr> |
---|
101 | <tr><td align="right"><font size="-1"><b>Natural Fluorescence: </b></font></td> |
---|
102 | <td colspan="2"><font size="-1"><b>Color: </b> <xsl:value-of select="witsml:natFlorColor"/></font></td> |
---|
103 | <td colspan="2"><font size="-1"><b>Desc: </b> <xsl:value-of select="witsml:natFlorDesc"/></font></td> |
---|
104 | <td colspan="2"><font size="-1"><b>Level: </b> <xsl:value-of select="witsml:natFlorLevel"/></font></td> |
---|
105 | <td colspan="1"><font size="-1"><b>Pct: </b> <xsl:value-of select="witsml:stainPc"/></font></td></tr> |
---|
106 | <tr><td align="right"><font size="-1"><b>Cut: </b></font></td> |
---|
107 | <td colspan="1"><font size="-1"><b>Color: </b> <xsl:value-of select="witsml:cutColor"/></font></td> |
---|
108 | <td colspan="1"><font size="-1"><b>Speed: </b> <xsl:value-of select="witsml:cutSpeed"/></font></td> |
---|
109 | <td colspan="1"><font size="-1"><b>Strength: </b> <xsl:value-of select="witsml:cutStrength"/></font></td> |
---|
110 | <td colspan="1"><font size="-1"><b>Form: </b> <xsl:value-of select="witsml:cutForm"/></font></td> |
---|
111 | <td colspan="2"><font size="-1"><b>Level: </b> <xsl:value-of select="witsml:cutLevel"/></font></td></tr> |
---|
112 | <tr><td align="right"><font size="-1"><b>Cut Fluorescence: </b></font></td> |
---|
113 | <td colspan="1"><font size="-1"><b>Color: </b> <xsl:value-of select="witsml:cutFlorColor"/></font></td> |
---|
114 | <td colspan="1"><font size="-1"><b>Speed: </b> <xsl:value-of select="witsml:cutFlorSpeed"/></font></td> |
---|
115 | <td colspan="1"><font size="-1"><b>Strength: </b> <xsl:value-of select="witsml:cutFlorStrength"/></font></td> |
---|
116 | <td colspan="1"><font size="-1"><b>Form: </b> <xsl:value-of select="witsml:cutFlorForm"/></font></td> |
---|
117 | <td colspan="2"><font size="-1"><b>Level: </b> <xsl:value-of select="witsml:cutFlorLevel"/></font></td></tr> |
---|
118 | <tr> <td align="right"><font size="-1"><b>Residue Color: </b></font></td><td><font size="-1"> <xsl:value-of select="witsml:residueColor"/></font></td> |
---|
119 | <td colspan="3"><font size="-1"><b>Impregnated Litho: </b> <xsl:value-of select="witsml:impregnatedLitho"/></font></td> |
---|
120 | <td colspan="3"><font size="-1"><b>Odor: </b> <xsl:value-of select="witsml:odor"/></font></td></tr> |
---|
121 | <tr> <td align="right"><font size="-1"><b>Desc: </b></font></td><td colspan="7"><font size="-1"><xsl:value-of select="witsml:showDesc"/></font></td></tr> |
---|
122 | |
---|
123 | </xsl:template> |
---|
124 | |
---|
125 | <!-- Lithology Template --> |
---|
126 | <xsl:template match="witsml:lithology"> |
---|
127 | <tr><td colspan="2"><font size="+1" color="blue">Lithology</font> <font size="-1">(uid: <xsl:value-of select="./@uid"/>)</font></td> |
---|
128 | <td colspan="1"><font size="-1"><b>Type: </b> <xsl:apply-templates select="witsml:type" mode="LithologyType"/></font></td> |
---|
129 | <td colspan="2"><font size="-1"><b>Code: </b> <xsl:value-of select="witsml:codeLith"/></font></td> |
---|
130 | <td><font size="-1"><b>Pct: </b> <xsl:apply-templates select="witsml:lithPc" mode="valueWithUomRef"/></font></td></tr> |
---|
131 | <tr><td colspan="4"><font size="-1"><b>Desc: </b> <xsl:value-of select="witsml:description"/></font></td> |
---|
132 | <td colspan="2"><font size="-1"><b>Class: </b> <xsl:value-of select="witsml:lithClass"/></font></td> |
---|
133 | <td colspan="2"><font size="-1"><b>Grain Type: </b> <xsl:value-of select="witsml:grainType"/></font></td></tr> |
---|
134 | <tr><td colspan="4"><font size="-1"><b>Dunham Class: </b> <xsl:value-of select="witsml:dunhamClass"/></font></td> |
---|
135 | <td colspan="2"><font size="-1"><b>Color: </b> <xsl:value-of select="witsml:color"/></font></td> |
---|
136 | <td colspan="2"><font size="-1"><b>Texture: </b> <xsl:value-of select="witsml:texture"/></font></td></tr> |
---|
137 | <tr><td colspan="2"><font size="-1"><b>Hardness: </b> <xsl:value-of select="witsml:hardness"/></font></td> |
---|
138 | <td colspan="1"><font size="-1"><b>Size Grain: </b> <xsl:value-of select="witsml:sizeGrain"/></font></td> |
---|
139 | <td colspan="1"><font size="-1"><b>Roundness: </b> <xsl:value-of select="witsml:roundness"/></font></td> |
---|
140 | <td colspan="2"><font size="-1"><b>Sorting: </b> <xsl:value-of select="witsml:sorting"/></font></td></tr> |
---|
141 | <tr><td colspan="2"><font size="-1"><b>Matrix Cement: </b> <xsl:value-of select="witsml:matrixCement"/></font></td> |
---|
142 | <td colspan="1"><font size="-1"><b>Visible Porosity : </b> <xsl:value-of select="witsml:porosityVisible"/></font></td> |
---|
143 | <td colspan="5"><font size="-1"><b>Permeability: </b> <xsl:value-of select="witsml:permeability"/></font></td></tr> |
---|
144 | |
---|
145 | <tr> <td colspan="2"><font size="-1"><b>Shale Density: </b> <xsl:apply-templates select="witsml:densShale" mode="valueWithUomRef"/></font></td></tr> |
---|
146 | |
---|
147 | <!-- Check for Qualifier data --> |
---|
148 | <xsl:for-each select="witsml:qualifier"> |
---|
149 | <xsl:apply-templates select="."/> |
---|
150 | </xsl:for-each> |
---|
151 | </xsl:template> |
---|
152 | |
---|
153 | <!-- Qualifier Template --> |
---|
154 | <xsl:template match="witsml:qualifier"> |
---|
155 | <tr><td colspan="1" align="center"><font size="+1" color="blue">Qualifier</font></td> |
---|
156 | <td colspan="2"><font size="-1"><b>Type: </b> <xsl:apply-templates select="witsml:type" mode="QualifierType"/></font></td> |
---|
157 | <td colspan="1"><font size="-1"><b>MD Top: </b> <xsl:apply-templates select="witsml:mdTop" mode="valueWithUomRef"/></font></td> |
---|
158 | <td colspan="1"><font size="-1"><b>MD Bottom: </b> <xsl:apply-templates select="witsml:mdBottom" mode="valueWithUomRef"/></font></td> |
---|
159 | </tr> |
---|
160 | <tr><td colspan="1"><font size="-1"><b>Abundance: </b> <xsl:apply-templates select="witsml:abundance" mode="valueWithUomRef"/></font></td> |
---|
161 | <td colspan="2"><font size="-1"><b>Abundance Code: </b> <xsl:value-of select="witsml:abundanceCode"/></font></td> |
---|
162 | </tr> |
---|
163 | <tr><td colspan="8"><font size="-1"><b>Description: </b> <xsl:value-of select="witsml:description"/></font></td> |
---|
164 | </tr> |
---|
165 | </xsl:template> |
---|
166 | |
---|
167 | <!-- Element linked to the LithologyType in enum file. --> |
---|
168 | <xsl:template match="*" mode="LithologyType"> |
---|
169 | <a href="../ancillary/enumValues.xml#LithologyType::{.}"> |
---|
170 | <xsl:value-of select="."/> |
---|
171 | </a> |
---|
172 | </xsl:template> |
---|
173 | |
---|
174 | <!-- Element linked to the QualifierType in enum file. --> |
---|
175 | <xsl:template match="*" mode="QualifierType"> |
---|
176 | <a href="../ancillary/enumValues.xml#QualifierType::{.}"> |
---|
177 | <xsl:value-of select="."/> |
---|
178 | </a> |
---|
179 | </xsl:template> |
---|
180 | |
---|
181 | |
---|
182 | </xsl:stylesheet> |
---|