root / projects / DailyDrillingReport_1.2 / XML / PDFreport / ddr_HTMLReport_transformation_2011_03_09.xfd @ 160

Revision 160, 149.7 kB (checked in by yaolu, 13 years ago)

updated the pdf files

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<xfd:document xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sawsdl="http://www.w3.org/ns/sawsdl" xmlns:witsml="http://www.witsml.org/schemas/1series" sample-xsd="..\HTMLreport\WITSML_drillReport_profiled_schema_2011_01_29.xsd" sample-xml="..\HTMLreport\testDocumet_2011_02_07.xml">
3        <xfd:localization>
4                <xfd:locale language-id="en_US" language-name="English (United States)"/>
5        </xfd:localization>
6        <fo:layout-master-set>
7                <fo:simple-page-master master-name="Letter Page" page-width="30cm" page-height="20cm">
8                        <fo:region-body region-name="xsl-region-body" margin="67.200px"/>
9                        <fo:region-before region-name="xsl-region-before" display-align="after" extent="67.200px"/>
10                        <fo:region-after region-name="xsl-region-after" display-align="before" extent="67.200px"/>
11                        <fo:region-start region-name="xsl-region-start" extent="67.200px"/>
12                        <fo:region-end region-name="xsl-region-end" extent="67.200px"/>
13                </fo:simple-page-master>
14        </fo:layout-master-set>
15        <fo:page-sequence master-reference="Letter Page">
16                <fo:flow flow-name="xsl-region-body" font-family="Times" font-size="11pt">
17                        <xsl:variable name="ddrSchema">
18                                <xsl:value-of select="'..\HTMLreport\WITSML_drillReport_profiled_schema_2011_01_29.xsd'"/>
19                        </xsl:variable>
20                        <xsl:variable name="element_objDrillReport_sequence" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='obj_drillReport']/xsd:sequence/xsd:sequence"/>
21                        <xsl:variable name="element_drillReportWellboreInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportWellboreInfo']/xsd:sequence"/>
22                        <xsl:variable name="element_drillReportStatusInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportStatusInfo']/xsd:sequence"/>
23                        <xsl:variable name="urlRDS">
24                                <xsl:value-of select="'http://www.posccaesar.org'"/>
25                        </xsl:variable>
26<!-- Report header -->
27                        <fo:block>
28                                <fo:table table-layout="fixed" width="auto" border-collapse="collapse" margin-top="-5.200px">
29                                        <fo:table-column column-width="proportional-column-width(50.44)" column-number="1"/>
30                                        <fo:table-column column-width="proportional-column-width(49.56)" column-number="2"/>
31                                        <fo:table-body>
32                                                <fo:table-row>
33                                                        <fo:table-cell vertical-align="middle">
34                                                                <fo:block font-weight="bold" font-size="11pt">Summary report Wellbore: <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreAlias[witsml:namingSystem='NPD code']/witsml:name"/></fo:block>
35                                                        </fo:table-cell>
36                                                        <fo:table-cell vertical-align="middle">
37                                                                <fo:block font-weight="bold" text-align="right" font-size="11pt">End time:  <xfd:field xpath="substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0, 17)" fo:font-weight="bold"/></fo:block>
38                                                        </fo:table-cell>
39                                                </fo:table-row>
40                                        </fo:table-body>
41                                </fo:table>
42                                <fo:leader rule-thickness="5px" leader-length="100%" leader-pattern="rule"/>
43                                <fo:leader/>
44                        </fo:block>
45<!-- Wellbore info -->
46                        <fo:block>
47                                <xsl:variable name="url_versionKind">
48                                        <xsl:value-of select="$element_objDrillReport_sequence//xsd:element[@name='versionKind']/@sawsdl:modelReference"/>
49                                </xsl:variable>
50                                <xsl:variable name="url_createDate">
51                                        <xsl:value-of select="$element_objDrillReport_sequence//xsd:element[@name='createDate']/@sawsdl:modelReference"/>
52                                </xsl:variable>
53                                <xsl:variable name="url_operator">
54                                        <xsl:value-of select="$element_drillReportWellboreInfo//xsd:element[@name='operator']/@sawsdl:modelReference"/>
55                                </xsl:variable>
56                                <xsl:variable name="url_drillContractor">
57                                        <xsl:value-of select="$element_drillReportWellboreInfo//xsd:element[@name='drillContractor']/@sawsdl:modelReference"/>
58                                </xsl:variable>
59                                <xsl:variable name="url_rigAlias">
60                                        <xsl:value-of select="$element_drillReportWellboreInfo//xsd:element[@name='rigAlias']/@sawsdl:modelReference"/>
61                                </xsl:variable>
62                                <xsl:variable name="url_dTimSpud">
63                                        <xsl:value-of select="$element_drillReportWellboreInfo//xsd:element[@name='dTimSpud']/@sawsdl:modelReference"/>
64                                </xsl:variable>
65                                <xsl:variable name="url_dateDrillComplete">
66                                        <xsl:value-of select="$element_drillReportWellboreInfo//xsd:element[@name='dateDrillComplete']/@sawsdl:modelReference"/>
67                                </xsl:variable>
68                                <xsl:variable name="url_elevKelly">
69                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='elevKelly']/@sawsdl:modelReference"/>
70                                </xsl:variable>
71                                <xsl:variable name="url_typeWellbore">
72                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='typeWellbore']/@sawsdl:modelReference"/>
73                                </xsl:variable>
74                                <xsl:variable name="url_mdKickoff">
75                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='mdKickoff']/@sawsdl:modelReference"/>
76                                </xsl:variable>
77                                <xsl:variable name="url_tvdKickoff">
78                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdKickoff']/@sawsdl:modelReference"/>
79                                </xsl:variable>
80                                <xsl:variable name="url_mdPlugTop">
81                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='mdPlugTop']/@sawsdl:modelReference"/>
82                                </xsl:variable>
83                                <xsl:variable name="url_md">
84                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='md']/@sawsdl:modelReference"/>
85                                </xsl:variable>
86                                <xsl:variable name="url_tvd">
87                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvd']/@sawsdl:modelReference"/>
88                                </xsl:variable>
89                                <xsl:variable name="url_distDrill">
90                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='distDrill']/@sawsdl:modelReference"/>
91                                </xsl:variable>
92                                <xsl:variable name="url_ropCurrent">
93                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='ropCurrent']/@sawsdl:modelReference"/>
94                                </xsl:variable>
95                                <xsl:variable name="url_diaHole">
96                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='diaHole']/@sawsdl:modelReference"/>
97                                </xsl:variable>
98                                <xsl:variable name="url_presTestType">
99                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='presTestType']/@sawsdl:modelReference"/>
100                                </xsl:variable>
101                                <xsl:variable name="url_strengthForm">
102                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='strengthForm']/@sawsdl:modelReference"/>
103                                </xsl:variable>
104                                <xsl:variable name="url_mdStrengthForm">
105                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='mdStrengthForm']/@sawsdl:modelReference"/>
106                                </xsl:variable>
107                                <xsl:variable name="url_tvdStrengthForm">
108                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdStrengthForm']/@sawsdl:modelReference"/>
109                                </xsl:variable>
110                                <xsl:variable name="url_diaCsgLast">
111                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='diaCsgLast']/@sawsdl:modelReference"/>
112                                </xsl:variable>
113                                <xsl:variable name="url_mdCsgLast">
114                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='mdCsgLast']/@sawsdl:modelReference"/>
115                                </xsl:variable>
116                                <xsl:variable name="url_tvdCsgLast">
117                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdCsgLast']/@sawsdl:modelReference"/>
118                                </xsl:variable>
119                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
120                                        <fo:table-column column-width="proportional-column-width(17.79)" column-number="1"/>
121                                        <fo:table-column column-width="proportional-column-width(17.33)" column-number="2"/>
122                                        <fo:table-column column-width="proportional-column-width(18.898)" column-number="3"/>
123                                        <fo:table-column column-width="proportional-column-width(45.982)" column-number="4"/>
124                                        <fo:table-body>
125                                                <fo:table-row>
126                                                        <fo:table-cell vertical-align="middle">
127                                                                <fo:block font-weight="bold">Report Number:</fo:block>
128                                                        </fo:table-cell>
129                                                        <fo:table-cell vertical-align="middle">
130                                                                <fo:block>
131                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:reportNo"/>
132                                                                </fo:block>
133                                                        </fo:table-cell>
134                                                        <fo:table-cell vertical-align="middle">
135                                                                <fo:block font-size="11pt" font-weight="bold">Period:</fo:block>
136                                                        </fo:table-cell>
137                                                        <fo:table-cell vertical-align="middle">
138                                                                <fo:block>
139                                                                        <xfd:field xpath="concat(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0, 17), &quot;-&quot;, substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0, 17))"/>
140                                                                </fo:block>
141                                                        </fo:table-cell>
142                                                </fo:table-row>
143                                                <fo:table-row>
144                                                        <fo:table-cell vertical-align="middle">
145                                                                <fo:block font-weight="bold">Wellbore:</fo:block>
146                                                        </fo:table-cell>
147                                                        <fo:table-cell vertical-align="middle">
148                                                                <fo:block>
149                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreAlias[witsml:namingSystem='NPD code']/witsml:name"/>
150                                                                </fo:block>
151                                                        </fo:table-cell>
152                                                        <fo:table-cell vertical-align="middle">
153                                                                <fo:block font-size="11pt" font-weight="bold">Wellbore Id:</fo:block>
154                                                        </fo:table-cell>
155                                                        <fo:table-cell vertical-align="middle">
156                                                                <fo:block>
157                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreAlias[witsml:namingSystem='NPD number']/witsml:name"/>
158                                                                </fo:block>
159                                                        </fo:table-cell>
160                                                </fo:table-row>
161                                                <fo:table-row>
162                                                        <fo:table-cell vertical-align="middle">
163                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_versionKind})" font-weight="bold">Status:</fo:basic-link>
164                                                                 </fo:block>
165                                                        </fo:table-cell>
166                                                        <fo:table-cell vertical-align="middle">
167                                                                <fo:block>
168                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:versionKind"/>
169                                                                </fo:block>
170                                                        </fo:table-cell>
171                                                        <fo:table-cell vertical-align="middle">
172                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_createDate})" font-weight="bold">Created date:</fo:basic-link>
173                                                                 </fo:block>
174                                                        </fo:table-cell>
175                                                        <fo:table-cell vertical-align="middle">
176                                                                <fo:block>
177                                                                        <xfd:field xpath="substring(/witsml:drillReports/witsml:drillReport/witsml:createDate, 0, 17)"/>
178                                                                </fo:block>
179                                                        </fo:table-cell>
180                                                </fo:table-row>
181                                                <fo:table-row>
182                                                        <fo:table-cell vertical-align="middle">
183                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_operator})" font-weight="bold">Operator:</fo:basic-link>
184                                                                 </fo:block>
185                                                        </fo:table-cell>
186                                                        <fo:table-cell vertical-align="middle">
187                                                                <fo:block>
188                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:operator"/>
189                                                                </fo:block>
190                                                        </fo:table-cell>
191                                                        <fo:table-cell vertical-align="middle">
192                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_drillContractor})" font-weight="bold">Drilling contractor:</fo:basic-link>
193                                                                 </fo:block>
194                                                        </fo:table-cell>
195                                                        <fo:table-cell vertical-align="middle">
196                                                                <fo:block>
197                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:drillContractor"/>
198                                                                </fo:block>
199                                                        </fo:table-cell>
200                                                </fo:table-row>
201                                                <fo:table-row>
202                                                        <fo:table-cell vertical-align="middle">
203                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_rigAlias})" font-weight="bold">Rig name:</fo:basic-link>
204                                                                 </fo:block>
205                                                        </fo:table-cell>
206                                                        <fo:table-cell vertical-align="middle">
207                                                                <fo:block>
208                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:rigAlias[witsml:namingSystem='NPD name']/witsml:name"/>
209                                                                </fo:block>
210                                                        </fo:table-cell>
211                                                        <fo:table-cell vertical-align="middle">
212                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_rigAlias})" font-weight="bold">NPD Rig Id:</fo:basic-link><fo:inline font-size="11pt" font-weight="bold"> </fo:inline> </fo:block>
213                                                        </fo:table-cell>
214                                                        <fo:table-cell vertical-align="middle">
215                                                                <fo:block>
216                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:rigAlias[witsml:namingSystem='NPD code']/witsml:name"/>
217                                                                </fo:block>
218                                                        </fo:table-cell>
219                                                </fo:table-row>
220                                                <fo:table-row height="17.840px" overflow="hidden">
221                                                        <fo:table-cell vertical-align="middle">
222                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_dTimSpud})" font-weight="bold">Spud date:</fo:basic-link>
223                                                                 </fo:block>
224                                                        </fo:table-cell>
225                                                        <fo:table-cell vertical-align="middle">
226                                                                <fo:block>
227                                                                        <xfd:field xpath="substring-before(/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:dTimSpud, 'T')"/>
228                                                                </fo:block>
229                                                        </fo:table-cell>
230                                                        <fo:table-cell vertical-align="middle">
231                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_dateDrillComplete})" font-weight="bold">Date Well Complete:</fo:basic-link>
232                                                                 </fo:block>
233                                                        </fo:table-cell>
234                                                        <fo:table-cell vertical-align="middle">
235                                                                <fo:block> <xfd:field xpath="substring-before(/witsml:drillReports/witsml:drillReport/witsml:wellboreInfo/witsml:dateDrillComplete, 'T')"/>
236                                                                </fo:block>
237                                                        </fo:table-cell>
238                                                </fo:table-row>
239                                                <fo:table-row>
240                                                        <fo:table-cell vertical-align="middle">
241                                                                <fo:block font-weight="bold">Elevation RKB-MSL <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom" fo:font-weight="bold"/>:</fo:block>
242                                                        </fo:table-cell>
243                                                        <fo:table-cell vertical-align="middle">
244                                                                <fo:block>
245                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly"/>
246                                                                </fo:block>
247                                                        </fo:table-cell>
248                                                        <fo:table-cell vertical-align="middle">
249                                                                <fo:block font-size="11pt" font-weight="bold">Water depth MSL <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom"/>:</fo:block>
250                                                        </fo:table-cell>
251                                                        <fo:table-cell vertical-align="middle">
252                                                                <fo:block>
253                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth"/>
254                                                                </fo:block>
255                                                        </fo:table-cell>
256                                                </fo:table-row>
257                                                <fo:table-row>
258                                                        <fo:table-cell vertical-align="middle">
259                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$urlRDS})" font-weight="bold">Tight well</fo:basic-link>: </fo:block>
260                                                        </fo:table-cell>
261                                                        <fo:table-cell vertical-align="middle">
262                                                                <fo:block>
263                                                                        <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='1'">yes</xsl:if>
264                                                                        <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='0'">no</xsl:if>
265                                                                </fo:block>
266                                                        </fo:table-cell>
267                                                        <fo:table-cell vertical-align="middle">
268                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$urlRDS})" font-weight="bold">High pressure - High temperature</fo:basic-link>  </fo:block>
269                                                        </fo:table-cell>
270                                                        <fo:table-cell vertical-align="middle">
271                                                                <fo:block>
272                                                                        <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='1'">yes</xsl:if>
273                                                                        <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false' or /witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='0'">no</xsl:if>
274                                                                </fo:block>
275                                                        </fo:table-cell>
276                                                </fo:table-row>
277                                                <fo:table-row>
278                                                        <fo:table-cell vertical-align="middle">
279                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$urlRDS})">Pressure </fo:basic-link><xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgPresBH/@uom"/>: </fo:block>
280                                                        </fo:table-cell>
281                                                        <fo:table-cell vertical-align="middle">
282                                                                <fo:block>
283                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgPresBH"/>
284                                                                </fo:block>
285                                                        </fo:table-cell>
286                                                        <fo:table-cell vertical-align="middle">
287                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$urlRDS})">Temperature </fo:basic-link><xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH/@uom"/>: </fo:block>
288                                                        </fo:table-cell>
289                                                        <fo:table-cell vertical-align="middle">
290                                                                <fo:block>
291                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH"/>
292                                                                </fo:block>
293                                                        </fo:table-cell>
294                                                </fo:table-row>
295                                                <fo:table-row>
296                                                        <fo:table-cell vertical-align="middle">
297                                                                <fo:block font-weight="bold">Rig type</fo:block>
298                                                        </fo:table-cell>
299                                                        <fo:table-cell vertical-align="middle">
300                                                                <fo:block>
301                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:rigType"/>
302                                                                </fo:block>
303                                                        </fo:table-cell>
304                                                        <fo:table-cell vertical-align="middle">
305                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_typeWellbore})">Wellbore type:</fo:basic-link>   </fo:block>
306                                                        </fo:table-cell>
307                                                        <fo:table-cell vertical-align="middle">
308                                                                <fo:block>
309                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:typeWellbore"/>
310                                                                </fo:block>
311                                                        </fo:table-cell>
312                                                </fo:table-row>
313                                                <fo:table-row>
314                                                        <fo:table-cell vertical-align="middle">
315                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_mdKickoff})">Depth at Kick Off mMD:</fo:basic-link>   </fo:block>
316                                                        </fo:table-cell>
317                                                        <fo:table-cell vertical-align="middle">
318                                                                <fo:block>
319                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:mdKickoff"/>
320                                                                </fo:block>
321                                                        </fo:table-cell>
322                                                        <fo:table-cell vertical-align="middle">
323                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_tvdKickoff})">Depth at Kick Off mTVD:</fo:basic-link>  </fo:block>
324                                                        </fo:table-cell>
325                                                        <fo:table-cell vertical-align="middle">
326                                                                <fo:block>
327                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tvdKickoff"/>
328                                                                </fo:block>
329                                                        </fo:table-cell>
330                                                </fo:table-row>
331                                                <fo:table-row>
332                                                        <fo:table-cell vertical-align="middle">
333                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_md})">Depth mMD:</fo:basic-link>  </fo:block>
334                                                        </fo:table-cell>
335                                                        <fo:table-cell vertical-align="middle">
336                                                                <fo:block>
337                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:md"/>
338                                                                </fo:block>
339                                                        </fo:table-cell>
340                                                        <fo:table-cell vertical-align="middle">
341                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_tvd})">Depth mTVD:</fo:basic-link>  </fo:block>
342                                                        </fo:table-cell>
343                                                        <fo:table-cell vertical-align="middle">
344                                                                <fo:block>
345                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tvd"/>
346                                                                </fo:block>
347                                                        </fo:table-cell>
348                                                </fo:table-row>
349                                                <fo:table-row>
350                                                        <fo:table-cell vertical-align="middle">
351                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_mdPlugTop})">Plug Back Depth mMD:</fo:basic-link>  </fo:block>
352                                                        </fo:table-cell>
353                                                        <fo:table-cell vertical-align="middle">
354                                                                <fo:block>
355                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:mdPlugTop"/>
356                                                                </fo:block>
357                                                        </fo:table-cell>
358                                                        <fo:table-cell vertical-align="middle">
359                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_distDrill})">Dist Drilled</fo:basic-link>  <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:distDrill/@uom"/>: </fo:block>
360                                                        </fo:table-cell>
361                                                        <fo:table-cell vertical-align="middle">
362                                                                <fo:block>
363                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:distDrill"/>
364                                                                </fo:block>
365                                                        </fo:table-cell>
366                                                </fo:table-row>
367                                                <fo:table-row>
368                                                        <fo:table-cell vertical-align="middle">
369                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_ropCurrent})">Penetration Rate</fo:basic-link> <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:ropCurrent/@uom"/>: </fo:block>
370                                                        </fo:table-cell>
371                                                        <fo:table-cell vertical-align="middle">
372                                                                <fo:block>
373                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:ropCurrent"/>
374                                                                </fo:block>
375                                                        </fo:table-cell>
376                                                        <fo:table-cell vertical-align="middle">
377                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_diaHole})">Hole Dia </fo:basic-link><xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:diaHole/@uom"/>: </fo:block>
378                                                        </fo:table-cell>
379                                                        <fo:table-cell vertical-align="middle">
380                                                                <fo:block>
381                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:diaHole"/>
382                                                                </fo:block>
383                                                        </fo:table-cell>
384                                                </fo:table-row>
385                                                <fo:table-row>
386                                                        <fo:table-cell vertical-align="middle">
387                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_presTestType})">Pressure Test Type:</fo:basic-link>  </fo:block>
388                                                        </fo:table-cell>
389                                                        <fo:table-cell vertical-align="middle">
390                                                                <fo:block>
391                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:presTestType"/>
392                                                                </fo:block>
393                                                        </fo:table-cell>
394                                                        <fo:table-cell vertical-align="middle">
395                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_strengthForm})">Formation Strength</fo:basic-link><xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:strengthForm/@uom"/>: </fo:block>
396                                                        </fo:table-cell>
397                                                        <fo:table-cell vertical-align="middle">
398                                                                <fo:block>
399                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:strengthForm"/>
400                                                                </fo:block>
401                                                        </fo:table-cell>
402                                                </fo:table-row>
403                                                <fo:table-row>
404                                                        <fo:table-cell vertical-align="middle">
405                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_mdStrengthForm})">Depth At Formation Strength mMD:</fo:basic-link>   </fo:block>
406                                                        </fo:table-cell>
407                                                        <fo:table-cell vertical-align="middle">
408                                                                <fo:block>
409                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:mdStrengthForm"/>
410                                                                </fo:block>
411                                                        </fo:table-cell>
412                                                        <fo:table-cell vertical-align="middle">
413                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_tvdStrengthForm})">Depth At Formation Strength mTVD</fo:basic-link>: </fo:block>
414                                                        </fo:table-cell>
415                                                        <fo:table-cell vertical-align="middle">
416                                                                <fo:block>
417                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tvdStrengthForm"/>
418                                                                </fo:block>
419                                                        </fo:table-cell>
420                                                </fo:table-row>
421                                                <fo:table-row>
422                                                        <fo:table-cell vertical-align="middle">
423                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_diaCsgLast})">Dia Last Casing</fo:basic-link>  <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:diaCsgLast/@uom"/>: </fo:block>
424                                                        </fo:table-cell>
425                                                        <fo:table-cell vertical-align="middle">
426                                                                <fo:block>
427                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:diaCsgLast"/>
428                                                                </fo:block>
429                                                        </fo:table-cell>
430                                                        <fo:table-cell vertical-align="middle">
431                                                                <fo:block font-size="11pt" font-weight="bold"><fo:basic-link external-destination="url({$url_mdCsgLast})">Depth At Last Casing mMD:</fo:basic-link>
432                                                                 </fo:block>
433                                                        </fo:table-cell>
434                                                        <fo:table-cell vertical-align="middle">
435                                                                <fo:block>
436                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:mdCsgLast"/>
437                                                                </fo:block>
438                                                        </fo:table-cell>
439                                                </fo:table-row>
440                                                <fo:table-row>
441                                                        <fo:table-cell vertical-align="middle">
442                                                                <fo:block font-weight="bold"><fo:basic-link external-destination="url({$url_tvdCsgLast})">Depth At Last Casing mTVD:</fo:basic-link>
443                                                                 </fo:block>
444                                                        </fo:table-cell>
445                                                        <fo:table-cell vertical-align="middle">
446                                                                <fo:block>
447                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tvdCsgLast"/>
448                                                                </fo:block>
449                                                        </fo:table-cell>
450                                                        <fo:table-cell vertical-align="middle">
451                                                                <fo:block font-size="11pt" font-weight="bold"> </fo:block>
452                                                        </fo:table-cell>
453                                                        <fo:table-cell vertical-align="middle">
454                                                                <fo:block> </fo:block>
455                                                        </fo:table-cell>
456                                                </fo:table-row>
457                                        </fo:table-body>
458                                </fo:table>
459                        </fo:block>
460<!-- Summary of activity -->
461                        <fo:block break-before="page">
462                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
463                                <fo:leader/>
464                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
465                                        <fo:table-column column-width="proportional-column-width(100)" column-number="1"/>
466                                        <fo:table-body>
467                                                <fo:table-row font-weight="bold" font-size="14pt">
468                                                        <fo:table-cell>
469                                                                <fo:block>Summary of Activities (24 Hours)</fo:block>
470                                                        </fo:table-cell>
471                                                </fo:table-row>
472                                                <fo:table-row>
473                                                        <fo:table-cell>
474                                                                <fo:block>
475                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:sum24Hr"/>
476                                                                </fo:block>
477                                                        </fo:table-cell>
478                                                </fo:table-row>
479                                        </fo:table-body>
480                                </fo:table>
481                        </fo:block>
482<!-- Summary of Planned Activities -->
483                        <fo:block>
484                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
485                                <fo:leader/>
486                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
487                                        <fo:table-column column-width="proportional-column-width(100)" column-number="1"/>
488                                        <fo:table-body>
489                                                <fo:table-row font-weight="bold" font-size="14pt">
490                                                        <fo:table-cell>
491                                                                <fo:block>Summary of Planned Activities (Next 24 Hours)</fo:block>
492                                                        </fo:table-cell>
493                                                </fo:table-row>
494                                                <fo:table-row>
495                                                        <fo:table-cell>
496                                                                <fo:block>
497                                                                        <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:forecast24Hr"/>
498                                                                </fo:block>
499                                                        </fo:table-cell>
500                                                </fo:table-row>
501                                        </fo:table-body>
502                                </fo:table>
503                        </fo:block>
504<!-- Operations -->
505                        <fo:block break-before="page">
506                                <xsl:variable name="element_activity" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_activity']/xsd:sequence"/>
507                                <xsl:variable name="url_dTimStart">
508                                        <xsl:value-of select="$element_activity//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/>
509                                </xsl:variable>
510                                <xsl:variable name="url_dTimEnd">
511                                        <xsl:value-of select="$element_activity//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/>
512                                </xsl:variable>
513                                <xsl:variable name="url_md">
514                                        <xsl:value-of select="$element_activity//xsd:element[@name='md']/@sawsdl:modelReference"/>
515                                </xsl:variable>
516                                <xsl:variable name="url_proprietaryCode">
517                                        <xsl:value-of select="$element_activity//xsd:element[@name='proprietaryCode']/@sawsdl:modelReference"/>
518                                </xsl:variable>
519                                <xsl:variable name="url_state">
520                                        <xsl:value-of select="$element_activity//xsd:element[@name='state']/@sawsdl:modelReference"/>
521                                </xsl:variable>
522                                <xsl:variable name="url_comments">
523                                        <xsl:value-of select="$element_activity//xsd:element[@name='comments']/@sawsdl:modelReference"/>
524                                </xsl:variable>
525                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
526                                <fo:leader/>
527                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
528                                        <fo:table-column column-width="proportional-column-width(100)" column-number="1"/>
529                                        <fo:table-body>
530                                                <fo:table-row font-weight="bold" font-size="14pt">
531                                                        <fo:table-cell>
532                                                                <fo:block>Operation</fo:block>
533                                                        </fo:table-cell>
534                                                </fo:table-row>
535                                                <fo:table-row>
536                                                        <fo:table-cell>
537                                                                <fo:block font-weight="bold"> </fo:block>
538                                                        </fo:table-cell>
539                                                </fo:table-row>
540                                                <fo:table-row>
541                                                        <fo:table-cell>
542                                                                <fo:block>
543                                                                        <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
544                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="1"/>
545                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="2"/>
546                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="3"/>
547                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="4"/>
548                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="5"/>
549                                                                                <fo:table-column column-width="proportional-column-width(14.407)" column-number="6"/>
550                                                                                <fo:table-column column-width="proportional-column-width(10.593)" column-number="7"/>
551                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="8"/>
552                                                                                <fo:table-body>
553                                                                                        <fo:table-row font-weight="bold">
554                                                                                                <fo:table-cell>
555                                                                                                        <fo:block>
556                                                                                                                <fo:basic-link external-destination="url({$url_dTimStart})">Start Time</fo:basic-link>
557                                                                                                        </fo:block>
558                                                                                                </fo:table-cell>
559                                                                                                <fo:table-cell>
560                                                                                                        <fo:block>
561                                                                                                                <fo:basic-link external-destination="url({$url_dTimEnd})">End Time</fo:basic-link>
562                                                                                                        </fo:block>
563                                                                                                </fo:table-cell>
564                                                                                                <fo:table-cell>
565                                                                                                        <fo:block>
566                                                                                                                <fo:basic-link external-destination="url({$url_md})">Start Depth</fo:basic-link>
567                                                                                                        </fo:block>
568                                                                                                        <fo:block>mMD</fo:block>
569                                                                                                </fo:table-cell>
570                                                                                                <fo:table-cell>
571                                                                                                        <fo:block>
572                                                                                                                <fo:basic-link external-destination="url({$url_md})">End Depth</fo:basic-link>
573                                                                                                        </fo:block>
574                                                                                                        <fo:block>mMD</fo:block>
575                                                                                                </fo:table-cell>
576                                                                                                <fo:table-cell>
577                                                                                                        <fo:block>
578                                                                                                                <fo:basic-link external-destination="url({$url_md})">Depth</fo:basic-link>
579                                                                                                        </fo:block>
580                                                                                                        <fo:block>mMD</fo:block>
581                                                                                                </fo:table-cell>
582                                                                                                <fo:table-cell>
583                                                                                                        <fo:block>
584                                                                                                                <fo:basic-link external-destination="url({$url_proprietaryCode})">Main Oper Class</fo:basic-link>
585                                                                                                        </fo:block>
586                                                                                                </fo:table-cell>
587                                                                                                <fo:table-cell>
588                                                                                                        <fo:block>
589                                                                                                                <fo:basic-link external-destination="url({$url_state})">Main Oper Eval Class</fo:basic-link>
590                                                                                                        </fo:block>
591                                                                                                </fo:table-cell>
592                                                                                                <fo:table-cell>
593                                                                                                        <fo:block>
594                                                                                                                <fo:basic-link external-destination="url({$url_comments})">Remark</fo:basic-link>
595                                                                                                        </fo:block>
596                                                                                                </fo:table-cell>
597                                                                                        </fo:table-row>
598                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:activity">
599                                                                                                <fo:table-cell>
600                                                                                                        <fo:block>
601                                                                                                                <xfd:field xpath="substring-after(substring(witsml:dTimStart, 0, 17), 'T')"/>
602                                                                                                        </fo:block>
603                                                                                                </fo:table-cell>
604                                                                                                <fo:table-cell>
605                                                                                                        <fo:block>
606                                                                                                                <xfd:field xpath="substring-after(substring(witsml:dTimEnd, 0, 17), 'T')"/>
607                                                                                                        </fo:block>
608                                                                                                </fo:table-cell>
609                                                                                                <fo:table-cell>
610                                                                                                        <fo:block>
611                                                                                                                <xfd:field xpath="witsml:mdHoleStart"/>
612                                                                                                        </fo:block>
613                                                                                                </fo:table-cell>
614                                                                                                <fo:table-cell>
615                                                                                                        <fo:block>
616                                                                                                                <xfd:field xpath="witsml:mdHoleEnd"/>
617                                                                                                        </fo:block>
618                                                                                                </fo:table-cell>
619                                                                                                <fo:table-cell>
620                                                                                                        <fo:block>
621                                                                                                                <xfd:field xpath="witsml:md"/>
622                                                                                                        </fo:block>
623                                                                                                </fo:table-cell>
624                                                                                                <fo:table-cell>
625                                                                                                        <fo:block>
626                                                                                                                <xfd:field xpath="witsml:proprietaryCode"/>
627                                                                                                        </fo:block>
628                                                                                                </fo:table-cell>
629                                                                                                <fo:table-cell>
630                                                                                                        <fo:block>
631                                                                                                                <xfd:field xpath="witsml:state"/>
632                                                                                                        </fo:block>
633                                                                                                </fo:table-cell>
634                                                                                                <fo:table-cell>
635                                                                                                        <fo:block>
636                                                                                                                <xfd:field xpath="witsml:comments"/>
637                                                                                                        </fo:block>
638                                                                                                </fo:table-cell>
639                                                                                        </xfd:table-row-repeat>
640                                                                                </fo:table-body>
641                                                                        </fo:table>
642                                                                </fo:block>
643                                                        </fo:table-cell>
644                                                </fo:table-row>
645                                        </fo:table-body>
646                                </fo:table>
647                        </fo:block>
648<!-- Equipment failure info -->
649                        <fo:block>
650                                <xsl:variable name="element_equipFailureInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportEquipFailureInfo']/xsd:sequence"/>
651                                <xsl:variable name="url_dTim">
652                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='dTim']/@sawsdl:modelReference"/>
653                                </xsl:variable>
654                                <xsl:variable name="url_md">
655                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='md']/@sawsdl:modelReference"/>
656                                </xsl:variable>
657                                <xsl:variable name="url_equipClass">
658                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='equipClass']/@sawsdl:modelReference"/>
659                                </xsl:variable>
660                                <xsl:variable name="url_eTimMissProduction">
661                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='eTimMissProduction']/@sawsdl:modelReference"/>
662                                </xsl:variable>
663                                <xsl:variable name="url_dTimRepair">
664                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='dTimRepair']/@sawsdl:modelReference"/>
665                                </xsl:variable>
666                                <xsl:variable name="url_description">
667                                        <xsl:value-of select="$element_equipFailureInfo//xsd:element[@name='description']/@sawsdl:modelReference"/>
668                                </xsl:variable>
669                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
670                                <fo:leader/>
671                                <fo:table>
672                                        <fo:table-column column-width="100%"/>
673                                        <fo:table-body>
674                                                <fo:table-row font-weight="bold" font-size="14pt">
675                                                        <fo:table-cell>
676                                                                <fo:block>
677                                                                        Equipment Failure Information
678                                                                </fo:block>
679                                                        </fo:table-cell>
680                                                </fo:table-row>
681                                                <fo:table-row font-weight="bold" font-size="14pt">
682                                                        <fo:table-cell>
683                                                                <fo:block> </fo:block>
684                                                        </fo:table-cell>
685                                                </fo:table-row>
686                                                <fo:table-row>
687                                                        <fo:table-cell>
688                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
689                                                                                <fo:table-column column-width="proportional-column-width(19.454)" column-number="1"/>
690                                                                                <fo:table-column column-width="proportional-column-width(13.879)" column-number="2"/>
691                                                                                <fo:table-column column-width="proportional-column-width(16.667)" column-number="3"/>
692                                                                                <fo:table-column column-width="proportional-column-width(16.667)" column-number="4"/>
693                                                                                <fo:table-column column-width="proportional-column-width(18.427)" column-number="5"/>
694                                                                                <fo:table-column column-width="proportional-column-width(14.906)" column-number="6"/>
695                                                                                <fo:table-body>
696                                                                                        <fo:table-row font-weight="bold">
697                                                                                                <fo:table-cell>
698                                                                                                        <fo:block>
699                                                                                                                <fo:basic-link external-destination="url({$url_dTim})">Start</fo:basic-link>
700                                                                                                        </fo:block>
701                                                                                                </fo:table-cell>
702                                                                                                <fo:table-cell>
703                                                                                                        <fo:block>
704                                                                                                                <fo:basic-link external-destination="url({$url_md})">Depth</fo:basic-link>
705                                                                                                        </fo:block>
706                                                                                                        <fo:block>mMD</fo:block>
707                                                                                                </fo:table-cell>
708                                                                                                <fo:table-cell>
709                                                                                                        <fo:block>
710                                                                                                                <fo:basic-link external-destination="url({$url_equipClass})">Sub Equip Syst Class</fo:basic-link>
711                                                                                                        </fo:block>
712                                                                                                </fo:table-cell>
713                                                                                                <fo:table-cell>
714                                                                                                        <fo:block>
715                                                                                                                <fo:basic-link external-destination="url({$url_eTimMissProduction})">Operation Downtime</fo:basic-link>
716                                                                                                        </fo:block>
717                                                                                                        <fo:block>
718                                                                                                                <xfd:field xpath="/drillReports/drillReport/equipFailureInfo/eTimMissProduction/@uom"/>
719                                                                                                        </fo:block>
720                                                                                                </fo:table-cell>
721                                                                                                <fo:table-cell>
722                                                                                                        <fo:block>
723                                                                                                                <fo:basic-link external-destination="url({$url_dTimRepair})">Equipment Repaired</fo:basic-link>
724                                                                                                        </fo:block>
725                                                                                                </fo:table-cell>
726                                                                                                <fo:table-cell>
727                                                                                                        <fo:block>
728                                                                                                                <fo:basic-link external-destination="url({$url_description})">Equip Failure Description</fo:basic-link>
729                                                                                                        </fo:block>
730                                                                                                </fo:table-cell>
731                                                                                        </fo:table-row>
732                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:equipFailureInfo">
733                                                                                                <fo:table-cell>
734                                                                                                        <fo:block>
735                                                                                                                <xfd:field xpath="substring(witsml:dTim, 0, 17)"/>
736                                                                                                        </fo:block>
737                                                                                                </fo:table-cell>
738                                                                                                <fo:table-cell>
739                                                                                                        <fo:block>
740                                                                                                                <xfd:field xpath="witsml:md"/>
741                                                                                                        </fo:block>
742                                                                                                </fo:table-cell>
743                                                                                                <fo:table-cell>
744                                                                                                        <fo:block>
745                                                                                                                <xfd:field xpath="witsml:equipClass"/>
746                                                                                                        </fo:block>
747                                                                                                </fo:table-cell>
748                                                                                                <fo:table-cell>
749                                                                                                        <fo:block>
750                                                                                                                <xfd:field xpath="witsml:eTimMissProduction"/>
751                                                                                                        </fo:block>
752                                                                                                </fo:table-cell>
753                                                                                                <fo:table-cell>
754                                                                                                        <fo:block>
755                                                                                                                <xfd:field xpath="substring(witsml:dTimRepair, 0, 17)"/>
756                                                                                                        </fo:block>
757                                                                                                </fo:table-cell>
758                                                                                                <fo:table-cell>
759                                                                                                        <fo:block>
760                                                                                                                <xfd:field xpath="witsml:description"/>
761                                                                                                        </fo:block>
762                                                                                                </fo:table-cell>
763                                                                                        </xfd:table-row-repeat>
764                                                                                </fo:table-body>
765                                                                        </fo:table> </fo:block>
766                                                        </fo:table-cell>
767                                                </fo:table-row>
768                                        </fo:table-body>
769                                </fo:table>
770                        </fo:block>
771<!-- Bit Record -->
772                        <fo:block break-before="page">
773                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
774                                <fo:leader/>
775                                <xsl:variable name="element_bitRecord" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_bitRecord']/xsd:sequence"/>
776                                <xsl:variable name="url_numBit">
777                                        <xsl:value-of select="$element_bitRecord//xsd:element[@name='numBit']/@sawsdl:modelReference"/>
778                                </xsl:variable>
779                                <xsl:variable name="url_diaBit">
780                                        <xsl:value-of select="$element_bitRecord//xsd:element[@name='diaBit']/@sawsdl:modelReference"/>
781                                </xsl:variable>
782                                <xsl:variable name="url_codeMfg">
783                                        <xsl:value-of select="$element_bitRecord//xsd:element[@name='codeMfg']/@sawsdl:modelReference"/>
784                                </xsl:variable>
785                                <xsl:variable name="url_manufacturer">
786                                        <xsl:value-of select="$element_bitRecord//xsd:element[@name='manufacturer']/@sawsdl:modelReference"/>
787                                </xsl:variable>
788                                <fo:table width="100%">
789                                        <fo:table-column/>
790                                        <fo:table-body>
791                                                <fo:table-row font-weight="bold" font-size="14pt">
792                                                        <fo:table-cell>
793                                                                <fo:block>
794                                                                        Bit Record
795                                                                </fo:block>
796                                                        </fo:table-cell>
797                                                </fo:table-row>
798                                                <fo:table-row>
799                                                        <fo:table-cell>
800                                                                <fo:block> </fo:block>
801                                                        </fo:table-cell>
802                                                </fo:table-row>
803                                                <fo:table-row>
804                                                        <fo:table-cell>
805                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse" text-align="center">
806                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="1"/>
807                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="2"/>
808                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="3"/>
809                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="4"/>
810                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="5"/>
811                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="6"/>
812                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="7"/>
813                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="8"/>
814                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="9"/>
815                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="10"/>
816                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="11"/>
817                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="12"/>
818                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="13"/>
819                                                                                <fo:table-body>
820                                                                                        <fo:table-row font-weight="bold">
821                                                                                                <fo:table-cell>
822                                                                                                        <fo:block>
823                                                                                                                <fo:basic-link external-destination="url({$url_diaBit})">Bit size</fo:basic-link>
824                                                                                                        </fo:block>
825                                                                                                        <fo:block>
826                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:diaBit/@uom"/>
827                                                                                                        </fo:block>
828                                                                                                </fo:table-cell>
829                                                                                                <fo:table-cell>
830                                                                                                        <fo:block>
831                                                                                                                <fo:basic-link external-destination="url({$url_numBit})">Run No</fo:basic-link>
832                                                                                                        </fo:block>
833                                                                                                </fo:table-cell>
834                                                                                                <fo:table-cell>
835                                                                                                        <fo:block>
836                                                                                                                <fo:basic-link external-destination="url({$url_codeMfg})">Model</fo:basic-link>
837                                                                                                        </fo:block>
838                                                                                                </fo:table-cell>
839                                                                                                <fo:table-cell>
840                                                                                                        <fo:block>Hours drilled</fo:block>
841                                                                                                        <fo:block>
842                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom"/>
843                                                                                                        </fo:block>
844                                                                                                </fo:table-cell>
845                                                                                                <fo:table-cell>
846                                                                                                        <fo:block>MD Start</fo:block>
847                                                                                                        <fo:block>
848                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart/@uom"/>
849                                                                                                        </fo:block>
850                                                                                                </fo:table-cell>
851                                                                                                <fo:table-cell>
852                                                                                                        <fo:block>MD end</fo:block>
853                                                                                                        <fo:block>
854                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/>
855                                                                                                        </fo:block>
856                                                                                                </fo:table-cell>
857                                                                                                <fo:table-cell>
858                                                                                                        <fo:block>Hole made (run)</fo:block>
859                                                                                                        <fo:block>
860                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/>
861                                                                                                        </fo:block>
862                                                                                                </fo:table-cell>
863                                                                                                <fo:table-cell>
864                                                                                                        <fo:block>Hours drilled (run)</fo:block>
865                                                                                                        <fo:block>
866                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/>
867                                                                                                        </fo:block>
868                                                                                                </fo:table-cell>
869                                                                                                <fo:table-cell>
870                                                                                                        <fo:block>ROP</fo:block>
871                                                                                                        <fo:block>
872                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/>
873                                                                                                        </fo:block>
874                                                                                                </fo:table-cell>
875                                                                                                <fo:table-cell>
876                                                                                                        <fo:block>Total hole made</fo:block>
877                                                                                                        <fo:block>
878                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/>
879                                                                                                        </fo:block>
880                                                                                                </fo:table-cell>
881                                                                                                <fo:table-cell>
882                                                                                                        <fo:block>Total hours drilled</fo:block>
883                                                                                                        <fo:block>
884                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/>
885                                                                                                        </fo:block>
886                                                                                                </fo:table-cell>
887                                                                                                <fo:table-cell>
888                                                                                                        <fo:block>Total ROP</fo:block>
889                                                                                                        <fo:block>
890                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom"/>
891                                                                                                        </fo:block>
892                                                                                                </fo:table-cell>
893                                                                                                <fo:table-cell>
894                                                                                                        <fo:block>Dull grade</fo:block>
895                                                                                                </fo:table-cell>
896                                                                                        </fo:table-row>
897                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord">
898                                                                                                <fo:table-cell>
899                                                                                                        <fo:block>
900                                                                                                                <xfd:field xpath="witsml:diaBit"/>
901                                                                                                        </fo:block>
902                                                                                                </fo:table-cell>
903                                                                                                <fo:table-cell>
904                                                                                                        <fo:block>
905                                                                                                                <xfd:field xpath="witsml:numBit"/>
906                                                                                                        </fo:block>
907                                                                                                </fo:table-cell>
908                                                                                                <fo:table-cell>
909                                                                                                        <fo:block>
910                                                                                                                <xfd:field xpath="witsml:codeMfg"/>
911                                                                                                        </fo:block>
912                                                                                                </fo:table-cell>
913                                                                                                <fo:table-cell>
914                                                                                                        <fo:block>
915                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:eTimOpBit"/>
916                                                                                                        </fo:block>
917                                                                                                </fo:table-cell>
918                                                                                                <fo:table-cell>
919                                                                                                        <fo:block>
920                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:mdHoleStart"/>
921                                                                                                        </fo:block>
922                                                                                                </fo:table-cell>
923                                                                                                <fo:table-cell>
924                                                                                                        <fo:block>
925                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:mdHoleStop"/>
926                                                                                                        </fo:block>
927                                                                                                </fo:table-cell>
928                                                                                                <fo:table-cell>
929                                                                                                        <fo:block>
930                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/>
931                                                                                                        </fo:block>
932                                                                                                </fo:table-cell>
933                                                                                                <fo:table-cell>
934                                                                                                        <fo:block>
935                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:eTimOpBit"/>
936                                                                                                        </fo:block>
937                                                                                                </fo:table-cell>
938                                                                                                <fo:table-cell>
939                                                                                                        <fo:block>
940                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:ropAv"/>
941                                                                                                        </fo:block>
942                                                                                                </fo:table-cell>
943                                                                                                <fo:table-cell>
944                                                                                                        <fo:block>
945                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:mdTotHoleMade"/>
946                                                                                                        </fo:block>
947                                                                                                </fo:table-cell>
948                                                                                                <fo:table-cell>
949                                                                                                        <fo:block>
950                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:totHrsDrilled"/>
951                                                                                                        </fo:block>
952                                                                                                </fo:table-cell>
953                                                                                                <fo:table-cell>
954                                                                                                        <fo:block>
955                                                                                                                <xfd:field xpath="witsml:bitRun/witsml:ropMx"/>
956                                                                                                        </fo:block>
957                                                                                                </fo:table-cell>
958                                                                                                <fo:table-cell>
959                                                                                                        <fo:block>
960                                                                                                                <xfd:field xpath="witsml:dullGrade"/>
961                                                                                                        </fo:block>
962                                                                                                </fo:table-cell>
963                                                                                        </xfd:table-row-repeat>
964                                                                                </fo:table-body>
965                                                                        </fo:table> 
966                                                                </fo:block>
967                                                        </fo:table-cell>
968                                                </fo:table-row>
969                                        </fo:table-body>
970                                </fo:table>
971                        </fo:block>
972<!-- Casing/Liner/Tubing -->
973                        <fo:block>
974                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
975                                <fo:leader/>
976                                <fo:table>
977                                        <fo:table-column column-width="100%"/>
978                                        <fo:table-body>
979                                                <fo:table-row font-weight="bold" font-size="14pt">
980                                                        <fo:table-cell>
981                                                                <fo:block>
982                                                                        Casing/Liner/Tubing information
983                                                                </fo:block>
984                                                        </fo:table-cell>
985                                                </fo:table-row>
986                                                <fo:table-row>
987                                                        <fo:table-cell>
988                                                                <fo:block> </fo:block>
989                                                        </fo:table-cell>
990                                                </fo:table-row>
991                                                <fo:table-row>
992                                                        <fo:table-cell>
993                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
994                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="1"/>
995                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="2"/>
996                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="3"/>
997                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="4"/>
998                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="5"/>
999                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="6"/>
1000                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="7"/>
1001                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="8"/>
1002                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="9"/>
1003                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="10"/>
1004                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="11"/>
1005                                                                                <fo:table-column column-width="proportional-column-width(8.333)" column-number="12"/>
1006                                                                                <fo:table-body>
1007                                                                                        <fo:table-row font-weight="bold">
1008                                                                                                <fo:table-cell>
1009                                                                                                        <fo:block>Type of pipe</fo:block>
1010                                                                                                </fo:table-cell>
1011                                                                                                <fo:table-cell>
1012                                                                                                        <fo:block>Casing type</fo:block>
1013                                                                                                </fo:table-cell>
1014                                                                                                <fo:table-cell>
1015                                                                                                        <fo:block>Run time</fo:block>
1016                                                                                                </fo:table-cell>
1017                                                                                                <fo:table-cell>
1018                                                                                                        <fo:block>Description</fo:block>
1019                                                                                                </fo:table-cell>
1020                                                                                                <fo:table-cell>
1021                                                                                                        <fo:block>Nominal outside diameter</fo:block>
1022                                                                                                        <fo:block>
1023                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:od/@uom"/>
1024                                                                                                        </fo:block>
1025                                                                                                </fo:table-cell>
1026                                                                                                <fo:table-cell>
1027                                                                                                        <fo:block>Nominal inside diameter</fo:block>
1028                                                                                                        <fo:block>
1029                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:id/@uom"/>
1030                                                                                                        </fo:block>
1031                                                                                                </fo:table-cell>
1032                                                                                                <fo:table-cell>
1033                                                                                                        <fo:block>Nominal Weight</fo:block>
1034                                                                                                        <fo:block>
1035                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:weight/@uom"/>
1036                                                                                                        </fo:block>
1037                                                                                                </fo:table-cell>
1038                                                                                                <fo:table-cell>
1039                                                                                                        <fo:block>Nominal Grade</fo:block>
1040                                                                                                </fo:table-cell>
1041                                                                                                <fo:table-cell>
1042                                                                                                        <fo:block>Nominal Connection</fo:block>
1043                                                                                                </fo:table-cell>
1044                                                                                                <fo:table-cell>
1045                                                                                                        <fo:block>Length</fo:block>
1046                                                                                                        <fo:block>
1047                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom"/>
1048                                                                                                        </fo:block>
1049                                                                                                </fo:table-cell>
1050                                                                                                <fo:table-cell>
1051                                                                                                        <fo:block>MD Top/Hangar</fo:block>
1052                                                                                                        <fo:block>
1053                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom"/>
1054                                                                                                        </fo:block>
1055                                                                                                </fo:table-cell>
1056                                                                                                <fo:table-cell>
1057                                                                                                        <fo:block>MD Bottom/Shoe</fo:block>
1058                                                                                                        <fo:block>
1059                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdBottom/@uom"/>
1060                                                                                                        </fo:block>
1061                                                                                                </fo:table-cell>
1062                                                                                        </fo:table-row>
1063                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing">
1064                                                                                                <fo:table-cell>
1065                                                                                                        <fo:block>
1066                                                                                                                <xsl:variable name="element_pipeType" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='tubularTypes']/xsd:restriction"/>
1067                                                                                                                <xsl:variable name="pipeType" select="witsml:type"/>
1068                                                                                                                <xfd:field xpath="$element_pipeType//xsd:enumeration[@value=$pipeType]"/>
1069                                                                                                        </fo:block>
1070                                                                                                </fo:table-cell>
1071                                                                                                <fo:table-cell>
1072                                                                                                        <fo:block>
1073                                                                                                                <xfd:field xpath="witsml:casing_liner_tubing_run/witsml:tubularJobType"/>
1074                                                                                                        </fo:block>
1075                                                                                                </fo:table-cell>
1076                                                                                                <fo:table-cell>
1077                                                                                                        <fo:block>
1078                                                                                                                <xfd:field xpath="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/>
1079                                                                                                        </fo:block>
1080                                                                                                </fo:table-cell>
1081                                                                                                <fo:table-cell>
1082                                                                                                        <fo:block>
1083                                                                                                                <xfd:field xpath="witsml:casing_liner_tubing_run/witsml:description"/>
1084                                                                                                        </fo:block>
1085                                                                                                </fo:table-cell>
1086                                                                                                <fo:table-cell>
1087                                                                                                        <fo:block>
1088                                                                                                                <xfd:field xpath="witsml:od"/>
1089                                                                                                        </fo:block>
1090                                                                                                </fo:table-cell>
1091                                                                                                <fo:table-cell>
1092                                                                                                        <fo:block>
1093                                                                                                                <xfd:field xpath="witsml:id"/>
1094                                                                                                        </fo:block>
1095                                                                                                </fo:table-cell>
1096                                                                                                <fo:table-cell>
1097                                                                                                        <fo:block>
1098                                                                                                                <xfd:field xpath="witsml:weight"/>
1099                                                                                                        </fo:block>
1100                                                                                                </fo:table-cell>
1101                                                                                                <fo:table-cell>
1102                                                                                                        <fo:block>
1103                                                                                                                <xfd:field xpath="witsml:grade"/>
1104                                                                                                        </fo:block>
1105                                                                                                </fo:table-cell>
1106                                                                                                <fo:table-cell>
1107                                                                                                        <fo:block>
1108                                                                                                                <xfd:field xpath="witsml:connection"/>
1109                                                                                                        </fo:block>
1110                                                                                                </fo:table-cell>
1111                                                                                                <fo:table-cell>
1112                                                                                                        <fo:block>
1113                                                                                                                <xfd:field xpath="witsml:mdBottom - witsml:mdTop"/>
1114                                                                                                        </fo:block>
1115                                                                                                </fo:table-cell>
1116                                                                                                <fo:table-cell>
1117                                                                                                        <fo:block>
1118                                                                                                                <xfd:field xpath="witsml:mdTop"/>
1119                                                                                                        </fo:block>
1120                                                                                                </fo:table-cell>
1121                                                                                                <fo:table-cell>
1122                                                                                                        <fo:block>
1123                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
1124                                                                                                        </fo:block>
1125                                                                                                </fo:table-cell>
1126                                                                                        </xfd:table-row-repeat>
1127                                                                                </fo:table-body>
1128                                                                        </fo:table> </fo:block>
1129                                                        </fo:table-cell>
1130                                                </fo:table-row>
1131                                        </fo:table-body>
1132                                </fo:table>
1133                        </fo:block>
1134<!-- Cement info -->
1135                        <fo:block break-before="page">
1136                                <xfd:block-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:cementStage">
1137                                        <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
1138                                        <fo:leader/>
1139                                        <fo:table>
1140                                                <fo:table-column column-width="100%"/>
1141                                                <fo:table-body>
1142                                                        <fo:table-row font-weight="bold" font-size="14pt">
1143                                                                <fo:table-cell>
1144                                                                        <fo:block>
1145                                                                        Cement information
1146                                                                </fo:block>
1147                                                                </fo:table-cell>
1148                                                        </fo:table-row>
1149                                                        <fo:table-row>
1150                                                                <fo:table-cell>
1151                                                                        <fo:block> </fo:block>
1152                                                                </fo:table-cell>
1153                                                        </fo:table-row>
1154                                                        <fo:table-row>
1155                                                                <fo:table-cell>
1156                                                                        <fo:block>
1157                                                                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1158                                                                                        <fo:table-column column-width="6.667" column-number="1"/>
1159                                                                                        <fo:table-column column-width="6.667" column-number="2"/>
1160                                                                                        <fo:table-column column-width="6.667" column-number="3"/>
1161                                                                                        <fo:table-column column-width="6.667" column-number="4"/>
1162                                                                                        <fo:table-column column-width="6.667" column-number="5"/>
1163                                                                                        <fo:table-column column-width="6.667" column-number="6"/>
1164                                                                                        <fo:table-column column-width="6.667" column-number="7"/>
1165                                                                                        <fo:table-column column-width="6.667" column-number="8"/>
1166                                                                                        <fo:table-column column-width="6.667" column-number="9"/>
1167                                                                                        <fo:table-column column-width="6.667" column-number="10"/>
1168                                                                                        <fo:table-column column-width="6.667" column-number="11"/>
1169                                                                                        <fo:table-column column-width="6.667" column-number="12"/>
1170                                                                                        <fo:table-column column-width="6.667" column-number="13"/>
1171                                                                                        <fo:table-column column-width="6.667" column-number="14"/>
1172                                                                                        <fo:table-column column-width="6.667" column-number="15"/>
1173                                                                                        <fo:table-body>
1174                                                                                                <fo:table-row font-weight="bold">
1175                                                                                                        <fo:table-cell>
1176                                                                                                                <fo:block>Start time</fo:block>
1177                                                                                                        </fo:table-cell>
1178                                                                                                        <fo:table-cell>
1179                                                                                                                <fo:block>End time</fo:block>
1180                                                                                                        </fo:table-cell>
1181                                                                                                        <fo:table-cell>
1182                                                                                                                <fo:block>Job type</fo:block>
1183                                                                                                        </fo:table-cell>
1184                                                                                                        <fo:table-cell>
1185                                                                                                                <fo:block>Casing string diameter</fo:block>
1186                                                                                                                <fo:block>
1187                                                                                                                        <xfd:field xpath="witsml:casingStrDia/@uom"/>
1188                                                                                                                </fo:block>
1189                                                                                                        </fo:table-cell>
1190                                                                                                        <fo:table-cell>
1191                                                                                                                <fo:block>Comments</fo:block>
1192                                                                                                        </fo:table-cell>
1193                                                                                                        <fo:table-cell>
1194                                                                                                                <fo:block>Top plug used</fo:block>
1195                                                                                                        </fo:table-cell>
1196                                                                                                        <fo:table-cell>
1197                                                                                                                <fo:block>Bottom plug used</fo:block>
1198                                                                                                        </fo:table-cell>
1199                                                                                                        <fo:table-cell>
1200                                                                                                                <fo:block>Plug bumped</fo:block>
1201                                                                                                        </fo:table-cell>
1202                                                                                                        <fo:table-cell>
1203                                                                                                                <fo:block>Plug bump pressure</fo:block>
1204                                                                                                                <fo:block>
1205                                                                                                                        <xfd:field xpath="witsml:presBump/@uom"/>
1206                                                                                                                </fo:block>
1207                                                                                                        </fo:table-cell>
1208                                                                                                        <fo:table-cell>
1209                                                                                                                <fo:block>Float held</fo:block>
1210                                                                                                        </fo:table-cell>
1211                                                                                                        <fo:table-cell>
1212                                                                                                                <fo:block>Pressure release time</fo:block>
1213                                                                                                        </fo:table-cell>
1214                                                                                                        <fo:table-cell>
1215                                                                                                                <fo:block>Full returns</fo:block>
1216                                                                                                        </fo:table-cell>
1217                                                                                                        <fo:table-cell>
1218                                                                                                                <fo:block>Cement volume returns</fo:block>
1219                                                                                                                <fo:block>
1220                                                                                                                        <xfd:field xpath="witsml:volReturns/@uom"/>
1221                                                                                                                </fo:block>
1222                                                                                                        </fo:table-cell>
1223                                                                                                        <fo:table-cell>
1224                                                                                                                <fo:block>Reciprocated</fo:block>
1225                                                                                                        </fo:table-cell>
1226                                                                                                        <fo:table-cell>
1227                                                                                                                <fo:block>Rotated</fo:block>
1228                                                                                                        </fo:table-cell>
1229                                                                                                </fo:table-row>
1230                                                                                                <fo:table-row>
1231                                                                                                        <fo:table-cell>
1232                                                                                                                <fo:block>
1233                                                                                                                        <xfd:field xpath="substring-after(substring(witsml:dTimPumpStart, 0, 17), 'T')"/>
1234                                                                                                                </fo:block>
1235                                                                                                        </fo:table-cell>
1236                                                                                                        <fo:table-cell>
1237                                                                                                                <fo:block>
1238                                                                                                                        <xfd:field xpath="substring-after(substring(witsml:dTimPumpEnd, 0, 17), 'T')"/>
1239                                                                                                                </fo:block>
1240                                                                                                        </fo:table-cell>
1241                                                                                                        <fo:table-cell>
1242                                                                                                                <fo:block>
1243                                                                                                                        <xfd:field xpath="witsml:jobType"/>
1244                                                                                                                </fo:block>
1245                                                                                                        </fo:table-cell>
1246                                                                                                        <fo:table-cell>
1247                                                                                                                <fo:block>
1248                                                                                                                        <xfd:field xpath="witsml:casingStrDia"/>
1249                                                                                                                </fo:block>
1250                                                                                                        </fo:table-cell>
1251                                                                                                        <fo:table-cell>
1252                                                                                                                <fo:block>
1253                                                                                                                        <xfd:field xpath="witsml:comments"/>
1254                                                                                                                </fo:block>
1255                                                                                                        </fo:table-cell>
1256                                                                                                        <fo:table-cell>
1257                                                                                                                <fo:block>
1258                                                                                                                        <xsl:if test="witsml:topPlug='true' or witsml:topPlug='1'">yes</xsl:if>
1259                                                                                                                        <xsl:if test="witsml:topPlug='false' or witsml:topPlug='0'">no</xsl:if>
1260                                                                                                                </fo:block>
1261                                                                                                        </fo:table-cell>
1262                                                                                                        <fo:table-cell>
1263                                                                                                                <fo:block>
1264                                                                                                                        <xsl:if test="witsml:botPlug='true' or witsml:botPlug='1'">yes</xsl:if>
1265                                                                                                                        <xsl:if test="witsml:botPlug='false' or witsml:botPlug='0'">no</xsl:if>
1266                                                                                                                </fo:block>
1267                                                                                                        </fo:table-cell>
1268                                                                                                        <fo:table-cell>
1269                                                                                                                <fo:block>
1270                                                                                                                        <xsl:if test="witsml:plugBumped='true' or witsml:plugBumped='1'">yes</xsl:if>
1271                                                                                                                        <xsl:if test="witsml:plugBumped='false' or witsml:plugBumped='0'">no</xsl:if>
1272                                                                                                                </fo:block>
1273                                                                                                        </fo:table-cell>
1274                                                                                                        <fo:table-cell>
1275                                                                                                                <fo:block>
1276                                                                                                                        <xfd:field xpath="witsml:presBump"/>
1277                                                                                                                </fo:block>
1278                                                                                                        </fo:table-cell>
1279                                                                                                        <fo:table-cell>
1280                                                                                                                <fo:block>
1281                                                                                                                        <xsl:if test="witsml:floatHeld='true' or witsml:floatHeld='1'">yes</xsl:if>
1282                                                                                                                        <xsl:if test="witsml:floatHeld='false' or witsml:floatHeld='0'">no</xsl:if>
1283                                                                                                                </fo:block>
1284                                                                                                        </fo:table-cell>
1285                                                                                                        <fo:table-cell>
1286                                                                                                                <fo:block>
1287                                                                                                                        <xfd:field xpath="substring(witsml:eTimPresHeld, 0, 17)"/>
1288                                                                                                                </fo:block>
1289                                                                                                        </fo:table-cell>
1290                                                                                                        <fo:table-cell>
1291                                                                                                                <fo:block>
1292                                                                                                                        <xsl:if test="witsml:annFlowAfter='true' or witsml:annFlowAfter='1'">yes</xsl:if>
1293                                                                                                                        <xsl:if test="witsml:annFlowAfter='false' or witsml:annFlowAfter='0'">no</xsl:if>
1294                                                                                                                </fo:block>
1295                                                                                                        </fo:table-cell>
1296                                                                                                        <fo:table-cell>
1297                                                                                                                <fo:block>
1298                                                                                                                        <xfd:field xpath="witsml:volReturns"/>
1299                                                                                                                </fo:block>
1300                                                                                                        </fo:table-cell>
1301                                                                                                        <fo:table-cell>
1302                                                                                                                <fo:block>
1303                                                                                                                        <xsl:if test="witsml:reciprocated='true' or witsml:reciprocated='1'">yes</xsl:if>
1304                                                                                                                        <xsl:if test="witsml:reciprocated='false' or witsml:reciprocated='0'">no</xsl:if>
1305                                                                                                                </fo:block>
1306                                                                                                        </fo:table-cell>
1307                                                                                                        <fo:table-cell>
1308                                                                                                                <fo:block>
1309                                                                                                                        <xsl:if test="witsml:rotated='true' or witsml:rotated='1'">yes</xsl:if>
1310                                                                                                                        <xsl:if test="witsml:rotated='false' or witsml:rotated='0'">no</xsl:if>
1311                                                                                                                </fo:block>
1312                                                                                                        </fo:table-cell>
1313                                                                                                </fo:table-row>
1314                                                                                        </fo:table-body>
1315                                                                                </fo:table>
1316                                                                        </fo:block>
1317                                                                </fo:table-cell>
1318                                                        </fo:table-row>
1319                                                        <fo:table-row>
1320                                                                <fo:table-cell>
1321                                                                        <fo:block/>
1322                                                                </fo:table-cell>
1323                                                        </fo:table-row>
1324                                                        <fo:table-row>
1325                                                                <fo:table-cell>
1326                                                                        <fo:block> </fo:block>
1327                                                                </fo:table-cell>
1328                                                        </fo:table-row>
1329                                                        <fo:table-row font-weight="bold" font-size="13pt">
1330                                                                <fo:table-cell>
1331                                                                        <fo:block>Cement Fluid Information</fo:block>
1332                                                                </fo:table-cell>
1333                                                        </fo:table-row>
1334                                                        <fo:table-row>
1335                                                                <fo:table-cell>
1336                                                                        <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1337                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="1"/>
1338                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="2"/>
1339                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="3"/>
1340                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="4"/>
1341                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="5"/>
1342                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="6"/>
1343                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="7"/>
1344                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="8"/>
1345                                                                                        <fo:table-column column-width="proportional-column-width(8.333)" column-number="9"/>
1346                                                                                        <fo:table-body>
1347                                                                                                <fo:table-row font-weight="bold">
1348                                                                                                        <fo:table-cell>
1349                                                                                                                <fo:block>Fluid type</fo:block>
1350                                                                                                        </fo:table-cell>
1351                                                                                                        <fo:table-cell>
1352                                                                                                                <fo:block>Fluid Description</fo:block>
1353                                                                                                        </fo:table-cell>
1354                                                                                                        <fo:table-cell>
1355                                                                                                                <fo:block>Volume pumped</fo:block>
1356                                                                                                                <fo:block>
1357                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:volPumped/@uom"/>
1358                                                                                                                </fo:block>
1359                                                                                                        </fo:table-cell>
1360                                                                                                        <fo:table-cell>
1361                                                                                                                <fo:block>Fluid densitiy</fo:block>
1362                                                                                                                <fo:block>
1363                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:density/@uom"/>
1364                                                                                                                </fo:block>
1365                                                                                                        </fo:table-cell>
1366                                                                                                        <fo:table-cell>
1367                                                                                                                <fo:block>Yield point</fo:block>
1368                                                                                                                <fo:block>
1369                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:yp/@uom"/>
1370                                                                                                                </fo:block>
1371                                                                                                        </fo:table-cell>
1372                                                                                                        <fo:table-cell>
1373                                                                                                                <fo:block>Mix water ratio</fo:block>
1374                                                                                                                <fo:block>
1375                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:ratioMixWater/@uom"/>
1376                                                                                                                </fo:block>
1377                                                                                                        </fo:table-cell>
1378                                                                                                        <fo:table-cell>
1379                                                                                                                <fo:block>Free water</fo:block>
1380                                                                                                                <fo:block>
1381                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:pcFreeWater/@uom"/>
1382                                                                                                                </fo:block>
1383                                                                                                        </fo:table-cell>
1384                                                                                                        <fo:table-cell>
1385                                                                                                                <fo:block>Thick time</fo:block>
1386                                                                                                                <fo:block>
1387                                                                                                                        <xfd:field xpath="witsml:cementingFluid/witsml:eTimThickening/@uom"/>
1388                                                                                                                </fo:block>
1389                                                                                                        </fo:table-cell>
1390                                                                                                        <fo:table-cell>
1391                                                                                                                <fo:block>Comments</fo:block>
1392                                                                                                        </fo:table-cell>
1393                                                                                                </fo:table-row>
1394                                                                                                <xfd:table-row-repeat xpath="witsml:cementingFluid">
1395                                                                                                        <fo:table-cell>
1396                                                                                                                <fo:block>
1397                                                                                                                        <xfd:field xpath="witsml:typeFluid"/>
1398                                                                                                                </fo:block>
1399                                                                                                        </fo:table-cell>
1400                                                                                                        <fo:table-cell>
1401                                                                                                                <fo:block>
1402                                                                                                                        <xfd:field xpath="witsml:descFluid"/>
1403                                                                                                                </fo:block>
1404                                                                                                        </fo:table-cell>
1405                                                                                                        <fo:table-cell>
1406                                                                                                                <fo:block>
1407                                                                                                                        <xfd:field xpath="witsml:volPumped"/>
1408                                                                                                                </fo:block>
1409                                                                                                        </fo:table-cell>
1410                                                                                                        <fo:table-cell>
1411                                                                                                                <fo:block>
1412                                                                                                                        <xfd:field xpath="witsml:density"/>
1413                                                                                                                </fo:block>
1414                                                                                                        </fo:table-cell>
1415                                                                                                        <fo:table-cell>
1416                                                                                                                <fo:block>
1417                                                                                                                        <xfd:field xpath="witsml:yp"/>
1418                                                                                                                </fo:block>
1419                                                                                                        </fo:table-cell>
1420                                                                                                        <fo:table-cell>
1421                                                                                                                <fo:block>
1422                                                                                                                        <xfd:field xpath="witsml:ratioMixWater"/>
1423                                                                                                                </fo:block>
1424                                                                                                        </fo:table-cell>
1425                                                                                                        <fo:table-cell>
1426                                                                                                                <fo:block>
1427                                                                                                                        <xfd:field xpath="witsml:pcFreeWater"/>
1428                                                                                                                </fo:block>
1429                                                                                                        </fo:table-cell>
1430                                                                                                        <fo:table-cell>
1431                                                                                                                <fo:block>
1432                                                                                                                        <xfd:field xpath="witsml:eTimThickening"/>
1433                                                                                                                </fo:block>
1434                                                                                                        </fo:table-cell>
1435                                                                                                        <fo:table-cell>
1436                                                                                                                <fo:block>
1437                                                                                                                        <xfd:field xpath="witsml:comments"/>
1438                                                                                                                </fo:block>
1439                                                                                                        </fo:table-cell>
1440                                                                                                </xfd:table-row-repeat>
1441                                                                                                <fo:table-row>
1442                                                                                                        <fo:table-cell>
1443                                                                                                                <fo:block/>
1444                                                                                                        </fo:table-cell>
1445                                                                                                </fo:table-row>
1446                                                                                        </fo:table-body>
1447                                                                                </fo:table> </fo:block>
1448                                                                </fo:table-cell>
1449                                                        </fo:table-row>
1450                                                </fo:table-body>
1451                                        </fo:table>
1452                                </xfd:block-repeat>
1453                        </fo:block>
1454<!-- Pore pressure -->
1455                        <fo:block break-before="page">
1456                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
1457                                <fo:leader/>
1458                                <xsl:variable name="element_drillReportPorePressure" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportPorePressure']/xsd:sequence"/>
1459                                <xsl:variable name="url_readingKind">
1460                                        <xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/>
1461                                </xsl:variable>
1462                                <xsl:variable name="url_equivalentMudWeight">
1463                                        <xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/>
1464                                </xsl:variable>
1465                                <xsl:variable name="url_dTim">
1466                                        <xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='dTim']/@sawsdl:modelReference"/>
1467                                </xsl:variable>
1468                                <xsl:variable name="url_md">
1469                                        <xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='md']/@sawsdl:modelReference"/>
1470                                </xsl:variable>
1471                                <xsl:variable name="url_tvd">
1472                                        <xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='tvd']/@sawsdl:modelReference"/>
1473                                </xsl:variable>
1474                                <fo:table>
1475                                        <fo:table-column column-width="100%"/>
1476                                        <fo:table-body>
1477                                                <fo:table-row font-weight="bold" font-size="14pt">
1478                                                        <fo:table-cell>
1479                                                                <fo:block>
1480                                                                        Pore Pressure
1481                                                                </fo:block>
1482                                                        </fo:table-cell>
1483                                                </fo:table-row>
1484                                                <fo:table-row>
1485                                                        <fo:table-cell>
1486                                                                <fo:block> </fo:block>
1487                                                        </fo:table-cell>
1488                                                </fo:table-row>
1489                                                <fo:table-row>
1490                                                        <fo:table-cell>
1491                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1492                                                                                <fo:table-column column-width="12.500" column-number="1"/>
1493                                                                                <fo:table-column column-width="12.500" column-number="2"/>
1494                                                                                <fo:table-column column-width="12.500" column-number="3"/>
1495                                                                                <fo:table-column column-width="12.500" column-number="4"/>
1496                                                                                <fo:table-column column-width="12.500" column-number="5"/><fo:table-column column-width="12.500" column-number="6"/><fo:table-column column-width="12.500" column-number="7"/><fo:table-column column-width="12.500" column-number="8"/>
1497                                                                                <fo:table-body>
1498                                                                                        <fo:table-row font-weight="bold">
1499                                                                                                <fo:table-cell>
1500                                                                                                        <fo:block>
1501                                                                                                                <fo:basic-link external-destination="url({$url_readingKind})">Reading</fo:basic-link>
1502                                                                                                        </fo:block>
1503                                                                                                </fo:table-cell>
1504                                                                                                <fo:table-cell>
1505                                                                                                        <fo:block>
1506                                                                                                                <fo:basic-link external-destination="url({$url_equivalentMudWeight})">Equ Mud Weight</fo:basic-link>
1507                                                                                                        </fo:block>
1508                                                                                                        <fo:block>
1509                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:porePressure/witsml:equivalentMudWeight/@uom"/>
1510                                                                                                        </fo:block>
1511                                                                                                        <fo:block> </fo:block>
1512                                                                                                </fo:table-cell>
1513                                                                                                <fo:table-cell>
1514                                                                                                        <fo:block>
1515                                                                                                                <fo:basic-link external-destination="url({$url_dTim})">Time</fo:basic-link>
1516                                                                                                        </fo:block>
1517                                                                                                </fo:table-cell>
1518                                                                                                <fo:table-cell>
1519                                                                                                        <fo:block>
1520                                                                                                                <fo:basic-link external-destination="url({$url_md})">Depth</fo:basic-link>
1521                                                                                                        </fo:block>
1522                                                                                                        <fo:block>mMD</fo:block>
1523                                                                                                </fo:table-cell>
1524                                                                                                <fo:table-cell>
1525                                                                                                        <fo:block>
1526                                                                                                                <fo:basic-link external-destination="url({$url_tvd})">Depth</fo:basic-link>
1527                                                                                                        </fo:block>
1528                                                                                                        <fo:block>mTVD</fo:block>
1529                                                                                                </fo:table-cell><fo:table-cell>
1530                                                                                                        <fo:block> </fo:block>
1531                                                                                                       
1532                                                                                                </fo:table-cell><fo:table-cell>
1533                                                                                                        <fo:block> </fo:block>
1534                                                                                                       
1535                                                                                                </fo:table-cell><fo:table-cell>
1536                                                                                                        <fo:block> </fo:block>
1537                                                                                                       
1538                                                                                                </fo:table-cell>
1539                                                                                        </fo:table-row>
1540                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:porePressure">
1541                                                                                                <fo:table-cell>
1542                                                                                                        <fo:block>
1543                                                                                                                <xfd:field xpath="witsml:readingKind"/>
1544                                                                                                        </fo:block>
1545                                                                                                </fo:table-cell>
1546                                                                                                <fo:table-cell>
1547                                                                                                        <fo:block>
1548                                                                                                                <xfd:field xpath="witsml:equivalentMudWeight"/>
1549                                                                                                        </fo:block>
1550                                                                                                </fo:table-cell>
1551                                                                                                <fo:table-cell>
1552                                                                                                        <fo:block>
1553                                                                                                                <xfd:field xpath="substring(witsml:dTim, 0, 17)"/>
1554                                                                                                        </fo:block>
1555                                                                                                </fo:table-cell>
1556                                                                                                <fo:table-cell>
1557                                                                                                        <fo:block>
1558                                                                                                                <xfd:field xpath="witsml:md"/>
1559                                                                                                        </fo:block>
1560                                                                                                </fo:table-cell>
1561                                                                                                <fo:table-cell>
1562                                                                                                        <fo:block>
1563                                                                                                                <xfd:field xpath="witsml:tvd"/>
1564                                                                                                        </fo:block>
1565                                                                                                </fo:table-cell><fo:table-cell>
1566                                                                                                        <fo:block> </fo:block>
1567                                                                                                </fo:table-cell><fo:table-cell>
1568                                                                                                        <fo:block> </fo:block>
1569                                                                                                </fo:table-cell><fo:table-cell>
1570                                                                                                        <fo:block> </fo:block>
1571                                                                                                </fo:table-cell>
1572                                                                                        </xfd:table-row-repeat>
1573                                                                                </fo:table-body>
1574                                                                        </fo:table> </fo:block>
1575                                                        </fo:table-cell>
1576                                                </fo:table-row>
1577                                        </fo:table-body>
1578                                </fo:table>
1579                        </fo:block>
1580<!-- Survey Station -->
1581                        <fo:block>
1582                                <xsl:variable name="element_drillReportSurveyStation" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportSurveyStation']/xsd:sequence"/>
1583                                <xsl:variable name="url_md">
1584                                        <xsl:value-of select="$element_drillReportSurveyStation//xsd:element[@name='md']/@sawsdl:modelReference"/>
1585                                </xsl:variable>
1586                                <xsl:variable name="url_tvd">
1587                                        <xsl:value-of select="$element_drillReportSurveyStation//xsd:element[@name='tvd']/@sawsdl:modelReference"/>
1588                                </xsl:variable>
1589                                <xsl:variable name="url_incl">
1590                                        <xsl:value-of select="$element_drillReportSurveyStation//xsd:element[@name='incl']/@sawsdl:modelReference"/>
1591                                </xsl:variable>
1592                                <xsl:variable name="url_azi">
1593                                        <xsl:value-of select="$element_drillReportSurveyStation//xsd:element[@name='azi']/@sawsdl:modelReference"/>
1594                                </xsl:variable>
1595                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
1596                                <fo:leader/>
1597                                <fo:table>
1598                                        <fo:table-column column-width="100%"/>
1599                                        <fo:table-body>
1600                                                <fo:table-row font-weight="bold" font-size="14pt">
1601                                                        <fo:table-cell>
1602                                                                <fo:block>
1603                                                                        Survey Station
1604                                                                </fo:block>
1605                                                        </fo:table-cell>
1606                                                </fo:table-row>
1607                                                <fo:table-row>
1608                                                        <fo:table-cell>
1609                                                                <fo:block> </fo:block>
1610                                                        </fo:table-cell>
1611                                                </fo:table-row>
1612                                                <fo:table-row>
1613                                                        <fo:table-cell>
1614                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1615                                                                                <fo:table-column column-width="12.500" column-number="1"/>
1616                                                                                <fo:table-column column-width="12.500" column-number="2"/>
1617                                                                                <fo:table-column column-width="12.500" column-number="3"/>
1618                                                                                <fo:table-column column-width="12.500" column-number="4"/><fo:table-column column-width="12.500" column-number="5"/><fo:table-column column-width="12.500" column-number="6"/><fo:table-column column-width="12.500" column-number="7"/><fo:table-column column-width="12.500" column-number="8"/>
1619                                                                                <fo:table-body>
1620                                                                                        <fo:table-row font-weight="bold">
1621                                                                                                <fo:table-cell>
1622                                                                                                        <fo:block>
1623                                                                                                                <fo:basic-link external-destination="url({$url_md})">Depth</fo:basic-link>
1624                                                                                                        </fo:block>
1625                                                                                                        <fo:block>mMD</fo:block>
1626                                                                                                </fo:table-cell>
1627                                                                                                <fo:table-cell>
1628                                                                                                        <fo:block>
1629                                                                                                                <fo:basic-link external-destination="url({$url_tvd})">Depth</fo:basic-link>
1630                                                                                                        </fo:block>
1631                                                                                                        <fo:block>mTVD</fo:block>
1632                                                                                                </fo:table-cell>
1633                                                                                                <fo:table-cell>
1634                                                                                                        <fo:block>
1635                                                                                                                <fo:basic-link external-destination="url({$url_incl})">Inclination</fo:basic-link>
1636                                                                                                        </fo:block>
1637                                                                                                </fo:table-cell>
1638                                                                                                <fo:table-cell>
1639                                                                                                        <fo:block>
1640                                                                                                                <fo:basic-link external-destination="url({$url_azi})">Azimuth</fo:basic-link>
1641                                                                                                        </fo:block>
1642                                                                                                </fo:table-cell><fo:table-cell>
1643                                                                                                        <fo:block> </fo:block>
1644                                                                                                </fo:table-cell><fo:table-cell>
1645                                                                                                        <fo:block> </fo:block>
1646                                                                                                </fo:table-cell><fo:table-cell>
1647                                                                                                        <fo:block> </fo:block>
1648                                                                                                </fo:table-cell><fo:table-cell>
1649                                                                                                        <fo:block> </fo:block>
1650                                                                                                </fo:table-cell>
1651                                                                                        </fo:table-row>
1652                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:surveyStation">
1653                                                                                                <fo:table-cell>
1654                                                                                                        <fo:block>
1655                                                                                                                <xfd:field xpath="witsml:md"/>
1656                                                                                                        </fo:block>
1657                                                                                                </fo:table-cell>
1658                                                                                                <fo:table-cell>
1659                                                                                                        <fo:block>
1660                                                                                                                <xfd:field xpath="witsml:tvd"/>
1661                                                                                                        </fo:block>
1662                                                                                                </fo:table-cell>
1663                                                                                                <fo:table-cell>
1664                                                                                                        <fo:block>
1665                                                                                                                <xfd:field xpath="witsml:incl"/>
1666                                                                                                        </fo:block>
1667                                                                                                </fo:table-cell>
1668                                                                                                <fo:table-cell>
1669                                                                                                        <fo:block>
1670                                                                                                                <xfd:field xpath="witsml:azi"/>
1671                                                                                                        </fo:block>
1672                                                                                                </fo:table-cell><fo:table-cell>
1673                                                                                                        <fo:block> </fo:block>
1674                                                                                                </fo:table-cell><fo:table-cell>
1675                                                                                                        <fo:block> </fo:block>
1676                                                                                                </fo:table-cell><fo:table-cell>
1677                                                                                                        <fo:block> </fo:block>
1678                                                                                                </fo:table-cell><fo:table-cell>
1679                                                                                                        <fo:block> </fo:block>
1680                                                                                                </fo:table-cell>
1681                                                                                        </xfd:table-row-repeat>
1682                                                                                </fo:table-body>
1683                                                                        </fo:table> </fo:block>
1684                                                        </fo:table-cell>
1685                                                </fo:table-row>
1686                                        </fo:table-body>
1687                                </fo:table>
1688                        </fo:block>
1689<!-- Log Information -->
1690                        <fo:block>
1691                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
1692                                <fo:leader/>
1693                                <xsl:variable name="element_drillReportLogInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportLogInfo']/xsd:sequence"/>
1694                                <xsl:variable name="url_serviceCompany">
1695                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='serviceCompany']/@sawsdl:modelReference"/>
1696                                </xsl:variable>
1697                                <xsl:variable name="url_runNumber">
1698                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='runNumber']/@sawsdl:modelReference"/>
1699                                </xsl:variable>
1700                                <xsl:variable name="url_mdTop">
1701                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
1702                                </xsl:variable>
1703                                <xsl:variable name="url_mdBottom">
1704                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
1705                                </xsl:variable>
1706                                <xsl:variable name="url_tool">
1707                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='tool']/@sawsdl:modelReference"/>
1708                                </xsl:variable>
1709                                <xsl:variable name="url_tempBHCT">
1710                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='tempBHCT']/@sawsdl:modelReference"/>
1711                                </xsl:variable>
1712                                <xsl:variable name="url_tempBHST">
1713                                        <xsl:value-of select="$element_drillReportLogInfo//xsd:element[@name='tempBHST']/@sawsdl:modelReference"/>
1714                                </xsl:variable>
1715                                <fo:table>
1716                                        <fo:table-column column-width="100%"/>
1717                                        <fo:table-body>
1718                                                <fo:table-row font-weight="bold" font-size="14pt">
1719                                                        <fo:table-cell>
1720                                                                <fo:block>
1721                                                                        Log Information
1722                                                                </fo:block>
1723                                                        </fo:table-cell>
1724                                                </fo:table-row>
1725                                                <fo:table-row font-weight="bold" font-size="14pt">
1726                                                        <fo:table-cell>
1727                                                                <fo:block> </fo:block>
1728                                                        </fo:table-cell>
1729                                                </fo:table-row>
1730                                                <fo:table-row>
1731                                                        <fo:table-cell>
1732                                                                <fo:block><fo:inline font-weight="bold">Logging Company:</fo:inline><xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:logInfo/witsml:serviceCompany"/></fo:block>
1733                                                        </fo:table-cell>
1734                                                </fo:table-row>
1735                                                <fo:table-row>
1736                                                        <fo:table-cell>
1737                                                                <fo:block> </fo:block>
1738                                                        </fo:table-cell>
1739                                                </fo:table-row>
1740                                                <fo:table-row>
1741                                                        <fo:table-cell>
1742                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1743                                                                                <fo:table-column column-width="12.500" column-number="1"/>
1744                                                                                <fo:table-column column-width="12.500" column-number="2"/>
1745                                                                                <fo:table-column column-width="12.500" column-number="3"/>
1746                                                                                <fo:table-column column-width="12.500" column-number="4"/>
1747                                                                                <fo:table-column column-width="12.500" column-number="5"/>
1748                                                                                <fo:table-column column-width="12.500" column-number="6"/><fo:table-column column-width="12.500" column-number="7"/><fo:table-column column-width="12.500" column-number="8"/>
1749                                                                                <fo:table-body>
1750                                                                                        <fo:table-row font-weight="bold">
1751                                                                                                <fo:table-cell>
1752                                                                                                        <fo:block>
1753                                                                                                                <fo:basic-link external-destination="url({$url_runNumber})">Run no</fo:basic-link>
1754                                                                                                        </fo:block>
1755                                                                                                </fo:table-cell>
1756                                                                                                <fo:table-cell>
1757                                                                                                        <fo:block>
1758                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Depth Top</fo:basic-link>
1759                                                                                                        </fo:block>
1760                                                                                                        <fo:block>mMD</fo:block>
1761                                                                                                </fo:table-cell>
1762                                                                                                <fo:table-cell>
1763                                                                                                        <fo:block>
1764                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Depth Bottom</fo:basic-link>
1765                                                                                                        </fo:block>
1766                                                                                                        <fo:block>mMD</fo:block>
1767                                                                                                </fo:table-cell>
1768                                                                                                <fo:table-cell>
1769                                                                                                        <fo:block>
1770                                                                                                                <fo:basic-link external-destination="url({$url_tool})">Tool</fo:basic-link>
1771                                                                                                        </fo:block>
1772                                                                                                </fo:table-cell>
1773                                                                                                <fo:table-cell>
1774                                                                                                        <fo:block>
1775                                                                                                                <fo:basic-link external-destination="url({$url_tempBHCT})">BHCT</fo:basic-link>
1776                                                                                                        </fo:block>
1777                                                                                                        <fo:block>
1778                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:logInfo/witsml:tempBHCT/@uom"/>
1779                                                                                                        </fo:block>
1780                                                                                                </fo:table-cell>
1781                                                                                                <fo:table-cell>
1782                                                                                                        <fo:block>
1783                                                                                                                <fo:basic-link external-destination="url({$url_tempBHST})">BHST</fo:basic-link>
1784                                                                                                        </fo:block>
1785                                                                                                        <fo:block>
1786                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:logInfo/witsml:tempBHST/@uom"/>
1787                                                                                                        </fo:block>
1788                                                                                                </fo:table-cell><fo:table-cell>
1789                                                                                                        <fo:block> </fo:block>
1790                                                                                                       
1791                                                                                                </fo:table-cell><fo:table-cell>
1792                                                                                                        <fo:block> </fo:block>
1793                                                                                                       
1794                                                                                                </fo:table-cell>
1795                                                                                        </fo:table-row>
1796                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:logInfo">
1797                                                                                                <fo:table-cell>
1798                                                                                                        <fo:block>
1799                                                                                                                <xfd:field xpath="witsml:runNumber"/>
1800                                                                                                        </fo:block>
1801                                                                                                </fo:table-cell>
1802                                                                                                <fo:table-cell>
1803                                                                                                        <fo:block>
1804                                                                                                                <xfd:field xpath="witsml:mdTop"/>
1805                                                                                                        </fo:block>
1806                                                                                                </fo:table-cell>
1807                                                                                                <fo:table-cell>
1808                                                                                                        <fo:block>
1809                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
1810                                                                                                        </fo:block>
1811                                                                                                </fo:table-cell>
1812                                                                                                <fo:table-cell>
1813                                                                                                        <fo:block>
1814                                                                                                                <xfd:field xpath="witsml:tool"/>
1815                                                                                                        </fo:block>
1816                                                                                                </fo:table-cell>
1817                                                                                                <fo:table-cell>
1818                                                                                                        <fo:block>
1819                                                                                                                <xfd:field xpath="witsml:tempBHCT"/>
1820                                                                                                        </fo:block>
1821                                                                                                </fo:table-cell>
1822                                                                                                <fo:table-cell>
1823                                                                                                        <fo:block>
1824                                                                                                                <xfd:field xpath="witsml:tempBHST"/>
1825                                                                                                        </fo:block>
1826                                                                                                </fo:table-cell><fo:table-cell>
1827                                                                                                        <fo:block> </fo:block>
1828                                                                                                </fo:table-cell><fo:table-cell>
1829                                                                                                        <fo:block> </fo:block>
1830                                                                                                </fo:table-cell>
1831                                                                                        </xfd:table-row-repeat>
1832                                                                                </fo:table-body>
1833                                                                        </fo:table> </fo:block>
1834                                                        </fo:table-cell>
1835                                                </fo:table-row>
1836                                        </fo:table-body>
1837                                </fo:table>
1838                        </fo:block>
1839<!-- Core Information -->
1840                        <fo:block>
1841                                <xsl:variable name="element_drillReportCoreInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportCoreInfo']/xsd:sequence"/>
1842                                <xsl:variable name="url_coreNumber">
1843                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='coreNumber']/@sawsdl:modelReference"/>
1844                                </xsl:variable>
1845                                <xsl:variable name="url_mdTop">
1846                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
1847                                </xsl:variable>
1848                                <xsl:variable name="url_mdBottom">
1849                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
1850                                </xsl:variable>
1851                                <xsl:variable name="url_lenRecovered">
1852                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='lenRecovered']/@sawsdl:modelReference"/>
1853                                </xsl:variable>
1854                                <xsl:variable name="url_recoverPc">
1855                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='recoverPc']/@sawsdl:modelReference"/>
1856                                </xsl:variable>
1857                                <xsl:variable name="url_lenBarrel">
1858                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='lenBarrel']/@sawsdl:modelReference"/>
1859                                </xsl:variable>
1860                                <xsl:variable name="url_innerBarrelType">
1861                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='innerBarrelType']/@sawsdl:modelReference"/>
1862                                </xsl:variable>
1863                                <xsl:variable name="url_coreDescription">
1864                                        <xsl:value-of select="$element_drillReportCoreInfo//xsd:element[@name='coreDescription']/@sawsdl:modelReference"/>
1865                                </xsl:variable>
1866                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
1867                                <fo:leader/>
1868                                <fo:table>
1869                                        <fo:table-column column-width="100%"/>
1870                                        <fo:table-body>
1871                                                <fo:table-row font-weight="bold" font-size="14pt">
1872                                                        <fo:table-cell>
1873                                                                <fo:block>
1874                                                                        Core Information
1875                                                                </fo:block>
1876                                                        </fo:table-cell>
1877                                                </fo:table-row>
1878                                                <fo:table-row>
1879                                                        <fo:table-cell>
1880                                                                <fo:block> </fo:block>
1881                                                        </fo:table-cell>
1882                                                </fo:table-row>
1883                                                <fo:table-row>
1884                                                        <fo:table-cell>
1885                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
1886                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="1"/>
1887                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="2"/>
1888                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="3"/>
1889                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="4"/>
1890                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="5"/>
1891                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="6"/>
1892                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="7"/>
1893                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="8"/>
1894                                                                                <fo:table-body>
1895                                                                                        <fo:table-row font-weight="bold">
1896                                                                                                <fo:table-cell>
1897                                                                                                        <fo:block>
1898                                                                                                                <fo:basic-link external-destination="url({$url_coreNumber})">Core no</fo:basic-link>
1899                                                                                                        </fo:block>
1900                                                                                                </fo:table-cell>
1901                                                                                                <fo:table-cell>
1902                                                                                                        <fo:block>
1903                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Depth Top</fo:basic-link>
1904                                                                                                        </fo:block>
1905                                                                                                        <fo:block>mMD</fo:block>
1906                                                                                                </fo:table-cell>
1907                                                                                                <fo:table-cell>
1908                                                                                                        <fo:block>
1909                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Depth Bottom</fo:basic-link>
1910                                                                                                        </fo:block>
1911                                                                                                        <fo:block>mMD</fo:block>
1912                                                                                                </fo:table-cell>
1913                                                                                                <fo:table-cell>
1914                                                                                                        <fo:block>
1915                                                                                                                <fo:basic-link external-destination="url({$url_lenRecovered})">Core length</fo:basic-link>
1916                                                                                                        </fo:block>
1917                                                                                                        <fo:block>
1918                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:coreInfo/witsml:lenRecovered/@uom"/>
1919                                                                                                        </fo:block>
1920                                                                                                </fo:table-cell>
1921                                                                                                <fo:table-cell>
1922                                                                                                        <fo:block>
1923                                                                                                                <fo:basic-link external-destination="url({$url_recoverPc})">Recover core</fo:basic-link>
1924                                                                                                        </fo:block>
1925                                                                                                        <fo:block>
1926                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:coreInfo/witsml:recoverPc/@uom"/>
1927                                                                                                        </fo:block>
1928                                                                                                </fo:table-cell>
1929                                                                                                <fo:table-cell>
1930                                                                                                        <fo:block>
1931                                                                                                                <fo:basic-link external-destination="url({$url_lenBarrel})">Core barrel length</fo:basic-link>
1932                                                                                                        </fo:block>
1933                                                                                                        <fo:block>
1934                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:coreInfo/witsml:lenBarrel/@uom"/>
1935                                                                                                        </fo:block>
1936                                                                                                </fo:table-cell>
1937                                                                                                <fo:table-cell>
1938                                                                                                        <fo:block>
1939                                                                                                                <fo:basic-link external-destination="url({$url_innerBarrelType})">Inner barrel type</fo:basic-link>
1940                                                                                                        </fo:block>
1941                                                                                                </fo:table-cell>
1942                                                                                                <fo:table-cell>
1943                                                                                                        <fo:block>
1944                                                                                                                <fo:basic-link external-destination="url({$url_coreDescription})">Description</fo:basic-link>
1945                                                                                                        </fo:block>
1946                                                                                                </fo:table-cell>
1947                                                                                        </fo:table-row>
1948                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:coreInfo">
1949                                                                                                <fo:table-cell>
1950                                                                                                        <fo:block>
1951                                                                                                                <xfd:field xpath="witsml:coreNumber"/>
1952                                                                                                        </fo:block>
1953                                                                                                </fo:table-cell>
1954                                                                                                <fo:table-cell>
1955                                                                                                        <fo:block>
1956                                                                                                                <xfd:field xpath="witsml:mdTop"/>
1957                                                                                                        </fo:block>
1958                                                                                                </fo:table-cell>
1959                                                                                                <fo:table-cell>
1960                                                                                                        <fo:block>
1961                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
1962                                                                                                        </fo:block>
1963                                                                                                </fo:table-cell>
1964                                                                                                <fo:table-cell>
1965                                                                                                        <fo:block>
1966                                                                                                                <xfd:field xpath="witsml:lenRecovered"/>
1967                                                                                                        </fo:block>
1968                                                                                                </fo:table-cell>
1969                                                                                                <fo:table-cell>
1970                                                                                                        <fo:block>
1971                                                                                                                <xfd:field xpath="witsml:recoverPc"/>
1972                                                                                                        </fo:block>
1973                                                                                                </fo:table-cell>
1974                                                                                                <fo:table-cell>
1975                                                                                                        <fo:block>
1976                                                                                                                <xfd:field xpath="witsml:lenBarrel"/>
1977                                                                                                        </fo:block>
1978                                                                                                </fo:table-cell>
1979                                                                                                <fo:table-cell>
1980                                                                                                        <fo:block>
1981                                                                                                                <xfd:field xpath="witsml:innerBarrelType"/>
1982                                                                                                        </fo:block>
1983                                                                                                </fo:table-cell>
1984                                                                                                <fo:table-cell>
1985                                                                                                        <fo:block>
1986                                                                                                                <xfd:field xpath="witsml:coreDescription"/>
1987                                                                                                        </fo:block>
1988                                                                                                </fo:table-cell>
1989                                                                                        </xfd:table-row-repeat>
1990                                                                                </fo:table-body>
1991                                                                        </fo:table> </fo:block>
1992                                                        </fo:table-cell>
1993                                                </fo:table-row>
1994                                        </fo:table-body>
1995                                </fo:table>
1996                        </fo:block>
1997<!-- Well Test Information -->
1998                        <fo:block break-before="page">
1999                                <xsl:variable name="element_drillReportWellTestInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportWellTestInfo']/xsd:sequence"/>
2000                                <xsl:variable name="url_dTim">
2001                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='dTim']/@sawsdl:modelReference"/>
2002                                </xsl:variable>
2003                                <xsl:variable name="url_testNumber">
2004                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='testNumber']/@sawsdl:modelReference"/>
2005                                </xsl:variable>
2006                                <xsl:variable name="url_testType">
2007                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='testType']/@sawsdl:modelReference"/>
2008                                </xsl:variable>
2009                                <xsl:variable name="url_mdTop">
2010                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
2011                                </xsl:variable>
2012                                <xsl:variable name="url_mdBottom">
2013                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
2014                                </xsl:variable>
2015                                <xsl:variable name="url_chokeOrificeSize">
2016                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='chokeOrificeSize']/@sawsdl:modelReference"/>
2017                                </xsl:variable>
2018                                <xsl:variable name="url_densityOil">
2019                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='densityOil']/@sawsdl:modelReference"/>
2020                                </xsl:variable>
2021                                <xsl:variable name="url_flowRateOil">
2022                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='flowRateOil']/@sawsdl:modelReference"/>
2023                                </xsl:variable>
2024                                <xsl:variable name="url_flowRateGas">
2025                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='flowRateGas']/@sawsdl:modelReference"/>
2026                                </xsl:variable>
2027                                <xsl:variable name="url_flowRateWater">
2028                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='flowRateWater']/@sawsdl:modelReference"/>
2029                                </xsl:variable>
2030                                <xsl:variable name="url_presShutIn">
2031                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='presShutIn']/@sawsdl:modelReference"/>
2032                                </xsl:variable>
2033                                <xsl:variable name="url_presFlowing">
2034                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='presFlowing']/@sawsdl:modelReference"/>
2035                                </xsl:variable>
2036                                <xsl:variable name="url_presBottom">
2037                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='presBottom']/@sawsdl:modelReference"/>
2038                                </xsl:variable>
2039                                <xsl:variable name="url_gasOilRatio">
2040                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='gasOilRatio']/@sawsdl:modelReference"/>
2041                                </xsl:variable>
2042                                <xsl:variable name="url_waterOilRatio">
2043                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='waterOilRatio']/@sawsdl:modelReference"/>
2044                                </xsl:variable>
2045                                <xsl:variable name="url_chloride">
2046                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='chloride']/@sawsdl:modelReference"/>
2047                                </xsl:variable>
2048                                <xsl:variable name="url_carbonDioxide">
2049                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='carbonDioxide']/@sawsdl:modelReference"/>
2050                                </xsl:variable>
2051                                <xsl:variable name="url_hydrogenSulfide">
2052                                        <xsl:value-of select="$element_drillReportWellTestInfo//xsd:element[@name='hydrogenSulfide']/@sawsdl:modelReference"/>
2053                                </xsl:variable>
2054                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
2055                                <fo:leader/>
2056                                <fo:table>
2057                                        <fo:table-column column-width="100%"/>
2058                                        <fo:table-body>
2059                                                <fo:table-row font-weight="bold" font-size="14pt">
2060                                                        <fo:table-cell>
2061                                                                <fo:block>
2062                                                                        Well Test Information
2063                                                                </fo:block>
2064                                                        </fo:table-cell>
2065                                                </fo:table-row>
2066                                                <fo:table-row>
2067                                                        <fo:table-cell>
2068                                                                <fo:block> </fo:block>
2069                                                        </fo:table-cell>
2070                                                </fo:table-row>
2071                                                <fo:table-row>
2072                                                        <fo:table-cell>
2073                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
2074                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="1"/>
2075                                                                                <fo:table-column column-width="proportional-column-width(3.755)" column-number="2"/>
2076                                                                                <fo:table-column column-width="proportional-column-width(7.356)" column-number="3"/>
2077                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="4"/>
2078                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="5"/>
2079                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="6"/>
2080                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="7"/>
2081                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="8"/>
2082                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="9"/>
2083                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="10"/>
2084                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="11"/>
2085                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="12"/>
2086                                                                                <fo:table-column column-width="proportional-column-width(6.256)" column-number="13"/>
2087                                                                                <fo:table-column column-width="proportional-column-width(4.855)" column-number="14"/>
2088                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="15"/>
2089                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="16"/>
2090                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="17"/>
2091                                                                                <fo:table-column column-width="proportional-column-width(5.556)" column-number="18"/>
2092                                                                                <fo:table-body>
2093                                                                                        <fo:table-row font-weight="bold">
2094                                                                                                <fo:table-cell>
2095                                                                                                        <fo:block>
2096                                                                                                                <fo:basic-link external-destination="url({$url_dTim})">Time</fo:basic-link>
2097                                                                                                        </fo:block>
2098                                                                                                </fo:table-cell>
2099                                                                                                <fo:table-cell>
2100                                                                                                        <fo:block>
2101                                                                                                                <fo:basic-link external-destination="url({$url_testNumber})">Test no</fo:basic-link>
2102                                                                                                        </fo:block>
2103                                                                                                </fo:table-cell>
2104                                                                                                <fo:table-cell>
2105                                                                                                        <fo:block>
2106                                                                                                                <fo:basic-link external-destination="url({$url_testType})">Type</fo:basic-link>
2107                                                                                                        </fo:block>
2108                                                                                                </fo:table-cell>
2109                                                                                                <fo:table-cell>
2110                                                                                                        <fo:block>
2111                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Depth Top</fo:basic-link>
2112                                                                                                        </fo:block>
2113                                                                                                        <fo:block>mMD</fo:block>
2114                                                                                                </fo:table-cell>
2115                                                                                                <fo:table-cell>
2116                                                                                                        <fo:block>
2117                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Depth Bottom</fo:basic-link>
2118                                                                                                        </fo:block>
2119                                                                                                        <fo:block>mMD</fo:block>
2120                                                                                                </fo:table-cell>
2121                                                                                                <fo:table-cell>
2122                                                                                                        <fo:block>
2123                                                                                                                <fo:basic-link external-destination="url({$url_chokeOrificeSize})">Choke orifice Size</fo:basic-link>
2124                                                                                                        </fo:block>
2125                                                                                                        <fo:block>
2126                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:chokeOrificeSize/@uom"/>
2127                                                                                                        </fo:block>
2128                                                                                                </fo:table-cell>
2129                                                                                                <fo:table-cell>
2130                                                                                                        <fo:block>
2131                                                                                                                <fo:basic-link external-destination="url({$url_densityOil})">Density crude oil</fo:basic-link>
2132                                                                                                        </fo:block>
2133                                                                                                        <fo:block>
2134                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:densityOil/@uom"/>
2135                                                                                                        </fo:block>
2136                                                                                                </fo:table-cell>
2137                                                                                                <fo:table-cell>
2138                                                                                                        <fo:block>
2139                                                                                                                <fo:basic-link external-destination="url({$url_flowRateOil})">Oil flow rate</fo:basic-link>
2140                                                                                                        </fo:block>
2141                                                                                                        <fo:block>
2142                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:flowRateOil/@uom"/>
2143                                                                                                        </fo:block>
2144                                                                                                </fo:table-cell>
2145                                                                                                <fo:table-cell>
2146                                                                                                        <fo:block>
2147                                                                                                                <fo:basic-link external-destination="url({$url_flowRateGas})">Gas flow rate M</fo:basic-link>
2148                                                                                                        </fo:block>
2149                                                                                                        <fo:block>
2150                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:flowRateGas/@uom"/>
2151                                                                                                        </fo:block>
2152                                                                                                </fo:table-cell>
2153                                                                                                <fo:table-cell>
2154                                                                                                        <fo:block>
2155                                                                                                                <fo:basic-link external-destination="url({$url_flowRateWater})">Water flow rate</fo:basic-link>
2156                                                                                                        </fo:block>
2157                                                                                                        <fo:block>
2158                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:flowRateWater/@uom"/>
2159                                                                                                        </fo:block>
2160                                                                                                </fo:table-cell>
2161                                                                                                <fo:table-cell>
2162                                                                                                        <fo:block>
2163                                                                                                                <fo:basic-link external-destination="url({$url_presShutIn})">Shut in pressure</fo:basic-link>
2164                                                                                                        </fo:block>
2165                                                                                                        <fo:block>
2166                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:presShutIn/@uom"/>
2167                                                                                                        </fo:block>
2168                                                                                                </fo:table-cell>
2169                                                                                                <fo:table-cell>
2170                                                                                                        <fo:block>
2171                                                                                                                <fo:basic-link external-destination="url({$url_presFlowing})">Flow pressure</fo:basic-link>
2172                                                                                                        </fo:block>
2173                                                                                                        <fo:block>
2174                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:presFlowing/@uom"/>
2175                                                                                                        </fo:block>
2176                                                                                                </fo:table-cell>
2177                                                                                                <fo:table-cell>
2178                                                                                                        <fo:block>
2179                                                                                                                <fo:basic-link external-destination="url({$url_presBottom})">Bottom hole pressure</fo:basic-link>
2180                                                                                                        </fo:block>
2181                                                                                                        <fo:block>
2182                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:presBottom/@uom"/>
2183                                                                                                        </fo:block>
2184                                                                                                </fo:table-cell>
2185                                                                                                <fo:table-cell>
2186                                                                                                        <fo:block>
2187                                                                                                                <fo:basic-link external-destination="url({$url_gasOilRatio})">Gas oil ratio</fo:basic-link>
2188                                                                                                        </fo:block>
2189                                                                                                        <fo:block>
2190                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:gasOilRatio/@uom"/>
2191                                                                                                        </fo:block>
2192                                                                                                </fo:table-cell>
2193                                                                                                <fo:table-cell>
2194                                                                                                        <fo:block>
2195                                                                                                                <fo:basic-link external-destination="url({$url_waterOilRatio})">Water oil ratio</fo:basic-link>
2196                                                                                                        </fo:block>
2197                                                                                                        <fo:block>
2198                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:waterOilRatio/@uom"/>
2199                                                                                                        </fo:block>
2200                                                                                                </fo:table-cell>
2201                                                                                                <fo:table-cell>
2202                                                                                                        <fo:block>
2203                                                                                                                <fo:basic-link external-destination="url({$url_chloride})">Chloride content</fo:basic-link>
2204                                                                                                        </fo:block>
2205                                                                                                        <fo:block>
2206                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:chloride/@uom"/>
2207                                                                                                        </fo:block>
2208                                                                                                </fo:table-cell>
2209                                                                                                <fo:table-cell>
2210                                                                                                        <fo:block>
2211                                                                                                                <fo:basic-link external-destination="url({$url_carbonDioxide})">CO2 content</fo:basic-link>
2212                                                                                                        </fo:block>
2213                                                                                                        <fo:block>
2214                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:carbonDioxide/@uom"/>
2215                                                                                                        </fo:block>
2216                                                                                                </fo:table-cell>
2217                                                                                                <fo:table-cell>
2218                                                                                                        <fo:block>
2219                                                                                                                <fo:basic-link external-destination="url({$url_hydrogenSulfide})">H2S content</fo:basic-link>
2220                                                                                                        </fo:block>
2221                                                                                                        <fo:block>
2222                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo/witsml:hydrogenSulfide/@uom"/>
2223                                                                                                        </fo:block>
2224                                                                                                </fo:table-cell>
2225                                                                                        </fo:table-row>
2226                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:wellTestInfo">
2227                                                                                                <fo:table-cell>
2228                                                                                                        <fo:block>
2229                                                                                                                <xfd:field xpath="substring-after(substring(witsml:dTim, 0, 17), 'T')"/>
2230                                                                                                        </fo:block>
2231                                                                                                </fo:table-cell>
2232                                                                                                <fo:table-cell>
2233                                                                                                        <fo:block>
2234                                                                                                                <xfd:field xpath="witsml:testNumber"/>
2235                                                                                                        </fo:block>
2236                                                                                                </fo:table-cell>
2237                                                                                                <fo:table-cell>
2238                                                                                                        <fo:block>
2239                                                                                                                <xfd:field xpath="witsml:testType"/>
2240                                                                                                        </fo:block>
2241                                                                                                </fo:table-cell>
2242                                                                                                <fo:table-cell>
2243                                                                                                        <fo:block>
2244                                                                                                                <xfd:field xpath="witsml:mdTop"/>
2245                                                                                                        </fo:block>
2246                                                                                                </fo:table-cell>
2247                                                                                                <fo:table-cell>
2248                                                                                                        <fo:block>
2249                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
2250                                                                                                        </fo:block>
2251                                                                                                </fo:table-cell>
2252                                                                                                <fo:table-cell>
2253                                                                                                        <fo:block>
2254                                                                                                                <xfd:field xpath="witsml:chokeOrificeSize"/>
2255                                                                                                        </fo:block>
2256                                                                                                </fo:table-cell>
2257                                                                                                <fo:table-cell>
2258                                                                                                        <fo:block>
2259                                                                                                                <xfd:field xpath="witsml:densityOil"/>
2260                                                                                                        </fo:block>
2261                                                                                                </fo:table-cell>
2262                                                                                                <fo:table-cell>
2263                                                                                                        <fo:block>
2264                                                                                                                <xfd:field xpath="witsml:flowRateOil"/>
2265                                                                                                        </fo:block>
2266                                                                                                </fo:table-cell>
2267                                                                                                <fo:table-cell>
2268                                                                                                        <fo:block>
2269                                                                                                                <xfd:field xpath="witsml:flowRateGas"/>
2270                                                                                                        </fo:block>
2271                                                                                                </fo:table-cell>
2272                                                                                                <fo:table-cell>
2273                                                                                                        <fo:block>
2274                                                                                                                <xfd:field xpath="witsml:flowRateWater"/>
2275                                                                                                        </fo:block>
2276                                                                                                </fo:table-cell>
2277                                                                                                <fo:table-cell>
2278                                                                                                        <fo:block>
2279                                                                                                                <xfd:field xpath="witsml:presShutIn"/>
2280                                                                                                        </fo:block>
2281                                                                                                </fo:table-cell>
2282                                                                                                <fo:table-cell>
2283                                                                                                        <fo:block>
2284                                                                                                                <xfd:field xpath="witsml:presFlowing"/>
2285                                                                                                        </fo:block>
2286                                                                                                </fo:table-cell>
2287                                                                                                <fo:table-cell>
2288                                                                                                        <fo:block>
2289                                                                                                                <xfd:field xpath="witsml:presBottom"/>
2290                                                                                                        </fo:block>
2291                                                                                                </fo:table-cell>
2292                                                                                                <fo:table-cell>
2293                                                                                                        <fo:block>
2294                                                                                                                <xfd:field xpath="witsml:gasOilRatio"/>
2295                                                                                                        </fo:block>
2296                                                                                                </fo:table-cell>
2297                                                                                                <fo:table-cell>
2298                                                                                                        <fo:block>
2299                                                                                                                <xfd:field xpath="witsml:waterOilRatio"/>
2300                                                                                                        </fo:block>
2301                                                                                                </fo:table-cell>
2302                                                                                                <fo:table-cell>
2303                                                                                                        <fo:block>
2304                                                                                                                <xfd:field xpath="witsml:chloride"/>
2305                                                                                                        </fo:block>
2306                                                                                                </fo:table-cell>
2307                                                                                                <fo:table-cell>
2308                                                                                                        <fo:block>
2309                                                                                                                <xfd:field xpath="witsml:carbonDioxide"/>
2310                                                                                                        </fo:block>
2311                                                                                                </fo:table-cell>
2312                                                                                                <fo:table-cell>
2313                                                                                                        <fo:block>
2314                                                                                                                <xfd:field xpath="witsml:hydrogenSulfide"/>
2315                                                                                                        </fo:block>
2316                                                                                                </fo:table-cell>
2317                                                                                        </xfd:table-row-repeat>
2318                                                                                </fo:table-body>
2319                                                                        </fo:table> </fo:block>
2320                                                        </fo:table-cell>
2321                                                </fo:table-row>
2322                                        </fo:table-body>
2323                                </fo:table>
2324                        </fo:block>
2325<!-- Formation Test -->
2326                        <fo:block>
2327                                <xsl:variable name="element_drillReportFormTestInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportFormTestInfo']/xsd:sequence"/>
2328                                <xsl:variable name="url_md">
2329                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='md']/@sawsdl:modelReference"/>
2330                                </xsl:variable>
2331                                <xsl:variable name="url_presPore">
2332                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='presPore']/@sawsdl:modelReference"/>
2333                                </xsl:variable>
2334                                <xsl:variable name="url_goodSealm">
2335                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='goodSeal']/@sawsdl:modelReference"/>
2336                                </xsl:variable>
2337                                <xsl:variable name="url_mdSample">
2338                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='mdSample']/@sawsdl:modelReference"/>
2339                                </xsl:variable>
2340                                <xsl:variable name="url_dominateComponent">
2341                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='dominateComponent']/@sawsdl:modelReference"/>
2342                                </xsl:variable>
2343                                <xsl:variable name="url_densityHC">
2344                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='densityHC']/@sawsdl:modelReference"/>
2345                                </xsl:variable>
2346                                <xsl:variable name="url_volumeSample">
2347                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='volumeSample']/@sawsdl:modelReference"/>
2348                                </xsl:variable>
2349                                <xsl:variable name="url_description">
2350                                        <xsl:value-of select="$element_drillReportFormTestInfo//xsd:element[@name='description']/@sawsdl:modelReference"/>
2351                                </xsl:variable>
2352                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
2353                                <fo:leader/>
2354                                <fo:table>
2355                                        <fo:table-column column-width="100%"/>
2356                                        <fo:table-body>
2357                                                <fo:table-row font-weight="bold" font-size="14pt">
2358                                                        <fo:table-cell>
2359                                                                <fo:block>
2360                                                                        Formation Test
2361                                                                </fo:block>
2362                                                        </fo:table-cell>
2363                                                </fo:table-row>
2364                                                <fo:table-row>
2365                                                        <fo:table-cell>
2366                                                                <fo:block> </fo:block>
2367                                                        </fo:table-cell>
2368                                                </fo:table-row>
2369                                                <fo:table-row>
2370                                                        <fo:table-cell>
2371                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
2372                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="1"/>
2373                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="2"/>
2374                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="3"/>
2375                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="4"/>
2376                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="5"/>
2377                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="6"/>
2378                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="7"/>
2379                                                                                <fo:table-column column-width="proportional-column-width(12.5)" column-number="8"/>
2380                                                                                <fo:table-body>
2381                                                                                        <fo:table-row font-weight="bold">
2382                                                                                                <fo:table-cell>
2383                                                                                                        <fo:block>
2384                                                                                                                <fo:basic-link external-destination="url({$url_md})">Depth</fo:basic-link>
2385                                                                                                        </fo:block>
2386                                                                                                        <fo:block>mMD</fo:block>
2387                                                                                                </fo:table-cell>
2388                                                                                                <fo:table-cell>
2389                                                                                                        <fo:block>
2390                                                                                                                <fo:basic-link external-destination="url({$url_presPore})">Formation pore pressure</fo:basic-link>
2391                                                                                                        </fo:block>
2392                                                                                                        <fo:block>
2393                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:formTestInfo/witsml:presPore/@uom"/>
2394                                                                                                        </fo:block>
2395                                                                                                </fo:table-cell>
2396                                                                                                <fo:table-cell>
2397                                                                                                        <fo:block>
2398                                                                                                                <fo:basic-link external-destination="url({$url_goodSealm})">Good seal ind</fo:basic-link>
2399                                                                                                        </fo:block>
2400                                                                                                </fo:table-cell>
2401                                                                                                <fo:table-cell>
2402                                                                                                        <fo:block>
2403                                                                                                                <fo:basic-link external-destination="url({$url_mdSample})">Depth to sample point</fo:basic-link>
2404                                                                                                        </fo:block>
2405                                                                                                        <fo:block>
2406                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:formTestInfo/witsml:mdSample/@uom"/>
2407                                                                                                        </fo:block>
2408                                                                                                </fo:table-cell>
2409                                                                                                <fo:table-cell>
2410                                                                                                        <fo:block>
2411                                                                                                                <fo:basic-link external-destination="url({$url_dominateComponent})">Dominate fluid component</fo:basic-link>
2412                                                                                                        </fo:block>
2413                                                                                                </fo:table-cell>
2414                                                                                                <fo:table-cell>
2415                                                                                                        <fo:block>
2416                                                                                                                <fo:basic-link external-destination="url({$url_densityHC})">HC Component density</fo:basic-link>
2417                                                                                                        </fo:block>
2418                                                                                                        <fo:block>
2419                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:formTestInfo/witsml:densityHC/@uom"/>
2420                                                                                                        </fo:block>
2421                                                                                                </fo:table-cell>
2422                                                                                                <fo:table-cell>
2423                                                                                                        <fo:block>
2424                                                                                                                <fo:basic-link external-destination="url({$url_volumeSample})">Sample volume</fo:basic-link>
2425                                                                                                        </fo:block>
2426                                                                                                        <fo:block>
2427                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:formTestInfo/witsml:volumeSample/@uom"/>
2428                                                                                                        </fo:block>
2429                                                                                                </fo:table-cell>
2430                                                                                                <fo:table-cell>
2431                                                                                                        <fo:block>
2432                                                                                                                <fo:basic-link external-destination="url({$url_description})">Description</fo:basic-link>
2433                                                                                                        </fo:block>
2434                                                                                                </fo:table-cell>
2435                                                                                        </fo:table-row>
2436                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:formTestInfo">
2437                                                                                                <fo:table-cell>
2438                                                                                                        <fo:block>
2439                                                                                                                <xfd:field xpath="witsml:md"/>
2440                                                                                                        </fo:block>
2441                                                                                                </fo:table-cell>
2442                                                                                                <fo:table-cell>
2443                                                                                                        <fo:block>
2444                                                                                                                <xfd:field xpath="witsml:presPore"/>
2445                                                                                                        </fo:block>
2446                                                                                                </fo:table-cell>
2447                                                                                                <fo:table-cell>
2448                                                                                                        <fo:block>
2449                                                                                                                <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if>
2450                                                                                                                <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if>
2451                                                                                                        </fo:block>
2452                                                                                                </fo:table-cell>
2453                                                                                                <fo:table-cell>
2454                                                                                                        <fo:block>
2455                                                                                                                <xfd:field xpath="witsml:mdSample"/>
2456                                                                                                        </fo:block>
2457                                                                                                </fo:table-cell>
2458                                                                                                <fo:table-cell>
2459                                                                                                        <fo:block>
2460                                                                                                                <xfd:field xpath="witsml:dominateComponent"/>
2461                                                                                                        </fo:block>
2462                                                                                                </fo:table-cell>
2463                                                                                                <fo:table-cell>
2464                                                                                                        <fo:block>
2465                                                                                                                <xfd:field xpath="witsml:densityHC"/>
2466                                                                                                        </fo:block>
2467                                                                                                </fo:table-cell>
2468                                                                                                <fo:table-cell>
2469                                                                                                        <fo:block>
2470                                                                                                                <xfd:field xpath="witsml:volumeSample"/>
2471                                                                                                        </fo:block>
2472                                                                                                </fo:table-cell>
2473                                                                                                <fo:table-cell>
2474                                                                                                        <fo:block>
2475                                                                                                                <xfd:field xpath="witsml:description"/>
2476                                                                                                        </fo:block>
2477                                                                                                </fo:table-cell>
2478                                                                                        </xfd:table-row-repeat>
2479                                                                                </fo:table-body>
2480                                                                        </fo:table> </fo:block>
2481                                                        </fo:table-cell>
2482                                                </fo:table-row>
2483                                        </fo:table-body>
2484                                </fo:table>
2485                        </fo:block>
2486<!-- Stratigraphic Information -->
2487                        <fo:block break-before="page">
2488                                <xsl:variable name="element_drillReportStratInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportStratInfo']/xsd:sequence"/>
2489                                <xsl:variable name="url_mdTop">
2490                                        <xsl:value-of select="$element_drillReportStratInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
2491                                </xsl:variable>
2492                                <xsl:variable name="url_tvdTop">
2493                                        <xsl:value-of select="$element_drillReportStratInfo//xsd:element[@name='tvdTop']/@sawsdl:modelReference"/>
2494                                </xsl:variable>
2495                                <xsl:variable name="url_description">
2496                                        <xsl:value-of select="$element_drillReportStratInfo//xsd:element[@name='description']/@sawsdl:modelReference"/>
2497                                </xsl:variable>
2498                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
2499                                <fo:leader/>
2500                                <fo:table>
2501                                        <fo:table-column column-width="100%"/>
2502                                        <fo:table-body>
2503                                                <fo:table-row font-weight="bold" font-size="14pt">
2504                                                        <fo:table-cell>
2505                                                                <fo:block>
2506                                                                        Stratigraphic Information
2507                                                                </fo:block>
2508                                                        </fo:table-cell>
2509                                                </fo:table-row>
2510                                                <fo:table-row>
2511                                                        <fo:table-cell>
2512                                                                <fo:block> </fo:block>
2513                                                        </fo:table-cell>
2514                                                </fo:table-row>
2515                                                <fo:table-row>
2516                                                        <fo:table-cell>
2517                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
2518                                                                                <fo:table-column column-width="12.500" column-number="1"/>
2519                                                                                <fo:table-column column-width="12.500" column-number="2"/>
2520                                                                                <fo:table-column column-width="12.500" column-number="3"/><fo:table-column column-width="12.500" column-number="4"/><fo:table-column column-width="12.500" column-number="5"/><fo:table-column column-width="12.500" column-number="6"/><fo:table-column column-width="12.500" column-number="7"/><fo:table-column column-width="12.500" column-number="8"/>
2521                                                                                <fo:table-body>
2522                                                                                        <fo:table-row font-weight="bold" height="29.680px" overflow="hidden">
2523                                                                                                <fo:table-cell>
2524                                                                                                        <fo:block>
2525                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Depth to top of formation</fo:basic-link>
2526                                                                                                        </fo:block>
2527                                                                                                        <fo:block>mMD</fo:block>
2528                                                                                                </fo:table-cell>
2529                                                                                                <fo:table-cell>
2530                                                                                                        <fo:block>
2531                                                                                                                <fo:basic-link external-destination="url({$url_tvdTop})">Depth to top of formation</fo:basic-link>
2532                                                                                                        </fo:block>
2533                                                                                                        <fo:block>mTVD</fo:block>
2534                                                                                                </fo:table-cell>
2535                                                                                                <fo:table-cell>
2536                                                                                                        <fo:block>
2537                                                                                                                <fo:basic-link external-destination="url({$url_description})">Formation name</fo:basic-link>
2538                                                                                                        </fo:block>
2539                                                                                                </fo:table-cell><fo:table-cell>
2540                                                                                                        <fo:block> </fo:block>
2541                                                                                                </fo:table-cell><fo:table-cell>
2542                                                                                                        <fo:block> </fo:block>
2543                                                                                                </fo:table-cell><fo:table-cell>
2544                                                                                                        <fo:block> </fo:block>
2545                                                                                                </fo:table-cell><fo:table-cell>
2546                                                                                                        <fo:block> </fo:block>
2547                                                                                                </fo:table-cell><fo:table-cell>
2548                                                                                                        <fo:block> </fo:block>
2549                                                                                                </fo:table-cell>
2550                                                                                        </fo:table-row>
2551                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:stratInfo">
2552                                                                                                <fo:table-cell>
2553                                                                                                        <fo:block>
2554                                                                                                                <xfd:field xpath="witsml:mdTop"/>
2555                                                                                                        </fo:block>
2556                                                                                                </fo:table-cell>
2557                                                                                                <fo:table-cell>
2558                                                                                                        <fo:block>
2559                                                                                                                <xfd:field xpath="witsml:tvdTop"/>
2560                                                                                                        </fo:block>
2561                                                                                                </fo:table-cell>
2562                                                                                                <fo:table-cell>
2563                                                                                                        <fo:block>
2564                                                                                                                <xfd:field xpath="witsml:description"/>
2565                                                                                                        </fo:block>
2566                                                                                                </fo:table-cell><fo:table-cell>
2567                                                                                                        <fo:block> </fo:block>
2568                                                                                                </fo:table-cell><fo:table-cell>
2569                                                                                                        <fo:block> </fo:block>
2570                                                                                                </fo:table-cell><fo:table-cell>
2571                                                                                                        <fo:block> </fo:block>
2572                                                                                                </fo:table-cell><fo:table-cell>
2573                                                                                                        <fo:block> </fo:block>
2574                                                                                                </fo:table-cell><fo:table-cell>
2575                                                                                                        <fo:block> </fo:block>
2576                                                                                                </fo:table-cell>
2577                                                                                        </xfd:table-row-repeat>
2578                                                                                </fo:table-body>
2579                                                                        </fo:table> </fo:block>
2580                                                        </fo:table-cell>
2581                                                </fo:table-row>
2582                                        </fo:table-body>
2583                                </fo:table>
2584                        </fo:block>
2585<!-- Lithology Information -->
2586                        <fo:block>
2587                                <xsl:variable name="element_drillReportLithShowInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportLithShowInfo']/xsd:sequence"/>
2588                                <xsl:variable name="url_mdTop">
2589                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
2590                                </xsl:variable>
2591                                <xsl:variable name="url_mdBottom">
2592                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
2593                                </xsl:variable>
2594                                <xsl:variable name="url_tvdTop">
2595                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='tvdTop']/@sawsdl:modelReference"/>
2596                                </xsl:variable>
2597                                <xsl:variable name="url_tvdBottom">
2598                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='tvdBottom']/@sawsdl:modelReference"/>
2599                                </xsl:variable>
2600                                <xsl:variable name="url_show">
2601                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='show']/@sawsdl:modelReference"/>
2602                                </xsl:variable>
2603                                <xsl:variable name="url_lithology">
2604                                        <xsl:value-of select="$element_drillReportLithShowInfo//xsd:element[@name='lithology']/@sawsdl:modelReference"/>
2605                                </xsl:variable>
2606                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
2607                                <fo:leader/>
2608                                <fo:table>
2609                                        <fo:table-column column-width="100%"/>
2610                                        <fo:table-body>
2611                                                <fo:table-row font-weight="bold" font-size="14pt">
2612                                                        <fo:table-cell>
2613                                                                <fo:block>
2614                                                                        Lithology Information
2615                                                                </fo:block>
2616                                                        </fo:table-cell>
2617                                                </fo:table-row>
2618                                                <fo:table-row>
2619                                                        <fo:table-cell>
2620                                                                <fo:block> </fo:block>
2621                                                        </fo:table-cell>
2622                                                </fo:table-row>
2623                                                <fo:table-row>
2624                                                        <fo:table-cell>
2625                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
2626                                                                                <fo:table-column column-width="proportional-column-width(6.396)" column-number="1"/>
2627                                                                                <fo:table-column column-width="proportional-column-width(6.297)" column-number="2"/>
2628                                                                                <fo:table-column column-width="proportional-column-width(7.698)" column-number="3"/>
2629                                                                                <fo:table-column column-width="proportional-column-width(5.196)" column-number="4"/>
2630                                                                                <fo:table-column column-width="proportional-column-width(5.696)" column-number="5"/>
2631                                                                                <fo:table-column column-width="proportional-column-width(7.097)" column-number="6"/>
2632                                                                                <fo:table-column column-width="proportional-column-width(12)" column-number="7"/>
2633                                                                                <fo:table-column column-width="proportional-column-width(49.62)" column-number="8"/>
2634                                                                                <fo:table-body>
2635                                                                                        <fo:table-row font-weight="bold">
2636                                                                                                <fo:table-cell>
2637                                                                                                        <fo:block>
2638                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Start Depth</fo:basic-link>
2639                                                                                                        </fo:block>
2640                                                                                                        <fo:block>mMD</fo:block>
2641                                                                                                </fo:table-cell>
2642                                                                                                <fo:table-cell>
2643                                                                                                        <fo:block>
2644                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">End Depth</fo:basic-link>
2645                                                                                                        </fo:block>
2646                                                                                                        <fo:block>mMD</fo:block>
2647                                                                                                </fo:table-cell>
2648                                                                                                <fo:table-cell>
2649                                                                                                        <fo:block>
2650                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Difference in Depth</fo:basic-link>
2651                                                                                                        </fo:block>
2652                                                                                                        <fo:block>mMD</fo:block>
2653                                                                                                </fo:table-cell>
2654                                                                                                <fo:table-cell>
2655                                                                                                        <fo:block>
2656                                                                                                                <fo:basic-link external-destination="url({$url_tvdTop})">Start Depth</fo:basic-link>
2657                                                                                                        </fo:block>
2658                                                                                                        <fo:block>mTVD</fo:block>
2659                                                                                                </fo:table-cell>
2660                                                                                                <fo:table-cell>
2661                                                                                                        <fo:block>
2662                                                                                                                <fo:basic-link external-destination="url({$url_tvdBottom})">End Depth</fo:basic-link>
2663                                                                                                        </fo:block>
2664                                                                                                        <fo:block>mTVD</fo:block>
2665                                                                                                </fo:table-cell>
2666                                                                                                <fo:table-cell>
2667                                                                                                        <fo:block>
2668                                                                                                                <fo:basic-link external-destination="url({$url_tvdBottom})">Difference in Depth</fo:basic-link>
2669                                                                                                        </fo:block>
2670                                                                                                        <fo:block>mTVD</fo:block>
2671                                                                                                </fo:table-cell>
2672                                                                                                <fo:table-cell>
2673                                                                                                        <fo:block>
2674                                                                                                                <fo:basic-link external-destination="url({$url_show})">Shows Description</fo:basic-link>
2675                                                                                                        </fo:block>
2676                                                                                                </fo:table-cell>
2677                                                                                                <fo:table-cell>
2678                                                                                                        <fo:block>
2679                                                                                                                <fo:basic-link external-destination="url({$url_lithology})">Lithology Description</fo:basic-link>
2680                                                                                                        </fo:block>
2681                                                                                                </fo:table-cell>
2682                                                                                        </fo:table-row>
2683                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:lithShowInfo">
2684                                                                                                <fo:table-cell>
2685                                                                                                        <fo:block>
2686                                                                                                                <xfd:field xpath="witsml:mdTop"/>
2687                                                                                                        </fo:block>
2688                                                                                                </fo:table-cell>
2689                                                                                                <fo:table-cell>
2690                                                                                                        <fo:block>
2691                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
2692                                                                                                        </fo:block>
2693                                                                                                </fo:table-cell>
2694                                                                                                <fo:table-cell>
2695                                                                                                        <fo:block>
2696                                                                                                                <xfd:field xpath="witsml:mdBottom - witsml:mdTop"/>
2697                                                                                                        </fo:block>
2698                                                                                                </fo:table-cell>
2699                                                                                                <fo:table-cell>
2700                                                                                                        <fo:block>
2701                                                                                                                <xfd:field xpath="witsml:tvdTop"/>
2702                                                                                                        </fo:block>
2703                                                                                                </fo:table-cell>
2704                                                                                                <fo:table-cell>
2705                                                                                                        <fo:block>
2706                                                                                                                <xfd:field xpath="witsml:tvdBottom"/>
2707                                                                                                        </fo:block>
2708                                                                                                </fo:table-cell>
2709                                                                                                <fo:table-cell>
2710                                                                                                        <fo:block>
2711                                                                                                                <xfd:field xpath="witsml:tvdBottom - witsml:tvdTop"/>
2712                                                                                                        </fo:block>
2713                                                                                                </fo:table-cell>
2714                                                                                                <fo:table-cell>
2715                                                                                                        <fo:block>
2716                                                                                                                <xfd:field xpath="witsml:show"/>
2717                                                                                                        </fo:block>
2718                                                                                                </fo:table-cell>
2719                                                                                                <fo:table-cell>
2720                                                                                                        <fo:block>
2721                                                                                                                <xfd:field xpath="witsml:lithology"/>
2722                                                                                                        </fo:block>
2723                                                                                                </fo:table-cell>
2724                                                                                        </xfd:table-row-repeat>
2725                                                                                </fo:table-body>
2726                                                                        </fo:table> </fo:block>
2727                                                        </fo:table-cell>
2728                                                </fo:table-row>
2729                                        </fo:table-body>
2730                                </fo:table>
2731                        </fo:block>
2732<!-- Well Control Incident -->
2733                        <xfd:block-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:controlIncidentInfo">
2734                                <fo:block>
2735                                        <xsl:variable name="element_drillReportControlIncidentInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportControlIncidentInfo']/xsd:sequence"/>
2736                                        <xsl:variable name="url_dTim">
2737                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='dTim']/@sawsdl:modelReference"/>
2738                                        </xsl:variable>
2739                                        <xsl:variable name="url_mdInflow">
2740                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='mdInflow']/@sawsdl:modelReference"/>
2741                                        </xsl:variable>
2742                                        <xsl:variable name="url_tvdInflow">
2743                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='tvdInflow']/@sawsdl:modelReference"/>
2744                                        </xsl:variable>
2745                                        <xsl:variable name="url_eTimLost">
2746                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='eTimLost']/@sawsdl:modelReference"/>
2747                                        </xsl:variable>
2748                                        <xsl:variable name="url_dTimRegained">
2749                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='dTimRegained']/@sawsdl:modelReference"/>
2750                                        </xsl:variable>
2751                                        <xsl:variable name="url_mdBit">
2752                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='mdBit']/@sawsdl:modelReference"/>
2753                                        </xsl:variable>
2754                                        <xsl:variable name="url_wtMud">
2755                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='wtMud']/@sawsdl:modelReference"/>
2756                                        </xsl:variable>
2757                                        <xsl:variable name="url_porePressure">
2758                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='porePressure']/@sawsdl:modelReference"/>
2759                                        </xsl:variable>
2760                                        <xsl:variable name="url_mdCsgLast">
2761                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='mdCsgLast']/@sawsdl:modelReference"/>
2762                                        </xsl:variable>
2763                                        <xsl:variable name="url_volMudGained">
2764                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='volMudGained']/@sawsdl:modelReference"/>
2765                                        </xsl:variable>
2766                                        <xsl:variable name="url_presShutInCasing">
2767                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='presShutInCasing']/@sawsdl:modelReference"/>
2768                                        </xsl:variable>
2769                                        <xsl:variable name="url_presShutInDrill">
2770                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='presShutInDrill']/@sawsdl:modelReference"/>
2771                                        </xsl:variable>
2772                                        <xsl:variable name="url_incidentType">
2773                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='incidentType']/@sawsdl:modelReference"/>
2774                                        </xsl:variable>
2775                                        <xsl:variable name="url_killingType">
2776                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='killingType']/@sawsdl:modelReference"/>
2777                                        </xsl:variable>
2778                                        <xsl:variable name="url_formation">
2779                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='formation']/@sawsdl:modelReference"/>
2780                                        </xsl:variable>
2781                                        <xsl:variable name="url_tempBottom">
2782                                                <xsl:value-of select="$element_drillReportControlIncidentInfo//xsd:element[@name='tempBottom']/@sawsdl:modelReference"/>
2783                                        </xsl:variable>
2784                                        <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
2785                                        <fo:leader/>
2786                                        <fo:table>
2787                                                <fo:table-column column-width="100%"/>
2788                                                <fo:table-body>
2789                                                        <fo:table-row font-weight="bold" font-size="14pt">
2790                                                                <fo:table-cell>
2791                                                                        <fo:block>
2792                                                                        Well Control Incident
2793                                                                </fo:block>
2794                                                                </fo:table-cell>
2795                                                        </fo:table-row>
2796                                                        <fo:table-row height="13.840px" overflow="hidden">
2797                                                                <fo:table-cell>
2798                                                                        <fo:block> </fo:block>
2799                                                                </fo:table-cell>
2800                                                        </fo:table-row>
2801                                                        <fo:table-row>
2802                                                                <fo:table-cell>
2803                                                                        <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
2804                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="1"/>
2805                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="2"/>
2806                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="3"/>
2807                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="4"/>
2808                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="5"/>
2809                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="6"/>
2810                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="7"/>
2811                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="8"/>
2812                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="9"/>
2813                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="10"/>
2814                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="11"/>
2815                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="12"/>
2816                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="13"/>
2817                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="14"/>
2818                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="15"/>
2819                                                                                        <fo:table-column column-width="proportional-column-width(6.25)" column-number="16"/>
2820                                                                                        <fo:table-body>
2821                                                                                                <fo:table-row font-weight="bold">
2822                                                                                                        <fo:table-cell>
2823                                                                                                                <fo:block>
2824                                                                                                                        <fo:basic-link external-destination="url({$url_dTim})">Date</fo:basic-link>
2825                                                                                                                </fo:block>
2826                                                                                                        </fo:table-cell>
2827                                                                                                        <fo:table-cell>
2828                                                                                                                <fo:block>
2829                                                                                                                        <fo:basic-link external-destination="url({$url_mdInflow})">Depth of well</fo:basic-link>
2830                                                                                                                        <fo:block>mMD</fo:block>
2831                                                                                                                </fo:block>
2832                                                                                                        </fo:table-cell>
2833                                                                                                        <fo:table-cell>
2834                                                                                                                <fo:block>
2835                                                                                                                        <fo:basic-link external-destination="url({$url_tvdInflow})">Depth of well mTVD</fo:basic-link>
2836                                                                                                                </fo:block>
2837                                                                                                        </fo:table-cell>
2838                                                                                                        <fo:table-cell>
2839                                                                                                                <fo:block>
2840                                                                                                                        <fo:basic-link external-destination="url({$url_eTimLost})">Lost time</fo:basic-link>
2841                                                                                                                </fo:block>
2842                                                                                                                <fo:block>
2843                                                                                                                        <xfd:field xpath="witsml:eTimLost/@uom"/>
2844                                                                                                                </fo:block>
2845                                                                                                        </fo:table-cell>
2846                                                                                                        <fo:table-cell>
2847                                                                                                                <fo:block>
2848                                                                                                                        <fo:basic-link external-destination="url({$url_dTimRegained})">Time for well control regain</fo:basic-link>
2849                                                                                                                </fo:block>
2850                                                                                                        </fo:table-cell>
2851                                                                                                        <fo:table-cell>
2852                                                                                                                <fo:block>
2853                                                                                                                        <fo:basic-link external-destination="url({$url_mdBit})">Depth at bit</fo:basic-link>
2854                                                                                                                        <fo:block>mMD</fo:block>
2855                                                                                                                </fo:block>
2856                                                                                                        </fo:table-cell>
2857                                                                                                        <fo:table-cell>
2858                                                                                                                <fo:block>
2859                                                                                                                        <fo:basic-link external-destination="url({$url_wtMud})">Drilling fluid density</fo:basic-link>
2860                                                                                                                </fo:block>
2861                                                                                                                <fo:block>
2862                                                                                                                        <xfd:field xpath="witsml:wtMud/@uom"/>
2863                                                                                                                </fo:block>
2864                                                                                                        </fo:table-cell>
2865                                                                                                        <fo:table-cell>
2866                                                                                                                <fo:block>
2867                                                                                                                        <fo:basic-link external-destination="url({$url_porePressure})">Pore pressure</fo:basic-link>
2868                                                                                                                </fo:block>
2869                                                                                                                <fo:block>
2870                                                                                                                        <xfd:field xpath="witsml:porePressure/@uom"/>
2871                                                                                                                </fo:block>
2872                                                                                                        </fo:table-cell>
2873                                                                                                        <fo:table-cell>
2874                                                                                                                <fo:block>
2875                                                                                                                        <fo:basic-link external-destination="url({$url_mdCsgLast})">Depth to casing</fo:basic-link>
2876                                                                                                                </fo:block>
2877                                                                                                                <fo:block>mMD</fo:block>
2878                                                                                                        </fo:table-cell>
2879                                                                                                        <fo:table-cell>
2880                                                                                                                <fo:block>
2881                                                                                                                        <fo:basic-link external-destination="url({$url_volMudGained})">Gained vol of Fluid</fo:basic-link>
2882                                                                                                                </fo:block>
2883                                                                                                                <fo:block>
2884                                                                                                                        <xfd:field xpath="witsml:volMudGain/@uom"/>
2885                                                                                                                </fo:block>
2886                                                                                                        </fo:table-cell>
2887                                                                                                        <fo:table-cell>
2888                                                                                                                <fo:block>
2889                                                                                                                        <fo:basic-link external-destination="url({$url_presShutInCasing})">Shut in casing pressure</fo:basic-link>
2890                                                                                                                </fo:block>
2891                                                                                                                <fo:block>
2892                                                                                                                        <xfd:field xpath="witsml:presShutInCasing/@uom"/>
2893                                                                                                                </fo:block>
2894                                                                                                        </fo:table-cell>
2895                                                                                                        <fo:table-cell>
2896                                                                                                                <fo:block>
2897                                                                                                                        <fo:basic-link external-destination="url({$url_presShutInDrill})">Shut in drill pipe pressure</fo:basic-link>
2898                                                                                                                </fo:block>
2899                                                                                                                <fo:block>
2900                                                                                                                        <xfd:field xpath="witsml:presShutInDrill/@uom"/>
2901                                                                                                                </fo:block>
2902                                                                                                        </fo:table-cell>
2903                                                                                                        <fo:table-cell>
2904                                                                                                                <fo:block>
2905                                                                                                                        <fo:basic-link external-destination="url({$url_incidentType})">Incident class</fo:basic-link>
2906                                                                                                                </fo:block>
2907                                                                                                        </fo:table-cell>
2908                                                                                                        <fo:table-cell>
2909                                                                                                                <fo:block>
2910                                                                                                                        <fo:basic-link external-destination="url({$url_killingType})">Killing procd</fo:basic-link>
2911                                                                                                                </fo:block>
2912                                                                                                        </fo:table-cell>
2913                                                                                                        <fo:table-cell>
2914                                                                                                                <fo:block>
2915                                                                                                                        <fo:basic-link external-destination="url({$url_formation})">Formation</fo:basic-link>
2916                                                                                                                </fo:block>
2917                                                                                                        </fo:table-cell>
2918                                                                                                        <fo:table-cell>
2919                                                                                                                <fo:block>
2920                                                                                                                        <fo:basic-link external-destination="url({$url_tempBottom})">BHT</fo:basic-link>
2921                                                                                                                </fo:block>
2922                                                                                                        </fo:table-cell>
2923                                                                                                </fo:table-row>
2924                                                                                                <fo:table-row>
2925                                                                                                        <fo:table-cell>
2926                                                                                                                <fo:block>
2927                                                                                                                        <xfd:field xpath="substring-before(witsml:dTim, 'T')"/>
2928                                                                                                                </fo:block>
2929                                                                                                        </fo:table-cell>
2930                                                                                                        <fo:table-cell>
2931                                                                                                                <fo:block>
2932                                                                                                                        <xfd:field xpath="witsml:mdInflow"/>
2933                                                                                                                </fo:block>
2934                                                                                                        </fo:table-cell>
2935                                                                                                        <fo:table-cell>
2936                                                                                                                <fo:block>
2937                                                                                                                        <xfd:field xpath="witsml:tvdInFlow"/>
2938                                                                                                                </fo:block>
2939                                                                                                        </fo:table-cell>
2940                                                                                                        <fo:table-cell>
2941                                                                                                                <fo:block>
2942                                                                                                                        <xfd:field xpath="witsml:eTimLost"/>
2943                                                                                                                </fo:block>
2944                                                                                                        </fo:table-cell>
2945                                                                                                        <fo:table-cell>
2946                                                                                                                <fo:block>
2947                                                                                                                        <xfd:field xpath="substring-after(substring(witsml:dTimRegained, 0, 17), 'T')"/>
2948                                                                                                                </fo:block>
2949                                                                                                        </fo:table-cell>
2950                                                                                                        <fo:table-cell>
2951                                                                                                                <fo:block>
2952                                                                                                                        <xfd:field xpath="witsml:mdBit"/>
2953                                                                                                                </fo:block>
2954                                                                                                        </fo:table-cell>
2955                                                                                                        <fo:table-cell>
2956                                                                                                                <fo:block>
2957                                                                                                                        <xfd:field xpath="witsml:wtMud"/>
2958                                                                                                                </fo:block>
2959                                                                                                        </fo:table-cell>
2960                                                                                                        <fo:table-cell>
2961                                                                                                                <fo:block>
2962                                                                                                                        <xfd:field xpath="witsml:porePressure"/>
2963                                                                                                                </fo:block>
2964                                                                                                        </fo:table-cell>
2965                                                                                                        <fo:table-cell>
2966                                                                                                                <fo:block>
2967                                                                                                                        <xfd:field xpath="witsml:mdCsgLast"/>
2968                                                                                                                </fo:block>
2969                                                                                                        </fo:table-cell>
2970                                                                                                        <fo:table-cell>
2971                                                                                                                <fo:block>
2972                                                                                                                        <xfd:field xpath="witsml:volMudGained"/>
2973                                                                                                                </fo:block>
2974                                                                                                        </fo:table-cell>
2975                                                                                                        <fo:table-cell>
2976                                                                                                                <fo:block>
2977                                                                                                                        <xfd:field xpath="witsml:presShutInCasing"/>
2978                                                                                                                </fo:block>
2979                                                                                                        </fo:table-cell>
2980                                                                                                        <fo:table-cell>
2981                                                                                                                <fo:block>
2982                                                                                                                        <xfd:field xpath="witsml:presShutInDrill"/>
2983                                                                                                                </fo:block>
2984                                                                                                        </fo:table-cell>
2985                                                                                                        <fo:table-cell>
2986                                                                                                                <fo:block>
2987                                                                                                                        <xfd:field xpath="witsml:incidentType"/>
2988                                                                                                                </fo:block>
2989                                                                                                        </fo:table-cell>
2990                                                                                                        <fo:table-cell>
2991                                                                                                                <fo:block>
2992                                                                                                                        <xfd:field xpath="witsml:killingType"/>
2993                                                                                                                </fo:block>
2994                                                                                                        </fo:table-cell>
2995                                                                                                        <fo:table-cell>
2996                                                                                                                <fo:block>
2997                                                                                                                        <xfd:field xpath="witsml:formation"/>
2998                                                                                                                </fo:block>
2999                                                                                                        </fo:table-cell>
3000                                                                                                        <fo:table-cell>
3001                                                                                                                <fo:block>
3002                                                                                                                        <xfd:field xpath="witsml:tempBottom"/>
3003                                                                                                                </fo:block>
3004                                                                                                        </fo:table-cell>
3005                                                                                                </fo:table-row>
3006                                                                                        </fo:table-body>
3007                                                                                </fo:table><fo:table>
3008                                                                                        <fo:table-body>
3009                                                                                                <fo:table-row>
3010                                                                                                        <fo:table-cell>
3011                                                                                                                <fo:block> </fo:block>
3012                                                                                                        </fo:table-cell>
3013                                                                                                </fo:table-row>
3014                                                                                                <fo:table-row>
3015                                                                                                        <fo:table-cell>
3016                                                                                                                <fo:block>
3017                                                                                                                        <xfd:field xpath="witsml:description"/>
3018                                                                                                                </fo:block>
3019                                                                                                        </fo:table-cell>
3020                                                                                                </fo:table-row>
3021                                                                                        </fo:table-body>
3022                                                                                </fo:table> </fo:block>
3023                                                                </fo:table-cell>
3024                                                        </fo:table-row>
3025                                                </fo:table-body>
3026                                        </fo:table>
3027                                </fo:block>
3028                        </xfd:block-repeat>
3029<!-- Perforation Information -->
3030                        <fo:block break-before="page">
3031                                <xsl:variable name="element_drillReportPerfInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportPerfInfo']/xsd:sequence"/>
3032                                <xsl:variable name="url_dTimOpen">
3033                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='dTimOpen']/@sawsdl:modelReference"/>
3034                                </xsl:variable>
3035                                <xsl:variable name="url_dTimClose">
3036                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='dTimClose']/@sawsdl:modelReference"/>
3037                                </xsl:variable>
3038                                <xsl:variable name="url_mdTop">
3039                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
3040                                </xsl:variable>
3041                                <xsl:variable name="url_mdBottom">
3042                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
3043                                </xsl:variable>
3044                                <xsl:variable name="url_tvdTop">
3045                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='tvdTop']/@sawsdl:modelReference"/>
3046                                </xsl:variable>
3047                                <xsl:variable name="url_tvdBottom">
3048                                        <xsl:value-of select="$element_drillReportPerfInfo//xsd:element[@name='tvdBottom']/@sawsdl:modelReference"/>
3049                                </xsl:variable>
3050                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
3051                                <fo:leader/>
3052                                <fo:table>
3053                                        <fo:table-column column-width="100%"/>
3054                                        <fo:table-body>
3055                                                <fo:table-row font-weight="bold" font-size="14pt">
3056                                                        <fo:table-cell>
3057                                                                <fo:block>
3058                                                                        Perforation Information
3059                                                                </fo:block>
3060                                                        </fo:table-cell>
3061                                                </fo:table-row>
3062                                                <fo:table-row>
3063                                                        <fo:table-cell>
3064                                                                <fo:block> </fo:block>
3065                                                        </fo:table-cell>
3066                                                </fo:table-row>
3067                                                <fo:table-row>
3068                                                        <fo:table-cell>
3069                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
3070                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="1"/>
3071                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="2"/>
3072                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="3"/>
3073                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="4"/>
3074                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="5"/>
3075                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="6"/>
3076                                                                                <fo:table-column column-width="proportional-column-width(14.286)" column-number="7"/>
3077                                                                                <fo:table-body>
3078                                                                                        <fo:table-row font-weight="bold">
3079                                                                                                <fo:table-cell>
3080                                                                                                        <fo:block>
3081                                                                                                                <fo:basic-link external-destination="url({$url_dTimOpen})">Time of opening well perf</fo:basic-link>
3082                                                                                                        </fo:block>
3083                                                                                                </fo:table-cell>
3084                                                                                                <fo:table-cell>
3085                                                                                                        <fo:block>
3086                                                                                                                <fo:basic-link external-destination="url({$url_dTimClose})">Time of closing well perf</fo:basic-link>
3087                                                                                                        </fo:block>
3088                                                                                                </fo:table-cell>
3089                                                                                                <fo:table-cell>
3090                                                                                                        <fo:block>
3091                                                                                                                <fo:basic-link external-destination="url({$urlRDS})">Duration well perf</fo:basic-link>
3092                                                                                                        </fo:block>
3093                                                                                                </fo:table-cell>
3094                                                                                                <fo:table-cell>
3095                                                                                                        <fo:block>
3096                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Top of perf</fo:basic-link>
3097                                                                                                        </fo:block>
3098                                                                                                        <fo:block>mMD</fo:block>
3099                                                                                                </fo:table-cell>
3100                                                                                                <fo:table-cell>
3101                                                                                                        <fo:block>
3102                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Bottom of Perf</fo:basic-link>
3103                                                                                                        </fo:block>
3104                                                                                                        <fo:block>mMD</fo:block>
3105                                                                                                </fo:table-cell>
3106                                                                                                <fo:table-cell>
3107                                                                                                        <fo:block>
3108                                                                                                                <fo:basic-link external-destination="url({$url_tvdTop})">Top of perf</fo:basic-link>
3109                                                                                                        </fo:block>
3110                                                                                                        <fo:block>mTVD</fo:block>
3111                                                                                                </fo:table-cell>
3112                                                                                                <fo:table-cell>
3113                                                                                                        <fo:block>
3114                                                                                                                <fo:basic-link external-destination="url({$url_tvdBottom})">Bottom of Perf</fo:basic-link>
3115                                                                                                        </fo:block>
3116                                                                                                        <fo:block>mTVD</fo:block>
3117                                                                                                </fo:table-cell>
3118                                                                                        </fo:table-row>
3119                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:perfInfo">
3120                                                                                                <fo:table-cell>
3121                                                                                                        <fo:block>
3122                                                                                                                <xfd:field xpath="substring(witsml:dTimOpen, 0 ,17)"/>
3123                                                                                                        </fo:block>
3124                                                                                                </fo:table-cell>
3125                                                                                                <fo:table-cell>
3126                                                                                                        <fo:block>
3127                                                                                                                <xfd:field xpath="substring(witsml:dTimClose, 0, 17)"/>
3128                                                                                                        </fo:block>
3129                                                                                                </fo:table-cell>
3130                                                                                                <fo:table-cell>
3131                                                                                                        <fo:block><!--<xfd:field xpath="substring-after(xsl:dateTime(witsml:dTimClose) - xsl:dateTime(witsml:dTimOpen), 'PT')"/>-->
3132                                                                                                                duration
3133                                                                                                        </fo:block>
3134                                                                                                </fo:table-cell>
3135                                                                                                <fo:table-cell>
3136                                                                                                        <fo:block>
3137                                                                                                                <xfd:field xpath="witsml:mdTop"/>
3138                                                                                                        </fo:block>
3139                                                                                                </fo:table-cell>
3140                                                                                                <fo:table-cell>
3141                                                                                                        <fo:block>
3142                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
3143                                                                                                        </fo:block>
3144                                                                                                </fo:table-cell>
3145                                                                                                <fo:table-cell>
3146                                                                                                        <fo:block>
3147                                                                                                                <xfd:field xpath="witsml:tvdTop"/>
3148                                                                                                        </fo:block>
3149                                                                                                </fo:table-cell>
3150                                                                                                <fo:table-cell>
3151                                                                                                        <fo:block>
3152                                                                                                                <xfd:field xpath="witsml:tvdBottom"/>
3153                                                                                                        </fo:block>
3154                                                                                                </fo:table-cell>
3155                                                                                        </xfd:table-row-repeat>
3156                                                                                </fo:table-body>
3157                                                                        </fo:table> </fo:block>
3158                                                        </fo:table-cell>
3159                                                </fo:table-row>
3160                                        </fo:table-body>
3161                                </fo:table>
3162                        </fo:block>
3163<!-- Gas Reading Information -->
3164                        <fo:block>
3165                                <xsl:variable name="element_drillReportGasReadingInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_drillReportGasReadingInfo']/xsd:sequence"/>
3166                                <xsl:variable name="url_dTim">
3167                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='dTim']/@sawsdl:modelReference"/>
3168                                </xsl:variable>
3169                                <xsl:variable name="url_readingType">
3170                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='readingType']/@sawsdl:modelReference"/>
3171                                </xsl:variable>
3172                                <xsl:variable name="url_mdTop">
3173                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='mdTop']/@sawsdl:modelReference"/>
3174                                </xsl:variable>
3175                                <xsl:variable name="url_mdBottom">
3176                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/>
3177                                </xsl:variable>
3178                                <xsl:variable name="url_tvdTop">
3179                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='tvdTop']/@sawsdl:modelReference"/>
3180                                </xsl:variable>
3181                                <xsl:variable name="url_tvdBottom">
3182                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='tvdBottom']/@sawsdl:modelReference"/>
3183                                </xsl:variable>
3184                                <xsl:variable name="url_gasHigh">
3185                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='gasHigh']/@sawsdl:modelReference"/>
3186                                </xsl:variable>
3187                                <xsl:variable name="url_gasLow">
3188                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='gasLow']/@sawsdl:modelReference"/>
3189                                </xsl:variable>
3190                                <xsl:variable name="url_meth">
3191                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='meth']/@sawsdl:modelReference"/>
3192                                </xsl:variable>
3193                                <xsl:variable name="url_eth">
3194                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='eth']/@sawsdl:modelReference"/>
3195                                </xsl:variable>
3196                                <xsl:variable name="url_prop">
3197                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='prop']/@sawsdl:modelReference"/>
3198                                </xsl:variable>
3199                                <xsl:variable name="url_ibut">
3200                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='ibut']/@sawsdl:modelReference"/>
3201                                </xsl:variable>
3202                                <xsl:variable name="url_ipent">
3203                                        <xsl:value-of select="$element_drillReportGasReadingInfo//xsd:element[@name='ipent']/@sawsdl:modelReference"/>
3204                                </xsl:variable>
3205                                <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/>
3206                                <fo:leader/>
3207                                <fo:table>
3208                                        <fo:table-column column-width="100%"/>
3209                                        <fo:table-body>
3210                                                <fo:table-row font-weight="bold" font-size="14pt">
3211                                                        <fo:table-cell>
3212                                                                <fo:block>
3213                                                                        Gas Reading Information
3214                                                                </fo:block>
3215                                                        </fo:table-cell>
3216                                                </fo:table-row>
3217                                                <fo:table-row>
3218                                                        <fo:table-cell>
3219                                                                <fo:block> </fo:block>
3220                                                        </fo:table-cell>
3221                                                </fo:table-row>
3222                                                <fo:table-row>
3223                                                        <fo:table-cell>
3224                                                                <fo:block><fo:table table-layout="fixed" width="100%" border-collapse="collapse">
3225                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="1"/>
3226                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="2"/>
3227                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="3"/>
3228                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="4"/>
3229                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="5"/>
3230                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="6"/>
3231                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="7"/>
3232                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="8"/>
3233                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="9"/>
3234                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="10"/>
3235                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="11"/>
3236                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="12"/>
3237                                                                                <fo:table-column column-width="proportional-column-width(7.692)" column-number="13"/>
3238                                                                                <fo:table-body>
3239                                                                                        <fo:table-row font-weight="bold">
3240                                                                                                <fo:table-cell>
3241                                                                                                        <fo:block>
3242                                                                                                                <fo:basic-link external-destination="url({$url_dTim})">Time</fo:basic-link>
3243                                                                                                        </fo:block>
3244                                                                                                </fo:table-cell>
3245                                                                                                <fo:table-cell>
3246                                                                                                        <fo:block>
3247                                                                                                                <fo:basic-link external-destination="url({$url_readingType})">Class</fo:basic-link>
3248                                                                                                        </fo:block>
3249                                                                                                </fo:table-cell>
3250                                                                                                <fo:table-cell>
3251                                                                                                        <fo:block>
3252                                                                                                                <fo:basic-link external-destination="url({$url_mdTop})">Depth to top</fo:basic-link>
3253                                                                                                        </fo:block>
3254                                                                                                        <fo:block>mMD</fo:block>
3255                                                                                                </fo:table-cell>
3256                                                                                                <fo:table-cell>
3257                                                                                                        <fo:block>
3258                                                                                                                <fo:basic-link external-destination="url({$url_mdBottom})">Depth to bottom</fo:basic-link>
3259                                                                                                        </fo:block>
3260                                                                                                        <fo:block>mMD</fo:block>
3261                                                                                                </fo:table-cell>
3262                                                                                                <fo:table-cell>
3263                                                                                                        <fo:block>
3264                                                                                                                <fo:basic-link external-destination="url({$url_tvdTop})">Depth to top</fo:basic-link>
3265                                                                                                        </fo:block>
3266                                                                                                        <fo:block>mTVD</fo:block>
3267                                                                                                </fo:table-cell>
3268                                                                                                <fo:table-cell>
3269                                                                                                        <fo:block>
3270                                                                                                                <fo:basic-link external-destination="url({$url_tvdBottom})">Depth to bottom</fo:basic-link>
3271                                                                                                        </fo:block>
3272                                                                                                        <fo:block>mTVD</fo:block>
3273                                                                                                </fo:table-cell>
3274                                                                                                <fo:table-cell>
3275                                                                                                        <fo:block>
3276                                                                                                                <fo:basic-link external-destination="url({$url_gasHigh})">Highest gas</fo:basic-link>
3277                                                                                                        </fo:block>
3278                                                                                                        <fo:block>
3279                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:gasHigh/@uom"/>
3280                                                                                                        </fo:block>
3281                                                                                                </fo:table-cell>
3282                                                                                                <fo:table-cell>
3283                                                                                                        <fo:block>
3284                                                                                                                <fo:basic-link external-destination="url({$url_gasLow})">Lowest gas</fo:basic-link>
3285                                                                                                        </fo:block>
3286                                                                                                        <fo:block>
3287                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:gasLow/@uom"/>
3288                                                                                                        </fo:block>
3289                                                                                                </fo:table-cell>
3290                                                                                                <fo:table-cell>
3291                                                                                                        <fo:block>
3292                                                                                                                <fo:basic-link external-destination="url({$url_meth})">C1</fo:basic-link>
3293                                                                                                        </fo:block>
3294                                                                                                        <fo:block>
3295                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:meth/@uom"/>
3296                                                                                                        </fo:block>
3297                                                                                                </fo:table-cell>
3298                                                                                                <fo:table-cell>
3299                                                                                                        <fo:block>
3300                                                                                                                <fo:basic-link external-destination="url({$url_eth})">C2</fo:basic-link>
3301                                                                                                        </fo:block>
3302                                                                                                        <fo:block>
3303                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:eth/@uom"/>
3304                                                                                                        </fo:block>
3305                                                                                                </fo:table-cell>
3306                                                                                                <fo:table-cell>
3307                                                                                                        <fo:block>
3308                                                                                                                <fo:basic-link external-destination="url({$url_prop})">C3</fo:basic-link>
3309                                                                                                        </fo:block>
3310                                                                                                        <fo:block>
3311                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:prop/@uom"/>
3312                                                                                                        </fo:block>
3313                                                                                                </fo:table-cell>
3314                                                                                                <fo:table-cell>
3315                                                                                                        <fo:block>
3316                                                                                                                <fo:basic-link external-destination="url({$url_ibut})">IC4</fo:basic-link>
3317                                                                                                        </fo:block>
3318                                                                                                        <fo:block>
3319                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:ibut/@uom"/>
3320                                                                                                        </fo:block>
3321                                                                                                </fo:table-cell>
3322                                                                                                <fo:table-cell>
3323                                                                                                        <fo:block>
3324                                                                                                                <fo:basic-link external-destination="url({$url_ipent})">IC5</fo:basic-link>
3325                                                                                                        </fo:block>
3326                                                                                                        <fo:block>
3327                                                                                                                <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo/witsml:ipent/@uom"/>
3328                                                                                                        </fo:block>
3329                                                                                                </fo:table-cell>
3330                                                                                        </fo:table-row>
3331                                                                                        <xfd:table-row-repeat xpath="/witsml:drillReports/witsml:drillReport/witsml:gasReadingInfo">
3332                                                                                                <fo:table-cell>
3333                                                                                                        <fo:block>
3334                                                                                                                <xfd:field xpath="substring-after(witsml:dTim, 'T')"/>
3335                                                                                                        </fo:block>
3336                                                                                                </fo:table-cell>
3337                                                                                                <fo:table-cell>
3338                                                                                                        <fo:block>
3339                                                                                                                <xfd:field xpath="witsml:readingType"/>
3340                                                                                                        </fo:block>
3341                                                                                                </fo:table-cell>
3342                                                                                                <fo:table-cell>
3343                                                                                                        <fo:block>
3344                                                                                                                <xfd:field xpath="witsml:mdTop"/>
3345                                                                                                        </fo:block>
3346                                                                                                </fo:table-cell>
3347                                                                                                <fo:table-cell>
3348                                                                                                        <fo:block>
3349                                                                                                                <xfd:field xpath="witsml:mdBottom"/>
3350                                                                                                        </fo:block>
3351                                                                                                </fo:table-cell>
3352                                                                                                <fo:table-cell>
3353                                                                                                        <fo:block>
3354                                                                                                                <xfd:field xpath="witsml:tvdTop"/>
3355                                                                                                        </fo:block>
3356                                                                                                </fo:table-cell>
3357                                                                                                <fo:table-cell>
3358                                                                                                        <fo:block>
3359                                                                                                                <xfd:field xpath="witsml:tvdBottom"/>
3360                                                                                                        </fo:block>
3361                                                                                                </fo:table-cell>
3362                                                                                                <fo:table-cell>
3363                                                                                                        <fo:block>
3364                                                                                                                <xfd:field xpath="witsml:gasHigh"/>
3365                                                                                                        </fo:block>
3366                                                                                                </fo:table-cell>
3367                                                                                                <fo:table-cell>
3368                                                                                                        <fo:block>
3369                                                                                                                <xfd:field xpath="witsml:gasLow"/>
3370                                                                                                        </fo:block>
3371                                                                                                </fo:table-cell>
3372                                                                                                <fo:table-cell>
3373                                                                                                        <fo:block>
3374                                                                                                                <xfd:field xpath="witsml:meth"/>
3375                                                                                                        </fo:block>
3376                                                                                                </fo:table-cell>
3377                                                                                                <fo:table-cell>
3378                                                                                                        <fo:block>
3379                                                                                                                <xfd:field xpath="witsml:eth"/>
3380                                                                                                        </fo:block>
3381                                                                                                </fo:table-cell>
3382                                                                                                <fo:table-cell>
3383                                                                                                        <fo:block>
3384                                                                                                                <xfd:field xpath="witsml:prop"/>
3385                                                                                                        </fo:block>
3386                                                                                                </fo:table-cell>
3387                                                                                                <fo:table-cell>
3388                                                                                                        <fo:block>
3389                                                                                                                <xfd:field xpath="witsml:ibut"/>
3390                                                                                                        </fo:block>
3391                                                                                                </fo:table-cell>
3392                                                                                                <fo:table-cell>
3393                                                                                                        <fo:block>
3394                                                                                                                <xfd:field xpath="witsml:ipent"/>
3395                                                                                                        </fo:block>
3396                                                                                                </fo:table-cell>
3397                                                                                        </xfd:table-row-repeat>
3398                                                                                </fo:table-body>
3399                                                                        </fo:table> </fo:block>
3400                                                        </fo:table-cell>
3401                                                </fo:table-row>
3402                                        </fo:table-body>
3403                                </fo:table>
3404                        </fo:block>
3405                </fo:flow>
3406        </fo:page-sequence>
3407</xfd:document>
Note: See TracBrowser for help on using the browser.