- Timestamp:
- 05/18/11 12:06:19 (13 years ago)
- Location:
- projects/DailyDrillingReport_1.2/XML
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
projects/DailyDrillingReport_1.2/XML/HTMLreport/ddr_HTMLReport_transformation_2011_02_07.xsl
r213 r221 36 36 <xsl:variable name="element_objDrillReport_sequence" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='obj_drillReport']/xsd:sequence/xsd:sequence"/> 37 37 <xsl:variable name="element_statusInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='statusInfo']/xsd:sequence"/> 38 <xsl:variable name="url_reportNo"> 39 <xsl:value-of select="$element_statusInfo//xsd:element[@name='reportNo']/@sawsdl:modelReference"/> 40 </xsl:variable> 41 <xsl:variable name="url_dTimEnd"> 42 <xsl:value-of select="element_objDrillReport_sequence//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 43 </xsl:variable> 38 44 <td> 39 45 <table id="table1" width="100%"> … … 41 47 <tr class="light"> 42 48 <td class="dark"> 43 <a target="_blank" href="{$url RDS}">Report Number:</a>49 <a target="_blank" href="{$url_reportNo}">Report Number:</a> 44 50 </td> 45 51 <td class="light"> … … 47 53 </td> 48 54 <td class="dark"> 49 <a target="_blank" href="{$url RDS}">Period:</a>55 <a target="_blank" href="{$url_dTimEnd}">Period:</a> 50 56 </td> 51 57 <td colspan="2"> … … 362 368 <xsl:value-of select="$element_bitRecord//xsd:element[@name='manufacturer']/@sawsdl:modelReference"/> 363 369 </xsl:variable> 370 <xsl:variable name="url_eTimOpBit"> 371 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='eTimOpBit']/@sawsdl:modelReference"/> 372 </xsl:variable> 373 <xsl:variable name="url_mdHoleStart"> 374 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStart']/@sawsdl:modelReference"/> 375 </xsl:variable> 376 <xsl:variable name="url_mdHoleStop"> 377 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStop']/@sawsdl:modelReference"/> 378 </xsl:variable> 379 <xsl:variable name="url_ropAv"> 380 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='ropAv']/@sawsdl:modelReference"/> 381 </xsl:variable> 382 <xsl:variable name="url_mdTotHoleMade"> 383 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdTotHoleMade']/@sawsdl:modelReference"/> 384 </xsl:variable> 385 <xsl:variable name="url_totHrsDrilled"> 386 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totHrsDrilled']/@sawsdl:modelReference"/> 387 </xsl:variable> 388 <xsl:variable name="url_totRop"> 389 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totRop']/@sawsdl:modelReference"/> 390 </xsl:variable> 391 <xsl:variable name="url_dullGrade"> 392 <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='dullGrade']/@sawsdl:modelReference"/> 393 </xsl:variable> 364 394 <tr> 365 395 <td align="center" width="50" valign="top"> … … 377 407 </td> 378 408 <td align="center" width="50" valign="top"> 379 <a target="_blank" href="{$url RDS}">Hours drilled<br />409 <a target="_blank" href="{$url_eTimOpBit}">Hours drilled<br /> 380 410 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom"/> 381 411 </a> 382 412 </td> 383 413 <td align="center" width="50" valign="top"> 384 <a target="_blank" href="{$url RDS}">MD start<br />414 <a target="_blank" href="{$url_mdHoleStart}">MD start<br /> 385 415 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart/@uom"/> 386 416 </a> 387 417 </td> 388 418 <td align="center" width="50" valign="top"> 389 <a target="_blank" href="{$url RDS}">MD end<br />419 <a target="_blank" href="{$url_mdHoleStop}">MD end<br /> 390 420 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 391 421 </a> 392 422 </td> 393 423 <td align="center" width="60" valign="top"> 394 <a target="_blank" href="{$url RDS}">Hole made (last 24H)<br />424 <a target="_blank" href="{$url_mdHoleStop}">Hole made (last 24H)<br /> 395 425 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 396 426 </a> 397 427 </td> 398 428 <td align="center" width="60" valign="top"> 399 <a target="_blank" href="{$url RDS}">Hours drilled (last 24H)<br />429 <a target="_blank" href="{$url_eTimOpBit}">Hours drilled (last 24H)<br /> 400 430 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom"/> 401 431 </a> 402 432 </td> 403 433 <td align="center" width="60" valign="top"> 404 <a target="_blank" href="{$url RDS}">ROP<br />(last 24H)<br />434 <a target="_blank" href="{$url_ropAv}">ROP<br />(last 24H)<br /> 405 435 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/> 406 436 </a> 407 437 </td> 408 438 <td align="center" width="60" valign="top"> 409 <a target="_blank" href="{$url RDS}">Total<br />hole made<br />439 <a target="_blank" href="{$url_mdTotHoleMade}">Total<br />hole made<br /> 410 440 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/> 411 441 </a> 412 442 </td> 413 443 <td align="center" width="60" valign="top"> 414 <a target="_blank" href="{$url RDS}">Total hours drilled<br />444 <a target="_blank" href="{$url_totHrsDrilled}">Total hours drilled<br /> 415 445 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/> 416 446 </a> 417 447 </td> 418 448 <td align="center" width="60" valign="top"> 419 <a target="_blank" href="{$url RDS}">Total ROP<br />449 <a target="_blank" href="{$url_totRop}">Total ROP<br /> 420 450 <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom"/> 421 451 </a> 422 452 </td> 423 453 <td align="center" width="120" valign="top"> 424 <a target="_blank" href="{$url RDS}">Dull grade</a>454 <a target="_blank" href="{$url_dullGrade}">Dull grade</a> 425 455 </td> 426 456 </tr> … … 464 494 </td> 465 495 <td align="center"> 466 <xsl:value-of select="witsml:bitRun/witsml: ropMx"/>496 <xsl:value-of select="witsml:bitRun/witsml:totRop"/> 467 497 </td> 468 498 <td align="center"> … … 493 523 <table id="table2"> 494 524 <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='casing_liner_tubing']/xsd:sequence"/> 495 <!--<xsl:variable name="url_readingKind"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/></xsl:variable> 496 <xsl:variable name="url_equivalentMudWeight"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/></xsl:variable> 497 <xsl:variable name="url_dTim"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='dTim']/@sawsdl:modelReference"/></xsl:variable> 498 <xsl:variable name="url_md"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='md']/@sawsdl:modelReference"/></xsl:variable> 499 <xsl:variable name="url_tvd"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='tvd']/@sawsdl:modelReference"/></xsl:variable>--> 525 <xsl:variable name="url_type"> 526 <xsl:value-of select="$element_pipe//xsd:element[@name='type']/@sawsdl:modelReference"/> 527 </xsl:variable> 528 <xsl:variable name="url_casingType"> 529 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='casingType']/@sawsdl:modelReference"/> 530 </xsl:variable> 531 <xsl:variable name="url_dTimStart"> 532 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/> 533 </xsl:variable> 534 <xsl:variable name="url_dTimEnd"> 535 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 536 </xsl:variable> 537 <xsl:variable name="url_od"> 538 <xsl:value-of select="$element_pipe//xsd:element[@name='od']/@sawsdl:modelReference"/> 539 </xsl:variable> 540 <xsl:variable name="url_id"> 541 <xsl:value-of select="$element_pipe//xsd:element[@name='id']/@sawsdl:modelReference"/> 542 </xsl:variable> 543 <xsl:variable name="url_weight"> 544 <xsl:value-of select="$element_pipe//xsd:element[@name='weight']/@sawsdl:modelReference"/> 545 </xsl:variable> 546 <xsl:variable name="url_grade"> 547 <xsl:value-of select="$element_pipe//xsd:element[@name='grade']/@sawsdl:modelReference"/> 548 </xsl:variable> 549 <xsl:variable name="url_connection"> 550 <xsl:value-of select="$element_pipe//xsd:element[@name='connection']/@sawsdl:modelReference"/> 551 </xsl:variable> 552 <xsl:variable name="url_length"> 553 <xsl:value-of select="$element_pipe//xsd:element[@name='length']/@sawsdl:modelReference"/> 554 </xsl:variable> 555 <xsl:variable name="url_mdTop"> 556 <xsl:value-of select="$element_pipe//xsd:element[@name='mdTop']/@sawsdl:modelReference"/> 557 </xsl:variable> 558 <xsl:variable name="url_mdBottom"> 559 <xsl:value-of select="$element_pipe//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/> 560 </xsl:variable> 561 <xsl:variable name="url_description"> 562 <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='description']/@sawsdl:modelReference"/> 563 </xsl:variable> 500 564 <tr> 501 565 <td align="center" valign="top"> 502 <a target="_blank" href="{$url RDS}">Type of pipe</a>566 <a target="_blank" href="{$url_type}">Type of pipe</a> 503 567 </td> 504 568 <td align="center" valign="top"> 505 <a target="_blank" href="{$url RDS}">Casing type</a>569 <a target="_blank" href="{$url_casingType}">Casing type</a> 506 570 </td> 507 571 <td align="center" width="60" valign="top"> 508 <a target="_blank" href="{$url RDS}">Run time</a>572 <a target="_blank" href="{$url_dTimStart}">Run time</a> 509 573 </td> 510 574 <td align="center" width="60" valign="top"> 511 <a target="_blank" href="{$url RDS}">Nominal outside diameter<br />575 <a target="_blank" href="{$url_od}">Nominal outside diameter<br /> 512 576 <xsl:value-of select="witsml:casing_liner_tubing/witsml:od/@uom"/> 513 577 </a> 514 578 </td> 515 579 <td align="center" width="100" valign="top"> 516 <a target="_blank" href="{$url RDS}">Nominal inside diameter<br />580 <a target="_blank" href="{$url_id}">Nominal inside diameter<br /> 517 581 <xsl:value-of select="witsml:casing_liner_tubing/witsml:id/@uom"/> 518 582 </a> 519 583 </td> 520 584 <td align="center" width="60" valign="top"> 521 <a target="_blank" href="{$url RDS}">Nominal Weight<br />585 <a target="_blank" href="{$url_weight}">Nominal Weight<br /> 522 586 <xsl:value-of select="witsml:casing_liner_tubing/witsml:weight/@uom"/> 523 587 </a> 524 588 </td> 525 589 <td align="center" width="60" valign="top"> 526 <a target="_blank" href="{$url RDS}">Nominal Grade</a>590 <a target="_blank" href="{$url_grade}">Nominal Grade</a> 527 591 </td> 528 592 <td align="center" width="60" valign="top"> 529 <a target="_blank" href="{$url RDS}">Nominal Connection</a>593 <a target="_blank" href="{$url_connection}">Nominal Connection</a> 530 594 </td> 531 595 <td align="center" width="60" valign="top"> 532 <a target="_blank" href="{$url RDS}">Length<br />596 <a target="_blank" href="{$url_length}">Length<br /> 533 597 <xsl:value-of select="witsml:casing_liner_tubing/witsml:length/@uom"/> 534 598 </a> 535 599 </td> 536 600 <td align="center" width="60" valign="top"> 537 <a target="_blank" href="{$url RDS}">MD Top/Hangar<br />601 <a target="_blank" href="{$url_mdTop}">MD Top/Hangar<br /> 538 602 <xsl:value-of select="witsml:casing_liner_tubing/witsml:mdTop/@uom"/> 539 603 </a> 540 604 </td> 541 605 <td align="center" width="60" valign="top"> 542 <a target="_blank" href="{$url RDS}">MD Bottom/Shoe<br />606 <a target="_blank" href="{$url_mdBottom}">MD Bottom/Shoe<br /> 543 607 <xsl:value-of select="witsml:casing_liner_tubing/witsml:mdBottom/@uom"/> 544 608 </a> 545 609 </td> 546 610 <td align="left" width="100" valign="top"> 547 <a target="_blank" href="{$url RDS}">Description</a>611 <a target="_blank" href="{$url_description}">Description</a> 548 612 </td> 549 613 </tr> … … 556 620 </td> 557 621 <td align="center"> 558 <xsl:value-of select="witsml:casing_liner_tubing_run/witsml: tubularJobType"/>559 </td> 560 <td align="center"> 561 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTim End, 0, 17), 'T')"/>622 <xsl:value-of select="witsml:casing_liner_tubing_run/witsml:casingType"/> 623 </td> 624 <td align="center"> 625 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 562 626 </td> 563 627 <td align="center"> … … 611 675 <td> 612 676 <table id="table2"> 613 <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cement']/xsd:sequence"/> 614 <!--<xsl:variable name="url_readingKind"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/></xsl:variable> 615 <xsl:variable name="url_equivalentMudWeight"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/></xsl:variable> 616 <xsl:variable name="url_dTim"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='dTim']/@sawsdl:modelReference"/></xsl:variable> 617 <xsl:variable name="url_md"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='md']/@sawsdl:modelReference"/></xsl:variable> 618 <xsl:variable name="url_tvd"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='tvd']/@sawsdl:modelReference"/></xsl:variable>--> 677 <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_cementStage']/xsd:sequence"/> 678 <xsl:variable name="url_dTimPumpStart"> 679 <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpStart']/@sawsdl:modelReference"/> 680 </xsl:variable> 681 <xsl:variable name="url_dTimPumpEnd"> 682 <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpEnd']/@sawsdl:modelReference"/> 683 </xsl:variable> 684 <xsl:variable name="url_jobType"> 685 <xsl:value-of select="$element_cement//xsd:element[@name='jobType']/@sawsdl:modelReference"/> 686 </xsl:variable> 687 <xsl:variable name="url_casingStrDia"> 688 <xsl:value-of select="$element_cement//xsd:element[@name='casingStrDia']/@sawsdl:modelReference"/> 689 </xsl:variable> 690 <xsl:variable name="url_topPlug"> 691 <xsl:value-of select="$element_cement//xsd:element[@name='topPlug']/@sawsdl:modelReference"/> 692 </xsl:variable> 693 <xsl:variable name="url_botPlug"> 694 <xsl:value-of select="$element_cement//xsd:element[@name='botPlug']/@sawsdl:modelReference"/> 695 </xsl:variable> 696 <xsl:variable name="url_plugBumped"> 697 <xsl:value-of select="$element_cement//xsd:element[@name='plugBumped']/@sawsdl:modelReference"/> 698 </xsl:variable> 699 <xsl:variable name="url_presBump"> 700 <xsl:value-of select="$element_cement//xsd:element[@name='presBump']/@sawsdl:modelReference"/> 701 </xsl:variable> 702 <xsl:variable name="url_floatHeld"> 703 <xsl:value-of select="$element_cement//xsd:element[@name='floatHeld']/@sawsdl:modelReference"/> 704 </xsl:variable> 705 <xsl:variable name="url_eTimPresHeld"> 706 <xsl:value-of select="$element_cement//xsd:element[@name='eTimPresHeld']/@sawsdl:modelReference"/> 707 </xsl:variable> 708 <xsl:variable name="url_annFlowAfter"> 709 <xsl:value-of select="$element_cement//xsd:element[@name='annFlowAfter']/@sawsdl:modelReference"/> 710 </xsl:variable> 711 <xsl:variable name="url_volReturns"> 712 <xsl:value-of select="$element_cement//xsd:element[@name='volReturns']/@sawsdl:modelReference"/> 713 </xsl:variable> 714 <xsl:variable name="url_reciprocated"> 715 <xsl:value-of select="$element_cement//xsd:element[@name='reciprocated']/@sawsdl:modelReference"/> 716 </xsl:variable> 717 <xsl:variable name="url_rotated"> 718 <xsl:value-of select="$element_cement//xsd:element[@name='rotated']/@sawsdl:modelReference"/> 719 </xsl:variable> 720 <xsl:variable name="url_comments"> 721 <xsl:value-of select="$element_cement//xsd:element[@name='comments']/@sawsdl:modelReference"/> 722 </xsl:variable> 619 723 <tr> 620 724 <td align="center" valign="top"> 621 <a target="_blank" href="{$url RDS}">Start Time</a>725 <a target="_blank" href="{$url_dTimPumpStart}">Start Time</a> 622 726 </td> 623 727 <td align="center" valign="top"> 624 <a target="_blank" href="{$url RDS}">End Time</a>728 <a target="_blank" href="{$url_dTimPumpEnd}">End Time</a> 625 729 </td> 626 730 <td align="center" width="50" valign="top"> 627 <a target="_blank" href="{$url RDS}">Job Type</a>731 <a target="_blank" href="{$url_jobType}">Job Type</a> 628 732 </td> 629 733 <td align="center" width="50" valign="top"> 630 <a target="_blank" href="{$url RDS}">Casing string diameter</a>734 <a target="_blank" href="{$url_casingStrDia}">Casing string diameter</a> 631 735 </td> 632 736 <td align="center" width="50" valign="top"> 633 <a target="_blank" href="{$url RDS}">Top plug used</a>737 <a target="_blank" href="{$url_topPlug}">Top plug used</a> 634 738 </td> 635 739 <td align="center" width="50" valign="top"> 636 <a target="_blank" href="{$url RDS}">Bottom plug used</a>740 <a target="_blank" href="{$url_botPlug}">Bottom plug used</a> 637 741 </td> 638 742 <td align="center" width="50" valign="top"> 639 <a target="_blank" href="{$url RDS}">Plug bumped</a>743 <a target="_blank" href="{$url_plugBumped}">Plug bumped</a> 640 744 </td> 641 745 <td align="center" width="50" valign="top"> 642 <a target="_blank" href="{$url RDS}">Plug bump pressure <xsl:value-of select="witsml:presBump/@uom"/>746 <a target="_blank" href="{$url_presBump}">Plug bump pressure <xsl:value-of select="witsml:presBump/@uom"/> 643 747 </a> 644 748 </td> 645 749 <td align="center" width="50" valign="top"> 646 <a target="_blank" href="{$url RDS}">Float held</a>750 <a target="_blank" href="{$url_floatHeld}">Float held</a> 647 751 </td> 648 752 <td align="center" width="50" valign="top"> 649 <a target="_blank" href="{$url RDS}">Pressure release time</a>753 <a target="_blank" href="{$url_eTimPresHeld}">Pressure release time</a> 650 754 </td> 651 755 <td align="center" width="50" valign="top"> 652 <a target="_blank" href="{$url RDS}">Full returns</a>756 <a target="_blank" href="{$url_annFlowAfter}">Full returns</a> 653 757 </td> 654 758 <td align="center" width="50" valign="top"> 655 <a target="_blank" href="{$url RDS}">Cement volume returns <xsl:value-of select="witsml:volReturns/@uom"/>759 <a target="_blank" href="{$url_volReturns}">Cement volume returns <xsl:value-of select="witsml:volReturns/@uom"/> 656 760 </a> 657 761 </td> 658 762 <td align="center" width="50" valign="top"> 659 <a target="_blank" href="{$url RDS}">Reciprocated</a>763 <a target="_blank" href="{$url_reciprocated}">Reciprocated</a> 660 764 </td> 661 765 <td align="center" width="50" valign="top"> 662 <a target="_blank" href="{$url RDS}">Rotated</a>766 <a target="_blank" href="{$url_rotated}">Rotated</a> 663 767 </td> 664 768 <td align="left" width="220" valign="top"> 665 <a target="_blank" href="{$url RDS}">Comments</a>769 <a target="_blank" href="{$url_comments}">Comments</a> 666 770 </td> 667 771 </tr> … … 735 839 <td class="SectionHead">Cementing Fluid Details</td> 736 840 </tr> 737 <xsl:variable name="element_ fluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/>738 <xsl:variable name="url_ dTimFluid">739 <xsl:value-of select="$element_ fluid//xsd:element[@name='dTim']/@sawsdl:modelReference"/>841 <xsl:variable name="element_cementingFluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 842 <xsl:variable name="url_typeFluid"> 843 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 740 844 </xsl:variable> 741 <xsl:variable name="url_mdFluid"> 742 <xsl:value-of select="$element_fluid//xsd:element[@name='md']/@sawsdl:modelReference"/> 743 </xsl:variable> 744 <xsl:variable name="url_mudClass"> 745 <xsl:value-of select="$element_fluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 845 <xsl:variable name="url_descFluid"> 846 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='descFluid']/@sawsdl:modelReference"/> 746 847 </xsl:variable> 747 848 <xsl:variable name="url_density"> 748 <xsl:value-of select="$element_ fluid//xsd:element[@name='density']/@sawsdl:modelReference"/>849 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 749 850 </xsl:variable> 750 <xsl:variable name="url_ pv">751 <xsl:value-of select="$element_ fluid//xsd:element[@name='pv']/@sawsdl:modelReference"/>851 <xsl:variable name="url_volPumped"> 852 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='volPumped']/@sawsdl:modelReference"/> 752 853 </xsl:variable> 753 854 <xsl:variable name="url_yp"> 754 <xsl:value-of select="$element_fluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 855 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 856 </xsl:variable> 857 <xsl:variable name="url_ratioMixWater"> 858 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='ratioMixWater']/@sawsdl:modelReference"/> 859 </xsl:variable> 860 <xsl:variable name="url_pcFreeWater"> 861 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='pcFreeWater']/@sawsdl:modelReference"/> 862 </xsl:variable> 863 <xsl:variable name="url_eTimThickening"> 864 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='eTimThickening']/@sawsdl:modelReference"/> 865 </xsl:variable> 866 <xsl:variable name="url_comments"> 867 <xsl:value-of select="$element_cementingFluid//xsd:element[@name='comments']/@sawsdl:modelReference"/> 755 868 </xsl:variable> 756 869 <tr> … … 759 872 <tr> 760 873 <td align="center" width="80" valign="top"> 761 <a target="_blank" href="{$url_ mudClass}">Fluid Type</a>874 <a target="_blank" href="{$url_typeFluid}">Fluid Type</a> 762 875 </td> 763 876 <td align="center" width="50" valign="top"> 764 <a target="_blank" href="{$url RDS}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/>877 <a target="_blank" href="{$url_volPumped}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/> 765 878 </a> 766 879 </td> … … 774 887 </td> 775 888 <td align="center" width="50" valign="top"> 776 <a target="_blank" href="{$url RDS}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/>889 <a target="_blank" href="{$url_ratioMixWater}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/> 777 890 </a> 778 891 </td> 779 892 <td align="center" width="50" valign="top"> 780 <a target="_blank" href="{$url RDS}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/>893 <a target="_blank" href="{$url_pcFreeWater}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/> 781 894 </a> 782 895 </td> 783 896 <td align="center" width="50" valign="top"> 784 <a target="_blank" href="{$url RDS}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/>897 <a target="_blank" href="{$url_eTimThickening}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/> 785 898 </a> 786 899 </td> 787 900 <td align="left" width="210" valign="top"> 788 <a target="_blank" href="{$url_ mudClass}">Fluid Description</a>901 <a target="_blank" href="{$url_descFluid}">Fluid Description</a> 789 902 </td> 790 903 <td align="left" width="230" valign="top"> 791 <a target="_blank" href="{$url RDS}">Comments</a>904 <a target="_blank" href="{$url_comments}">Comments</a> 792 905 </td> 793 906 … … 1984 2097 </td> 1985 2098 <td width="110" align="center" valign="top"> 1986 <a href="{$url RDS}" target="_blank">Duration Well Perf</a>2099 <a href="{$url_dTimClose}" target="_blank">Duration Well Perf</a> 1987 2100 </td> 1988 2101 <td width="100" align="center" valign="top" class="ColHead"> … … 2326 2439 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='elevKelly']/@sawsdl:modelReference"/> 2327 2440 </xsl:variable> 2441 <xsl:variable name="url_waterDepth"> 2442 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='waterDepth']/@sawsdl:modelReference"/> 2443 </xsl:variable> 2328 2444 <tr class="light"> 2329 2445 <td class="dark"> … … 2362 2478 </td> 2363 2479 <td class="dark"> 2364 <a target="_blank" href="{$url RDS}">Water Depth MSL <xsl:value-of select="../witsml:statusInfo/witsml:waterDepth/@uom" />:</a>2480 <a target="_blank" href="{$url_waterDepth}">Water Depth MSL <xsl:value-of select="../witsml:statusInfo/witsml:waterDepth/@uom" />:</a> 2365 2481 </td> 2366 2482 <td class="light"> … … 2437 2553 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdCsgLast']/@sawsdl:modelReference"/> 2438 2554 </xsl:variable> 2555 <xsl:variable name="url_tightWell"> 2556 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tightWell']/@sawsdl:modelReference"/> 2557 </xsl:variable> 2558 <xsl:variable name="url_hpht"> 2559 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='hpht']/@sawsdl:modelReference"/> 2560 </xsl:variable> 2561 <xsl:variable name="url_avgPresBH"> 2562 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgPresBH']/@sawsdl:modelReference"/> 2563 </xsl:variable> 2564 <xsl:variable name="url_expTempBH"> 2565 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='expTempBH']/@sawsdl:modelReference"/> 2566 </xsl:variable> 2567 <xsl:variable name="url_fixedRig"> 2568 <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='fixedRig']/@sawsdl:modelReference"/> 2569 </xsl:variable> 2439 2570 <!-- Added 18jan2011 --> 2440 <xsl:variable name="element_header" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='statusInfo']/xsd:sequence"/>2441 <xsl:variable name="element_rigTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='rigTypes']/xsd:restriction"/>2442 <xsl:variable name="urlRDS" select="'http://www.posccaesar.org'"/>2443 2571 <tr class="light"> 2444 2572 <td class="dark"> 2445 <a target="_blank" href="{$url RDS}">Tight well:</a>2573 <a target="_blank" href="{$url_tightWell}">Tight well:</a> 2446 2574 </td> 2447 2575 <td class="light"> … … 2450 2578 </td> 2451 2579 <td class="dark"> 2452 <a target="_blank" href="{$url RDS}">High Pressure - High Temperature:</a>2580 <a target="_blank" href="{$url_hpht}">High Pressure - High Temperature:</a> 2453 2581 </td> 2454 2582 <td class="light"> … … 2461 2589 <tr class="light"> 2462 2590 <td class="dark"> 2463 <a target="_blank" href="{$url RDS}">Pressure <xsl:value-of select="witsml:avgPresBH/@uom" />:</a>2591 <a target="_blank" href="{$url_avgPresBH}">Pressure <xsl:value-of select="witsml:avgPresBH/@uom" />:</a> 2464 2592 </td> 2465 2593 <td class="light"> … … 2467 2595 </td> 2468 2596 <td class="dark"> 2469 <a target="_blank" href="{$url RDS}">Temperature <xsl:value-of select="witsml:expTempBH/@uom" />:</a>2597 <a target="_blank" href="{$url_expTempBH}">Temperature <xsl:value-of select="witsml:expTempBH/@uom" />:</a> 2470 2598 </td> 2471 2599 <td class="light"> … … 2477 2605 <!-- Added 07feb2011 --> 2478 2606 <td class="dark"> 2479 <a target="_blank" href="{$url RDS}">Fixed rig:</a>2607 <a target="_blank" href="{$url_fixedRig}">Fixed rig:</a> 2480 2608 </td> 2481 2609 <td class="light"> -
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>