Changeset 221 for projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_PDFReport_transformation_2011_03_09.xsl
- Timestamp:
- 05/18/11 12:06:19 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_PDFReport_transformation_2011_03_09.xsl
r213 r221 57 57 <fo:table-cell vertical-align="middle" horisontal-align="right"> 58 58 <fo:block font-weight="bold" text-align="right" font-size="11pt">End time: 59 59 <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'), ' ', substring-after(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'))"/> 60 60 </fo:block> 61 61 </fo:table-cell> … … 140 140 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdCsgLast']/@sawsdl:modelReference"/> 141 141 </xsl:variable> 142 <xsl:variable name="url_waterDepth"> 143 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='waterDepth']/@sawsdl:modelReference"/> 144 </xsl:variable> 145 <xsl:variable name="url_tightWell"> 146 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tightWell']/@sawsdl:modelReference"/> 147 </xsl:variable> 148 <xsl:variable name="url_hpht"> 149 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='hpht']/@sawsdl:modelReference"/> 150 </xsl:variable> 151 <xsl:variable name="url_avgPresBH"> 152 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgPresBH']/@sawsdl:modelReference"/> 153 </xsl:variable> 154 <xsl:variable name="url_expTempBH"> 155 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='expTempBH']/@sawsdl:modelReference"/> 156 </xsl:variable> 157 <xsl:variable name="url_fixedRig"> 158 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='fixedRig']/@sawsdl:modelReference"/> 159 </xsl:variable> 142 160 <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 143 161 <fo:table-column column-width="proportional-column-width(20)" column-number="1"/> … … 164 182 <fo:table-cell vertical-align="middle"> 165 183 <fo:block> 166 184 <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0,17), 'T'), ' ', 167 185 substring-after(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0,17), 'T'), ' - ', 168 186 substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'), ' ', … … 318 336 <fo:table-row> 319 337 <fo:table-cell vertical-align="middle"> 320 <fo:block font-weight="bold">Elevation RKB-MSL <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom)"> 338 <fo:block font-weight="bold"> 339 <fo:basic-link external-destination="url({$url_elevKelly})">Elevation RKB-MSL</fo:basic-link> 340 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom)"> 321 341 <fo:inline font-weight="bold"> 322 342 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom"/> … … 334 354 </fo:table-cell> 335 355 <fo:table-cell vertical-align="middle"> 336 <fo:block font-size="11pt" font-weight="bold">Water depth MSL <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom)"> 356 <fo:block font-size="11pt" font-weight="bold"> 357 <fo:basic-link external-destination="url({$url_waterDepth})">Water depth MSL </fo:basic-link> 358 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom)"> 337 359 <fo:inline> 338 360 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom"/> … … 353 375 <fo:table-cell vertical-align="middle"> 354 376 <fo:block font-weight="bold"> 355 <fo:basic-link external-destination="url({$url RDS})" font-weight="bold">Tight well</fo:basic-link>: </fo:block>377 <fo:basic-link external-destination="url({$url_tightWell})" font-weight="bold">Tight well</fo:basic-link>: </fo:block> 356 378 </fo:table-cell> 357 379 <fo:table-cell vertical-align="middle"> … … 363 385 <fo:table-cell vertical-align="middle"> 364 386 <fo:block font-size="11pt" font-weight="bold"> 365 <fo:basic-link external-destination="url({$url RDS})" font-weight="bold">High pressure - High temperature</fo:basic-link> </fo:block>387 <fo:basic-link external-destination="url({$url_hpht})" font-weight="bold">High pressure - High temperature</fo:basic-link> </fo:block> 366 388 </fo:table-cell> 367 389 <fo:table-cell vertical-align="middle"> … … 375 397 <fo:table-cell vertical-align="middle"> 376 398 <fo:block font-weight="bold"> 377 <fo:basic-link external-destination="url({$url RDS})">Pressure </fo:basic-link>399 <fo:basic-link external-destination="url({$url_avgPresBH})">Pressure </fo:basic-link> 378 400 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgPresBH/@uom)"> 379 401 <fo:inline> … … 393 415 <fo:table-cell vertical-align="middle"> 394 416 <fo:block font-size="11pt" font-weight="bold"> 395 <fo:basic-link external-destination="url({$url RDS})">Temperature </fo:basic-link>417 <fo:basic-link external-destination="url({$url_expTempBH})">Temperature </fo:basic-link> 396 418 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH/@uom)"> 397 419 <fo:inline> … … 412 434 <fo:table-row> 413 435 <fo:table-cell vertical-align="middle"> 414 <fo:block font-weight="bold">Fixed rig</fo:block> 436 <fo:block font-weight="bold"> 437 <fo:basic-link external-destination="url({$url_fixedRig})">Fixed rig</fo:basic-link> 438 </fo:block> 415 439 </fo:table-cell> 416 440 <fo:table-cell vertical-align="middle"> … … 1107 1131 <xsl:variable name="url_manufacturer"> 1108 1132 <xsl:value-of select="$element_bitRecord//xsd:element[@name='manufacturer']/@sawsdl:modelReference"/> 1133 </xsl:variable> 1134 <xsl:variable name="url_eTimOpBit"> 1135 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='eTimOpBit']/@sawsdl:modelReference"/> 1136 </xsl:variable> 1137 <xsl:variable name="url_mdHoleStart"> 1138 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStart']/@sawsdl:modelReference"/> 1139 </xsl:variable> 1140 <xsl:variable name="url_mdHoleStop"> 1141 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStop']/@sawsdl:modelReference"/> 1142 </xsl:variable> 1143 <xsl:variable name="url_ropAv"> 1144 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='ropAv']/@sawsdl:modelReference"/> 1145 </xsl:variable> 1146 <xsl:variable name="url_mdTotHoleMade"> 1147 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdTotHoleMade']/@sawsdl:modelReference"/> 1148 </xsl:variable> 1149 <xsl:variable name="url_totHrsDrilled"> 1150 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totHrsDrilled']/@sawsdl:modelReference"/> 1151 </xsl:variable> 1152 <xsl:variable name="url_totRop"> 1153 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totRop']/@sawsdl:modelReference"/> 1154 </xsl:variable> 1155 <xsl:variable name="url_dullGrade"> 1156 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='dullGrade']/@sawsdl:modelReference"/> 1109 1157 </xsl:variable> 1110 1158 <fo:table width="100%"> … … 1171 1219 </fo:table-cell> 1172 1220 <fo:table-cell> 1173 <fo:block>Hours drilled</fo:block> 1221 <fo:block> 1222 <fo:basic-link external-destination="url({$url_eTimOpBit})">Hours drilled</fo:basic-link> 1223 </fo:block> 1174 1224 <fo:block> 1175 1225 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom)"> … … 1181 1231 </fo:table-cell> 1182 1232 <fo:table-cell> 1183 <fo:block>MD Start</fo:block> 1233 <fo:block> 1234 <fo:basic-link external-destination="url({$url_mdHoleStart})">MD Start</fo:basic-link> 1235 </fo:block> 1184 1236 <fo:block> 1185 1237 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart/@uom)"> … … 1191 1243 </fo:table-cell> 1192 1244 <fo:table-cell> 1193 <fo:block>MD end</fo:block> 1245 <fo:block> 1246 <fo:basic-link external-destination="url({$url_mdHoleStop})">MD end</fo:basic-link> 1247 </fo:block> 1194 1248 <fo:block> 1195 1249 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> … … 1201 1255 </fo:table-cell> 1202 1256 <fo:table-cell> 1203 <fo:block>Hole made (run)</fo:block> 1257 <fo:block> 1258 <fo:basic-link external-destination="url({$url_mdHoleStop})">Hole made (last 24H)</fo:basic-link> 1259 </fo:block> 1204 1260 <fo:block> 1205 1261 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> … … 1211 1267 </fo:table-cell> 1212 1268 <fo:table-cell> 1213 <fo:block>Hours drilled (run)</fo:block> 1214 <fo:block> 1215 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> 1216 <fo:inline> 1217 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 1218 </fo:inline> 1219 </xsl:if> 1220 </fo:block> 1221 </fo:table-cell> 1222 <fo:table-cell> 1223 <fo:block>ROP</fo:block> 1269 <fo:block> 1270 <fo:basic-link external-destination="url({$url_eTimOpBit})">Hours drilled (last 24H)</fo:basic-link> 1271 </fo:block> 1272 </fo:table-cell> 1273 <fo:table-cell> 1274 <fo:block> 1275 <fo:basic-link external-destination="url({$url_ropAv})">ROP</fo:basic-link> 1276 </fo:block> 1224 1277 <fo:block> 1225 1278 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom)"> … … 1231 1284 </fo:table-cell> 1232 1285 <fo:table-cell> 1233 <fo:block>Total hole made</fo:block> 1286 <fo:block> 1287 <fo:basic-link external-destination="url({$url_mdTotHoleMade})">Total hole made</fo:basic-link> 1288 </fo:block> 1234 1289 <fo:block> 1235 1290 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom)"> … … 1241 1296 </fo:table-cell> 1242 1297 <fo:table-cell> 1243 <fo:block>Total hours drilled</fo:block> 1298 <fo:block> 1299 <fo:basic-link external-destination="url({$url_totHrsDrilled})">Total hours drilled</fo:basic-link> 1300 </fo:block> 1244 1301 <fo:block> 1245 1302 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom)"> … … 1251 1308 </fo:table-cell> 1252 1309 <fo:table-cell> 1253 <fo:block>Total ROP</fo:block> 1254 <fo:block> 1255 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom)"> 1310 <fo:block> 1311 <fo:basic-link external-destination="url({$url_totRop})">Total ROP</fo:basic-link> 1312 </fo:block> 1313 <fo:block> 1314 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom)"> 1256 1315 <fo:inline> 1257 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml: ropMx/@uom"/>1316 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom"/> 1258 1317 </fo:inline> 1259 1318 </xsl:if> … … 1261 1320 </fo:table-cell> 1262 1321 <fo:table-cell> 1263 <fo:block>Dull grade</fo:block> 1322 <fo:block> 1323 <fo:basic-link external-destination="url({$url_dullGrade})">Dull grade</fo:basic-link> 1324 </fo:block> 1264 1325 </fo:table-cell> 1265 1326 </fo:table-row> … … 1376 1437 <fo:table-cell> 1377 1438 <fo:block> 1378 <xsl:if test="string(witsml:bitRun/witsml: ropMx)">1379 <fo:inline> 1380 <xsl:value-of select="witsml:bitRun/witsml: ropMx"/>1439 <xsl:if test="string(witsml:bitRun/witsml:totRop)"> 1440 <fo:inline> 1441 <xsl:value-of select="witsml:bitRun/witsml:totRop"/> 1381 1442 </fo:inline> 1382 1443 </xsl:if> … … 1406 1467 <xsl:if test="count(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing) > 0"> 1407 1468 <fo:block> 1469 <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='casing_liner_tubing']/xsd:sequence"/> 1470 <xsl:variable name="url_type"> 1471 <xsl:value-of select="$element_pipe//xsd:element[@name='type']/@sawsdl:modelReference"/> 1472 </xsl:variable> 1473 <xsl:variable name="url_casingType"> 1474 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='casingType']/@sawsdl:modelReference"/> 1475 </xsl:variable> 1476 <xsl:variable name="url_dTimStart"> 1477 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/> 1478 </xsl:variable> 1479 <xsl:variable name="url_dTimEnd"> 1480 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 1481 </xsl:variable> 1482 <xsl:variable name="url_od"> 1483 <xsl:value-of select="$element_pipe//xsd:element[@name='od']/@sawsdl:modelReference"/> 1484 </xsl:variable> 1485 <xsl:variable name="url_id"> 1486 <xsl:value-of select="$element_pipe//xsd:element[@name='id']/@sawsdl:modelReference"/> 1487 </xsl:variable> 1488 <xsl:variable name="url_weight"> 1489 <xsl:value-of select="$element_pipe//xsd:element[@name='weight']/@sawsdl:modelReference"/> 1490 </xsl:variable> 1491 <xsl:variable name="url_grade"> 1492 <xsl:value-of select="$element_pipe//xsd:element[@name='grade']/@sawsdl:modelReference"/> 1493 </xsl:variable> 1494 <xsl:variable name="url_connection"> 1495 <xsl:value-of select="$element_pipe//xsd:element[@name='connection']/@sawsdl:modelReference"/> 1496 </xsl:variable> 1497 <xsl:variable name="url_length"> 1498 <xsl:value-of select="$element_pipe//xsd:element[@name='length']/@sawsdl:modelReference"/> 1499 </xsl:variable> 1500 <xsl:variable name="url_mdTop"> 1501 <xsl:value-of select="$element_pipe//xsd:element[@name='mdTop']/@sawsdl:modelReference"/> 1502 </xsl:variable> 1503 <xsl:variable name="url_mdBottom"> 1504 <xsl:value-of select="$element_pipe//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/> 1505 </xsl:variable> 1506 <xsl:variable name="url_description"> 1507 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='description']/@sawsdl:modelReference"/> 1508 </xsl:variable> 1408 1509 <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/> 1409 1510 <fo:leader/> … … 1442 1543 <fo:table-row font-weight="bold"> 1443 1544 <fo:table-cell> 1444 <fo:block>Type of pipe</fo:block> 1445 </fo:table-cell> 1446 <fo:table-cell> 1447 <fo:block>Casing type</fo:block> 1448 </fo:table-cell> 1449 <fo:table-cell> 1450 <fo:block>Run time</fo:block> 1451 </fo:table-cell> 1452 <fo:table-cell> 1453 <fo:block>Nominal outside diameter</fo:block> 1545 <fo:block> 1546 <fo:basic-link external-destination="url({$url_type})">Type of pipe</fo:basic-link> 1547 </fo:block> 1548 </fo:table-cell> 1549 <fo:table-cell> 1550 <fo:block> 1551 <fo:basic-link external-destination="url({$url_casingType})">Casing type</fo:basic-link> 1552 </fo:block> 1553 </fo:table-cell> 1554 <fo:table-cell> 1555 <fo:block> 1556 <fo:basic-link external-destination="url({$url_dTimStart})">Run time</fo:basic-link> 1557 </fo:block> 1558 </fo:table-cell> 1559 <fo:table-cell> 1560 <fo:block> 1561 <fo:basic-link external-destination="url({$url_od})">Nominal outside diameter</fo:basic-link> 1562 </fo:block> 1454 1563 <fo:block> 1455 1564 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:od/@uom)"> … … 1461 1570 </fo:table-cell> 1462 1571 <fo:table-cell> 1463 <fo:block>Nominal inside diameter</fo:block> 1572 <fo:block> 1573 <fo:basic-link external-destination="url({$url_id})">Nominal inside diameter</fo:basic-link> 1574 </fo:block> 1464 1575 <fo:block> 1465 1576 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:id/@uom)"> … … 1471 1582 </fo:table-cell> 1472 1583 <fo:table-cell> 1473 <fo:block>Nominal Weight</fo:block> 1584 <fo:block> 1585 <fo:basic-link external-destination="url({$url_weight})">Nominal Weight</fo:basic-link> 1586 </fo:block> 1474 1587 <fo:block> 1475 1588 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:weight/@uom)"> … … 1481 1594 </fo:table-cell> 1482 1595 <fo:table-cell> 1483 <fo:block>Nominal Grade</fo:block> 1484 </fo:table-cell> 1485 <fo:table-cell> 1486 <fo:block>Nominal Connection</fo:block> 1487 </fo:table-cell> 1488 <fo:table-cell> 1489 <fo:block>Length</fo:block> 1596 <fo:block> 1597 <fo:basic-link external-destination="url({$url_grade})">Nominal Grade</fo:basic-link> 1598 </fo:block> 1599 </fo:table-cell> 1600 <fo:table-cell> 1601 <fo:block> 1602 <fo:basic-link external-destination="url({$url_connection})">Nominal Connection</fo:basic-link> 1603 </fo:block> 1604 </fo:table-cell> 1605 <fo:table-cell> 1606 <fo:block> 1607 <fo:basic-link external-destination="url({$url_length})">Length</fo:basic-link> 1608 </fo:block> 1490 1609 <fo:block> 1491 1610 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom)"> … … 1497 1616 </fo:table-cell> 1498 1617 <fo:table-cell> 1499 <fo:block>MD Top/Hangar</fo:block> 1618 <fo:block> 1619 <fo:basic-link external-destination="url({$url_mdTop})">MD Top/Hangar</fo:basic-link> 1620 </fo:block> 1500 1621 <fo:block> 1501 1622 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom)"> … … 1507 1628 </fo:table-cell> 1508 1629 <fo:table-cell> 1509 <fo:block>MD Bottom/Shoe</fo:block> 1630 <fo:block> 1631 <fo:basic-link external-destination="url({$url_mdBottom})">MD Bottom/Shoe</fo:basic-link> 1632 </fo:block> 1510 1633 <fo:block> 1511 1634 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdBottom/@uom)"> … … 1517 1640 </fo:table-cell> 1518 1641 <fo:table-cell text-align="left"> 1519 <fo:block>Description</fo:block> 1642 <fo:block> 1643 <fo:basic-link external-destination="url({$url_description})">Description</fo:basic-link> 1644 </fo:block> 1520 1645 </fo:table-cell> 1521 1646 </fo:table-row> … … 1544 1669 <fo:table-cell> 1545 1670 <fo:block> 1546 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTim End, 0, 17), 'T'))">1547 <fo:inline> 1548 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTim End, 0, 17), 'T')"/>1671 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T'))"> 1672 <fo:inline> 1673 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 1549 1674 </fo:inline> 1550 1675 </xsl:if> … … 1645 1770 <xsl:if test="count(/witsml:drillReports/witsml:drillReport/witsml:cementStage) > 0"> 1646 1771 <fo:block break-before="page"> 1772 <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_cementStage']/xsd:sequence"/> 1773 <xsl:variable name="url_dTimPumpStart"> 1774 <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpStart']/@sawsdl:modelReference"/> 1775 </xsl:variable> 1776 <xsl:variable name="url_dTimPumpEnd"> 1777 <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpEnd']/@sawsdl:modelReference"/> 1778 </xsl:variable> 1779 <xsl:variable name="url_jobType"> 1780 <xsl:value-of select="$element_cement//xsd:element[@name='jobType']/@sawsdl:modelReference"/> 1781 </xsl:variable> 1782 <xsl:variable name="url_casingStrDia"> 1783 <xsl:value-of select="$element_cement//xsd:element[@name='casingStrDia']/@sawsdl:modelReference"/> 1784 </xsl:variable> 1785 <xsl:variable name="url_topPlug"> 1786 <xsl:value-of select="$element_cement//xsd:element[@name='topPlug']/@sawsdl:modelReference"/> 1787 </xsl:variable> 1788 <xsl:variable name="url_botPlug"> 1789 <xsl:value-of select="$element_cement//xsd:element[@name='botPlug']/@sawsdl:modelReference"/> 1790 </xsl:variable> 1791 <xsl:variable name="url_plugBumped"> 1792 <xsl:value-of select="$element_cement//xsd:element[@name='plugBumped']/@sawsdl:modelReference"/> 1793 </xsl:variable> 1794 <xsl:variable name="url_presBump"> 1795 <xsl:value-of select="$element_cement//xsd:element[@name='presBump']/@sawsdl:modelReference"/> 1796 </xsl:variable> 1797 <xsl:variable name="url_floatHeld"> 1798 <xsl:value-of select="$element_cement//xsd:element[@name='floatHeld']/@sawsdl:modelReference"/> 1799 </xsl:variable> 1800 <xsl:variable name="url_eTimPresHeld"> 1801 <xsl:value-of select="$element_cement//xsd:element[@name='eTimPresHeld']/@sawsdl:modelReference"/> 1802 </xsl:variable> 1803 <xsl:variable name="url_annFlowAfter"> 1804 <xsl:value-of select="$element_cement//xsd:element[@name='annFlowAfter']/@sawsdl:modelReference"/> 1805 </xsl:variable> 1806 <xsl:variable name="url_volReturns"> 1807 <xsl:value-of select="$element_cement//xsd:element[@name='volReturns']/@sawsdl:modelReference"/> 1808 </xsl:variable> 1809 <xsl:variable name="url_reciprocated"> 1810 <xsl:value-of select="$element_cement//xsd:element[@name='reciprocated']/@sawsdl:modelReference"/> 1811 </xsl:variable> 1812 <xsl:variable name="url_rotated"> 1813 <xsl:value-of select="$element_cement//xsd:element[@name='rotated']/@sawsdl:modelReference"/> 1814 </xsl:variable> 1815 <xsl:variable name="url_comments"> 1816 <xsl:value-of select="$element_cement//xsd:element[@name='comments']/@sawsdl:modelReference"/> 1817 </xsl:variable> 1647 1818 <xsl:for-each select="/witsml:drillReports/witsml:drillReport/witsml:cementStage"> 1648 1819 <fo:block> … … 1686 1857 <fo:table-row font-weight="bold"> 1687 1858 <fo:table-cell> 1688 <fo:block>Start time</fo:block> 1689 </fo:table-cell> 1690 <fo:table-cell> 1691 <fo:block>End time</fo:block> 1692 </fo:table-cell> 1693 <fo:table-cell> 1694 <fo:block>Job type</fo:block> 1695 </fo:table-cell> 1696 <fo:table-cell> 1697 <fo:block>Casing string diameter</fo:block> 1859 <fo:block> 1860 <fo:basic-link external-destination="url({$url_dTimPumpStart})">Start time</fo:basic-link> 1861 </fo:block> 1862 </fo:table-cell> 1863 <fo:table-cell> 1864 <fo:block> 1865 <fo:basic-link external-destination="url({$url_dTimPumpEnd})">End time</fo:basic-link> 1866 </fo:block> 1867 </fo:table-cell> 1868 <fo:table-cell> 1869 <fo:block> 1870 <fo:basic-link external-destination="url({$url_jobType})">Job type</fo:basic-link> 1871 </fo:block> 1872 </fo:table-cell> 1873 <fo:table-cell> 1874 <fo:block> 1875 <fo:basic-link external-destination="url({$url_casingStrDia})">Casing string diameter</fo:basic-link> 1876 </fo:block> 1698 1877 <fo:block> 1699 1878 <xsl:if test="string(witsml:casingStrDia/@uom)"> … … 1705 1884 </fo:table-cell> 1706 1885 <fo:table-cell> 1707 <fo:block>Top plug used</fo:block> 1708 </fo:table-cell> 1709 <fo:table-cell> 1710 <fo:block>Bottom plug used</fo:block> 1711 </fo:table-cell> 1712 <fo:table-cell> 1713 <fo:block>Plug bumped</fo:block> 1714 </fo:table-cell> 1715 <fo:table-cell> 1716 <fo:block>Plug bump pressure</fo:block> 1886 <fo:block> 1887 <fo:basic-link external-destination="url({$url_topPlug})">Top plug used</fo:basic-link> 1888 </fo:block> 1889 </fo:table-cell> 1890 <fo:table-cell> 1891 <fo:block> 1892 <fo:basic-link external-destination="url({$url_botPlug})">Bottom plug used</fo:basic-link> 1893 </fo:block> 1894 </fo:table-cell> 1895 <fo:table-cell> 1896 <fo:block> 1897 <fo:basic-link external-destination="url({$url_plugBumped})">Plug bumped</fo:basic-link> 1898 </fo:block> 1899 </fo:table-cell> 1900 <fo:table-cell> 1901 <fo:block> 1902 <fo:basic-link external-destination="url({$url_presBump})">Plug bump pressure</fo:basic-link> 1903 </fo:block> 1717 1904 <fo:block> 1718 1905 <xsl:if test="string(witsml:presBump/@uom)"> … … 1724 1911 </fo:table-cell> 1725 1912 <fo:table-cell> 1726 <fo:block>Float held</fo:block> 1727 </fo:table-cell> 1728 <fo:table-cell> 1729 <fo:block>Pressure release time</fo:block> 1730 </fo:table-cell> 1731 <fo:table-cell> 1732 <fo:block>Full returns</fo:block> 1733 </fo:table-cell> 1734 <fo:table-cell> 1735 <fo:block>Cement volume returns</fo:block> 1913 <fo:block> 1914 <fo:basic-link external-destination="url({$url_floatHeld})">Float held</fo:basic-link> 1915 </fo:block> 1916 </fo:table-cell> 1917 <fo:table-cell> 1918 <fo:block> 1919 <fo:basic-link external-destination="url({$url_eTimPresHeld})">Pressure release time</fo:basic-link> 1920 </fo:block> 1921 </fo:table-cell> 1922 <fo:table-cell> 1923 <fo:block> 1924 <fo:basic-link external-destination="url({$url_annFlowAfter})">Full returns</fo:basic-link> 1925 </fo:block> 1926 </fo:table-cell> 1927 <fo:table-cell> 1928 <fo:block> 1929 <fo:basic-link external-destination="url({$url_volReturns})">Cement volume returns</fo:basic-link> 1930 </fo:block> 1736 1931 <fo:block> 1737 1932 <xsl:if test="string(witsml:volReturns/@uom)"> … … 1743 1938 </fo:table-cell> 1744 1939 <fo:table-cell> 1745 <fo:block>Reciprocated</fo:block> 1746 </fo:table-cell> 1747 <fo:table-cell> 1748 <fo:block>Rotated</fo:block> 1940 <fo:block> 1941 <fo:basic-link external-destination="url({$url_reciprocated})">Reciprocated</fo:basic-link> 1942 </fo:block> 1943 </fo:table-cell> 1944 <fo:table-cell> 1945 <fo:block> 1946 <fo:basic-link external-destination="url({$url_rotated})">Rotated</fo:basic-link> 1947 </fo:block> 1749 1948 </fo:table-cell> 1750 1949 <fo:table-cell text-align="left"> 1751 <fo:block>Comments</fo:block> 1950 <fo:block> 1951 <fo:basic-link external-destination="url({$url_comments})">Comments</fo:basic-link> 1952 </fo:block> 1752 1953 </fo:table-cell> 1753 1954 </fo:table-row> … … 1891 2092 </fo:table-row> 1892 2093 <fo:table-row> 2094 <xsl:variable name="element_cementingFluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 2095 <xsl:variable name="url_typeFluid"> 2096 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 2097 </xsl:variable> 2098 <xsl:variable name="url_descFluid"> 2099 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='descFluid']/@sawsdl:modelReference"/> 2100 </xsl:variable> 2101 <xsl:variable name="url_density"> 2102 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 2103 </xsl:variable> 2104 <xsl:variable name="url_volPumped"> 2105 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='volPumped']/@sawsdl:modelReference"/> 2106 </xsl:variable> 2107 <xsl:variable name="url_yp"> 2108 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 2109 </xsl:variable> 2110 <xsl:variable name="url_ratioMixWater"> 2111 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='ratioMixWater']/@sawsdl:modelReference"/> 2112 </xsl:variable> 2113 <xsl:variable name="url_pcFreeWater"> 2114 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='pcFreeWater']/@sawsdl:modelReference"/> 2115 </xsl:variable> 2116 <xsl:variable name="url_eTimThickening"> 2117 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='eTimThickening']/@sawsdl:modelReference"/> 2118 </xsl:variable> 2119 <xsl:variable name="url_comments"> 2120 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='comments']/@sawsdl:modelReference"/> 2121 </xsl:variable> 1893 2122 <fo:table-cell> 1894 2123 <fo:block> … … 1906 2135 <fo:table-row font-weight="bold"> 1907 2136 <fo:table-cell> 1908 <fo:block>Fluid type</fo:block> 1909 </fo:table-cell> 1910 <fo:table-cell> 1911 <fo:block>Volume pumped</fo:block> 2137 <fo:block> 2138 <fo:basic-link external-destination="url({$url_typeFluid})">Fluid type</fo:basic-link></fo:block> 2139 </fo:table-cell> 2140 <fo:table-cell> 2141 <fo:block> 2142 <fo:basic-link external-destination="url({$url_volPumped})">Volume pumped</fo:basic-link></fo:block> 1912 2143 <fo:block> 1913 2144 <xsl:if test="string(witsml:cementingFluid/witsml:volPumped/@uom)"> … … 1919 2150 </fo:table-cell> 1920 2151 <fo:table-cell> 1921 <fo:block>Fluid densitiy</fo:block> 2152 <fo:block> 2153 <fo:basic-link external-destination="url({$url_density})">Fluid densitiy</fo:basic-link></fo:block> 1922 2154 <fo:block> 1923 2155 <xsl:if test="string(witsml:cementingFluid/witsml:density/@uom)"> … … 1929 2161 </fo:table-cell> 1930 2162 <fo:table-cell> 1931 <fo:block>Yield point</fo:block> 2163 <fo:block> 2164 <fo:basic-link external-destination="url({$url_yp})">Yield point</fo:basic-link></fo:block> 1932 2165 <fo:block> 1933 2166 <xsl:if test="string(witsml:cementingFluid/witsml:yp/@uom)"> … … 1939 2172 </fo:table-cell> 1940 2173 <fo:table-cell> 1941 <fo:block>Mix water ratio</fo:block> 2174 <fo:block> 2175 <fo:basic-link external-destination="url({$url_ratioMixWater})">Mix water ratio</fo:basic-link></fo:block> 1942 2176 <fo:block> 1943 2177 <xsl:if test="string(witsml:cementingFluid/witsml:ratioMixWater/@uom)"> … … 1949 2183 </fo:table-cell> 1950 2184 <fo:table-cell> 1951 <fo:block>Free water</fo:block> 2185 <fo:block> 2186 <fo:basic-link external-destination="url({$url_pcFreeWater})">Free water</fo:basic-link></fo:block> 1952 2187 <fo:block> 1953 2188 <xsl:if test="string(witsml:cementingFluid/witsml:pcFreeWater/@uom)"> … … 1959 2194 </fo:table-cell> 1960 2195 <fo:table-cell> 1961 <fo:block>Thick time</fo:block> 2196 <fo:block> 2197 <fo:basic-link external-destination="url({$url_eTimThickening})">Thickening time</fo:basic-link></fo:block> 1962 2198 <fo:block> 1963 2199 <xsl:if test="string(witsml:cementingFluid/witsml:eTimThickening/@uom)"> … … 1969 2205 </fo:table-cell> 1970 2206 <fo:table-cell text-align="left"> 1971 <fo:block>Fluid Description</fo:block> 2207 <fo:block> 2208 <fo:basic-link external-destination="url({$url_descFluid})">Fluid Description</fo:basic-link></fo:block> 1972 2209 </fo:table-cell> 1973 2210 <fo:table-cell text-align="left"> 1974 <fo:block>Comments</fo:block> 2211 <fo:block> 2212 <fo:basic-link external-destination="url({$url_comments})">Comments</fo:basic-link></fo:block> 1975 2213 </fo:table-cell> 1976 2214 </fo:table-row>