Changeset 159

Show
Ignore:
Timestamp:
03/30/11 10:33:08 (13 years ago)
Author:
yaolu
Message:

Did changes for both HTML report and PDF report so it is closer to how WITSML should be.

Location:
projects/DailyDrillingReport_1.2/XML
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • projects/DailyDrillingReport_1.2/XML/HTMLreport/WITSML_drillReport_profiled_schema_2011_01_29.xsd

    r153 r159  
    513513                        <xsd:enumeration value="primary"> 
    514514                                <xsd:annotation> 
    515                                         <xsd:documentation>primary</xsd:documentation> 
     515                                        <xsd:documentation></xsd:documentation> 
    516516                                </xsd:annotation> 
    517517                        </xsd:enumeration> 
    518518                        <xsd:enumeration value="plug"> 
    519519                                <xsd:annotation> 
    520                                         <xsd:documentation>plug</xsd:documentation> 
     520                                        <xsd:documentation></xsd:documentation> 
    521521                                </xsd:annotation> 
    522522                        </xsd:enumeration> 
    523523                        <xsd:enumeration value="squeeze"> 
    524524                                <xsd:annotation> 
    525                                         <xsd:documentation>squeeze</xsd:documentation> 
     525                                        <xsd:documentation></xsd:documentation> 
    526526                                </xsd:annotation> 
    527527                        </xsd:enumeration> 
    528528                        <xsd:enumeration value="unknown"> 
    529529                                <xsd:annotation> 
    530                                         <xsd:documentation>unknown</xsd:documentation> 
     530                                        <xsd:documentation></xsd:documentation> 
    531531                                </xsd:annotation> 
    532532                        </xsd:enumeration> 
    533533                        <xsd:enumeration value="other"> 
    534534                                <xsd:annotation> 
    535                                         <xsd:documentation>other</xsd:documentation> 
     535                                        <xsd:documentation></xsd:documentation> 
    536536                                </xsd:annotation> 
    537537                        </xsd:enumeration> 
     
    661661                        <xsd:enumeration value="Mud"> 
    662662                                <xsd:annotation> 
    663                                         <xsd:documentation>Mud</xsd:documentation> 
     663                                        <xsd:documentation></xsd:documentation> 
    664664                                </xsd:annotation> 
    665665                        </xsd:enumeration> 
    666666                        <xsd:enumeration value="Wash"> 
    667667                                <xsd:annotation> 
    668                                         <xsd:documentation>Wash</xsd:documentation> 
     668                                        <xsd:documentation></xsd:documentation> 
    669669                                </xsd:annotation> 
    670670                        </xsd:enumeration> 
    671671                        <xsd:enumeration value="Spacer"> 
    672672                                <xsd:annotation> 
    673                                         <xsd:documentation>Spacer</xsd:documentation> 
     673                                        <xsd:documentation></xsd:documentation> 
    674674                                </xsd:annotation> 
    675675                        </xsd:enumeration> 
    676676                        <xsd:enumeration value="Slurry"> 
    677677                                <xsd:annotation> 
    678                                         <xsd:documentation>Slurry</xsd:documentation> 
     678                                        <xsd:documentation></xsd:documentation> 
    679679                                </xsd:annotation> 
    680680                        </xsd:enumeration> 
     
    23652365                                </xsd:annotation> 
    23662366                        </xsd:element> 
    2367                         <xsd:element name="casing_liner_tubing_run" type="witsml:cs_stimJobStage"> 
     2367                        <xsd:element name="casing_liner_tubing_run" type="witsml:cs_stimJobStage" minOccurs='0' maxOccurs='1'> 
    23682368                                <!-- PROFILE: Added element casing_liner_tubing_run --> 
    23692369                                <xsd:annotation> 
     
    24012401                                </xsd:annotation> 
    24022402                        </xsd:element> 
    2403                         <!-- PROFILE: deleted element dTimEnd.--> 
     2403                        <xsd:element name="dTimEnd" type="witsml:timestamp" minOccurs="0" maxOccurs="1"> 
     2404                                <xsd:annotation> 
     2405                                        <xsd:documentation>Date time of end of this stimulation stage.  
     2406                                        (A 'point in time' when the activity of placing the actual section of casing,  
     2407                                        lining or tubing was in the 'wellbore' was completed.)</xsd:documentation> 
     2408                                </xsd:annotation> 
     2409                        </xsd:element> 
    24042410                        <!-- PROFILE: deleted element pumpTime. --> 
    24052411                        <!-- PROFILE: deleted element startRateSurfaceLiquid. --> 
     
    25092515                        <xsd:enumeration value="Top"> 
    25102516                                <xsd:annotation> 
    2511                                         <xsd:documentation>Top</xsd:documentation> 
     2517                                        <xsd:documentation></xsd:documentation> 
    25122518                                </xsd:annotation> 
    25132519                        </xsd:enumeration> 
    25142520                        <xsd:enumeration value="Intermediate"> 
    25152521                                <xsd:annotation> 
    2516                                         <xsd:documentation>Intermediate</xsd:documentation> 
     2522                                        <xsd:documentation></xsd:documentation> 
    25172523                                </xsd:annotation> 
    25182524                        </xsd:enumeration> 
    25192525                        <xsd:enumeration value="Production"> 
    25202526                                <xsd:annotation> 
    2521                                         <xsd:documentation>Production</xsd:documentation> 
     2527                                        <xsd:documentation></xsd:documentation> 
    25222528                                </xsd:annotation> 
    25232529                        </xsd:enumeration> 
  • projects/DailyDrillingReport_1.2/XML/HTMLreport/ddr_HTMLReport_transformation_2011_02_07.xsl

    r152 r159  
    540540                                                                                                </td> 
    541541                                                                                                <td align="center"> 
    542                                                                                                         <xsl:variable name="element_casing" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='tubularJobTypes']/xsd:restriction"/> 
    543                                                                                                         <xsl:variable name="casingTypes" select="witsml:casing_liner_tubing_run/witsml:tubularJobType" /> 
    544                                                                                                         <xsl:value-of select="$element_casing//xsd:enumeration[@value=$casingTypes]"/> 
     542                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing_run/witsml:tubularJobType"/> 
    545543                                                                                                </td> 
    546544                                                                                                <td align="center"> 
     
    660658                                                                                                </td> 
    661659                                                                                                <td align="center"> 
    662                                                                                                         <xsl:variable name="element_jobTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='cementJobTypes']/xsd:restriction"/> 
    663                                                                                                         <xsl:variable name="jobTypes" select="witsml:jobType" /> 
    664                                                                                                         <xsl:value-of select="$element_jobTypes//xsd:enumeration[@value=$jobTypes]"/> 
     660                                                                                                        <xsl:value-of select="witsml:jobType"/> 
    665661                                                                                                </td> 
    666662                                                                                                <td align="center"> 
     
    671667                                                                                                </td> 
    672668                                                                                                <td align="center"> 
    673                                                                                                         <xsl:if test="witsml:topPlug='true'">yes</xsl:if> 
    674                                                                                                         <xsl:if test="witsml:topPlug='false'">no</xsl:if> 
    675                                                                                                 </td> 
    676                                                                                                 <td align="center"> 
    677                                                                                                         <xsl:if test="witsml:botPlug='true'">yes</xsl:if> 
    678                                                                                                         <xsl:if test="witsml:botPlug='false'">no</xsl:if> 
    679                                                                                                 </td> 
    680                                                                                                 <td align="center"> 
    681                                                                                                         <xsl:if test="witsml:plugBumped='true'">yes</xsl:if> 
    682                                                                                                         <xsl:if test="witsml:plugBumped='false'">no</xsl:if> 
     669                                                                                                        <xsl:if test="witsml:topPlug='true' or witsml:topPlug='1'">yes</xsl:if> 
     670                                                                                                        <xsl:if test="witsml:topPlug='false' or witsml:topPlug='0'">no</xsl:if> 
     671                                                                                                </td> 
     672                                                                                                <td align="center"> 
     673                                                                                                        <xsl:if test="witsml:botPlug='true' or witsml:botPlug='1'">yes</xsl:if> 
     674                                                                                                        <xsl:if test="witsml:botPlug='false' or witsml:botPlug='0'">no</xsl:if> 
     675                                                                                                </td> 
     676                                                                                                <td align="center"> 
     677                                                                                                        <xsl:if test="witsml:plugBumped='true' or witsml:plugBumped='1'">yes</xsl:if> 
     678                                                                                                        <xsl:if test="witsml:plugBumped='false' or witsml:plugBumped='0'">no</xsl:if> 
    683679                                                                                                </td> 
    684680                                                                                                <td align="center"> 
     
    686682                                                                                                </td> 
    687683                                                                                                <td align="center"> 
    688                                                                                                         <xsl:if test="witsml:floatHeld='true'">yes</xsl:if> 
    689                                                                                                         <xsl:if test="witsml:floatHeld='false'">no</xsl:if> 
     684                                                                                                        <xsl:if test="witsml:floatHeld='true' or witsml:floatHeld='1'">yes</xsl:if> 
     685                                                                                                        <xsl:if test="witsml:floatHeld='false' or witsml:floatHeld='0'">no</xsl:if> 
    690686                                                                                                </td> 
    691687                                                                                                <td align="center"> 
     
    693689                                                                                                </td> 
    694690                                                                                                <td align="center"> 
    695                                                                                                         <xsl:if test="witsml:annFlowAfter='true'">yes</xsl:if> 
    696                                                                                                         <xsl:if test="witsml:annFlowAfter='false'">no</xsl:if> 
     691                                                                                                        <xsl:if test="witsml:annFlowAfter='true' or witsml:annFlowAfter='1'">yes</xsl:if> 
     692                                                                                                        <xsl:if test="witsml:annFlowAfter='false' or witsml:annFlowAfter='0'">no</xsl:if> 
    697693                                                                                                </td> 
    698694                                                                                                <td align="center"> 
     
    700696                                                                                                </td> 
    701697                                                                                                <td align="center"> 
    702                                                                                                         <xsl:if test="witsml:reciprocated='true'">yes</xsl:if> 
    703                                                                                                         <xsl:if test="witsml:reciprocated='false'">no</xsl:if> 
    704                                                                                                 </td> 
    705                                                                                                 <td align="center"> 
    706                                                                                                         <xsl:if test="witsml:rotated='true'">yes</xsl:if> 
    707                                                                                                         <xsl:if test="witsml:rotated='false'">no</xsl:if> 
     698                                                                                                        <xsl:if test="witsml:reciprocated='true' or witsml:reciprocated='1'">yes</xsl:if> 
     699                                                                                                        <xsl:if test="witsml:reciprocated='false' or witsml:reciprocated='0'">no</xsl:if> 
     700                                                                                                </td> 
     701                                                                                                <td align="center"> 
     702                                                                                                        <xsl:if test="witsml:rotated='true' or witsml:rotated='1'">yes</xsl:if> 
     703                                                                                                        <xsl:if test="witsml:rotated='false' or witsml:rotated='0'">no</xsl:if> 
    708704                                                                                                </td> 
    709705                                                                                        </tr> 
     
    712708                                                                </tr> 
    713709                                                                <!--  witsml:cementingFluid --> 
    714                                                                 <tr height="5px"> 
    715                                                                         <td/> 
    716                                                                 </tr> 
    717                                                                 <tr> 
    718                                                                         <td> 
    719                                                                         </td> 
    720                                                                 </tr> 
    721                                                                 <tr> 
    722                                                                         <td class="SectionHead">Cementing Fluid Details</td> 
    723                                                                 </tr> 
    724                                                                 <xsl:variable name="element_fluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 
    725                                                                 <xsl:variable name="url_dTimFluid"> 
    726                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='dTim']/@sawsdl:modelReference"/> 
    727                                                                 </xsl:variable> 
    728                                                                 <xsl:variable name="url_mdFluid"> 
    729                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='md']/@sawsdl:modelReference"/> 
    730                                                                 </xsl:variable> 
    731                                                                 <xsl:variable name="url_mudClass"> 
    732                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 
    733                                                                 </xsl:variable> 
    734                                                                 <xsl:variable name="url_density"> 
    735                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 
    736                                                                 </xsl:variable> 
    737                                                                 <xsl:variable name="url_pv"> 
    738                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='pv']/@sawsdl:modelReference"/> 
    739                                                                 </xsl:variable> 
    740                                                                 <xsl:variable name="url_yp"> 
    741                                                                         <xsl:value-of select="$element_fluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 
    742                                                                 </xsl:variable> 
    743                                                                 <tr> 
    744                                                                         <td> 
    745                                                                                 <table id="table2"> 
    746                                                                                         <tr> 
    747                                                                                                 <td align="center" width="100" valign="top"> 
    748                                                                                                         <a target="_blank" href="{$url_mudClass}">Fluid Type</a> 
    749                                                                                                 </td> 
    750                                                                                                 <td align="center" width="100" valign="top"> 
    751                                                                                                         <a target="_blank" href="{$url_mudClass}">Fluid Description</a> 
    752                                                                                                 </td> 
    753                                                                                                 <td align="center" width="100" valign="top"> 
    754                                                                                                         <a target="_blank" href="{$urlRDS}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/> 
    755                                                                                                         </a> 
    756                                                                                                 </td> 
    757                                                                                                 <td align="center" width="100" valign="top"> 
    758                                                                                                         <a target="_blank" href="{$url_density}">Fluid Density <xsl:value-of select="witsml:cementingFluid/witsml:density/@uom"/> 
    759                                                                                                         </a> 
    760                                                                                                 </td> 
    761                                                                                                 <td align="center" width="80" valign="top"> 
    762                                                                                                         <a target="_blank" href="{$url_yp}">Yield Point <xsl:value-of select="witsml:cementingFluid/witsml:yp/@uom"/> 
    763                                                                                                         </a> 
    764                                                                                                 </td> 
    765                                                                                                 <td align="center" width="80" valign="top"> 
    766                                                                                                         <a target="_blank" href="{$urlRDS}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/> 
    767                                                                                                         </a> 
    768                                                                                                 </td> 
    769                                                                                                 <td align="center" width="80" valign="top"> 
    770                                                                                                         <a target="_blank" href="{$urlRDS}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/> 
    771                                                                                                         </a> 
    772                                                                                                 </td> 
    773                                                                                                 <td align="center" width="80" valign="top"> 
    774                                                                                                         <a target="_blank" href="{$urlRDS}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/> 
    775                                                                                                         </a> 
    776                                                                                                 </td> 
    777                                                                                                 <td align="center" width="100" valign="top"> 
    778                                                                                                         <a target="_blank" href="{$urlRDS}">Comments</a> 
    779                                                                                                 </td> 
     710                                                                <xsl:if test="count(witsml:cementingFluid) > 0"> 
     711                                                                        <tr height="5px"> 
     712                                                                                <td/> 
     713                                                                        </tr> 
     714                                                                        <tr> 
     715                                                                                <td> 
     716                                                                                </td> 
     717                                                                        </tr> 
     718                                                                        <tr> 
     719                                                                                <td class="SectionHead">Cementing Fluid Details</td> 
     720                                                                        </tr> 
     721                                                                        <xsl:variable name="element_fluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 
     722                                                                        <xsl:variable name="url_dTimFluid"> 
     723                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='dTim']/@sawsdl:modelReference"/> 
     724                                                                        </xsl:variable> 
     725                                                                        <xsl:variable name="url_mdFluid"> 
     726                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='md']/@sawsdl:modelReference"/> 
     727                                                                        </xsl:variable> 
     728                                                                        <xsl:variable name="url_mudClass"> 
     729                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 
     730                                                                        </xsl:variable> 
     731                                                                        <xsl:variable name="url_density"> 
     732                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 
     733                                                                        </xsl:variable> 
     734                                                                        <xsl:variable name="url_pv"> 
     735                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='pv']/@sawsdl:modelReference"/> 
     736                                                                        </xsl:variable> 
     737                                                                        <xsl:variable name="url_yp"> 
     738                                                                                <xsl:value-of select="$element_fluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 
     739                                                                        </xsl:variable> 
     740                                                                        <tr> 
     741                                                                                <td> 
     742                                                                                        <table id="table2"> 
     743                                                                                                <tr> 
     744                                                                                                        <td align="center" width="100" valign="top"> 
     745                                                                                                                <a target="_blank" href="{$url_mudClass}">Fluid Type</a> 
     746                                                                                                        </td> 
     747                                                                                                        <td align="center" width="100" valign="top"> 
     748                                                                                                                <a target="_blank" href="{$url_mudClass}">Fluid Description</a> 
     749                                                                                                        </td> 
     750                                                                                                        <td align="center" width="100" valign="top"> 
     751                                                                                                                <a target="_blank" href="{$urlRDS}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/> 
     752                                                                                                                </a> 
     753                                                                                                        </td> 
     754                                                                                                        <td align="center" width="100" valign="top"> 
     755                                                                                                                <a target="_blank" href="{$url_density}">Fluid Density <xsl:value-of select="witsml:cementingFluid/witsml:density/@uom"/> 
     756                                                                                                                </a> 
     757                                                                                                        </td> 
     758                                                                                                        <td align="center" width="80" valign="top"> 
     759                                                                                                                <a target="_blank" href="{$url_yp}">Yield Point <xsl:value-of select="witsml:cementingFluid/witsml:yp/@uom"/> 
     760                                                                                                                </a> 
     761                                                                                                        </td> 
     762                                                                                                        <td align="center" width="80" valign="top"> 
     763                                                                                                                <a target="_blank" href="{$urlRDS}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/> 
     764                                                                                                                </a> 
     765                                                                                                        </td> 
     766                                                                                                        <td align="center" width="80" valign="top"> 
     767                                                                                                                <a target="_blank" href="{$urlRDS}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/> 
     768                                                                                                                </a> 
     769                                                                                                        </td> 
     770                                                                                                        <td align="center" width="80" valign="top"> 
     771                                                                                                                <a target="_blank" href="{$urlRDS}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/> 
     772                                                                                                                </a> 
     773                                                                                                        </td> 
     774                                                                                                        <td align="center" width="100" valign="top"> 
     775                                                                                                                <a target="_blank" href="{$urlRDS}">Comments</a> 
     776                                                                                                        </td> 
    780777 
    781                                                                                         </tr> 
    782                                                                                         <xsl:for-each select="witsml:cementingFluid"> 
    783                                                                                                 <tr class="light"> 
    784                                                                                                         <td align="center"> 
    785                                                                                                                 <xsl:variable name="element_fluidTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='fluidTypes']/xsd:restriction"/> 
    786                                                                                                                 <xsl:variable name="fluidTypes" select="witsml:typeFluid" /> 
    787                                                                                                                 <xsl:value-of select="$element_fluidTypes//xsd:enumeration[@value=$fluidTypes]"/> 
    788                                                                                                         </td> 
    789                                                                                                         <td align="center"> 
    790                                                                                                                 <xsl:value-of select="witsml:descFluid"/> 
    791                                                                                                         </td> 
    792                                                                                                         <td align="center"> 
    793                                                                                                                 <xsl:value-of select="witsml:volPumped"/> 
    794                                                                                                         </td> 
    795                                                                                                         <td align="center"> 
    796                                                                                                                 <xsl:value-of select="witsml:density"/> 
    797                                                                                                         </td> 
    798                                                                                                         <td align="center"> 
    799                                                                                                                 <xsl:value-of select="witsml:yp"/> 
    800                                                                                                         </td> 
    801                                                                                                         <td align="center"> 
    802                                                                                                                 <xsl:value-of select="witsml:ratioMixWater"/> 
    803                                                                                                         </td> 
    804                                                                                                         <td align="center"> 
    805                                                                                                                 <xsl:value-of select="witsml:pcFreeWater"/> 
    806                                                                                                         </td> 
    807                                                                                                         <td align="center"> 
    808                                                                                                                 <xsl:value-of select="witsml:eTimThickening"/> 
    809                                                                                                         </td> 
    810                                                                                                         <td align="center"> 
    811                                                                                                                 <xsl:value-of select="witsml:comments"/> 
    812                                                                                                         </td> 
    813778                                                                                                </tr> 
    814                                                                                         </xsl:for-each> 
    815                                                                                 </table> 
    816                                                                         </td> 
    817                                                                 </tr> 
     779                                                                                                <xsl:for-each select="witsml:cementingFluid"> 
     780                                                                                                        <tr class="light"> 
     781                                                                                                                <td align="center"> 
     782                                                                                                                        <xsl:value-of select="witsml:typeFluid"/> 
     783                                                                                                                </td> 
     784                                                                                                                <td align="center"> 
     785                                                                                                                        <xsl:value-of select="witsml:descFluid"/> 
     786                                                                                                                </td> 
     787                                                                                                                <td align="center"> 
     788                                                                                                                        <xsl:value-of select="witsml:volPumped"/> 
     789                                                                                                                </td> 
     790                                                                                                                <td align="center"> 
     791                                                                                                                        <xsl:value-of select="witsml:density"/> 
     792                                                                                                                </td> 
     793                                                                                                                <td align="center"> 
     794                                                                                                                        <xsl:value-of select="witsml:yp"/> 
     795                                                                                                                </td> 
     796                                                                                                                <td align="center"> 
     797                                                                                                                        <xsl:value-of select="witsml:ratioMixWater"/> 
     798                                                                                                                </td> 
     799                                                                                                                <td align="center"> 
     800                                                                                                                        <xsl:value-of select="witsml:pcFreeWater"/> 
     801                                                                                                                </td> 
     802                                                                                                                <td align="center"> 
     803                                                                                                                        <xsl:value-of select="witsml:eTimThickening"/> 
     804                                                                                                                </td> 
     805                                                                                                                <td align="center"> 
     806                                                                                                                        <xsl:value-of select="witsml:comments"/> 
     807                                                                                                                </td> 
     808                                                                                                        </tr> 
     809                                                                                                </xsl:for-each> 
     810                                                                                        </table> 
     811                                                                                </td> 
     812                                                                        </tr> 
     813                                                                </xsl:if> 
    818814                                                        </xsl:for-each> 
    819815                                                </xsl:if> 
     
    15881584                                                                                                </td> 
    15891585                                                                                                <td valign="top" align="center"> 
    1590                                                                                                         <xsl:if test="witsml:goodSeal='true'">yes</xsl:if> 
    1591                                                                                                         <xsl:if test="witsml:goodSeal='false'">no</xsl:if> 
     1586                                                                                                        <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if> 
     1587                                                                                                        <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if> 
    15921588                                                                                                </td> 
    15931589                                                                                                <td valign="top" align="center"> 
     
    26042600                        </td> 
    26052601                        <td class="light"> 
    2606                                 <xsl:if test="witsml:tightWell='true'">yes</xsl:if> 
    2607                                 <xsl:if test="witsml:tightWell='false'">no</xsl:if> 
     2602                                <xsl:if test="witsml:tightWell='true' or witsml:tightWell='1'">yes</xsl:if> 
     2603                                <xsl:if test="witsml:tightWell='false' or witsml:tightWell='0'">no</xsl:if> 
    26082604                        </td> 
    26092605                        <td class="ColHead"> 
     
    26112607                        </td> 
    26122608                        <td class="light"> 
    2613                                 <xsl:if test="witsml:hpht='true'">yes</xsl:if> 
    2614                                 <xsl:if test="witsml:hpht='false'">no</xsl:if> 
     2609                                <xsl:if test="witsml:hpht='true' or witsml:hpht='1'">yes</xsl:if> 
     2610                                <xsl:if test="witsml:hpht='false' or witsml:hpht='0'">no</xsl:if> 
    26152611                        </td> 
    26162612                </tr> 
  • projects/DailyDrillingReport_1.2/XML/HTMLreport/testDocumet_2011_02_07.xml

    r153 r159  
    141141                                <witsml:description>bla bla bla..</witsml:description> 
    142142                                <witsml:dTimStart>2011-02-07T12:00:00.000Z</witsml:dTimStart> 
     143                                <witsml:dTimEnd>2011-02-07T14:00:00.000Z</witsml:dTimEnd> 
    143144                        </witsml:casing_liner_tubing_run> 
    144145                </witsml:casing_liner_tubing> 
     
    157158                                <witsml:description>bla bla bla..</witsml:description> 
    158159                                <witsml:dTimStart>2011-02-07T13:00:00.000Z</witsml:dTimStart> 
     160                                <witsml:dTimEnd>2011-02-07T17:00:00.000Z</witsml:dTimEnd> 
    159161                        </witsml:casing_liner_tubing_run> 
    160162                </witsml:casing_liner_tubing> 
     
    173175                                <witsml:description>bla bla bla..</witsml:description> 
    174176                                <witsml:dTimStart>2011-02-07T15:00:00.000Z</witsml:dTimStart> 
     177                                <witsml:dTimEnd>2011-02-08T10:00:00.000Z</witsml:dTimEnd> 
    175178                        </witsml:casing_liner_tubing_run> 
    176179                </witsml:casing_liner_tubing> 
     
    218221                                <witsml:yp uom="ft3/sack">19</witsml:yp> 
    219222                                <witsml:eTimThickening uom="h">2</witsml:eTimThickening> 
     223                                <witsml:pcFreeWater uom="%">40</witsml:pcFreeWater> 
     224                                <witsml:comments>bla bla bla...</witsml:comments> 
     225                        </witsml:cementingFluid> 
     226                        <witsml:cementingFluid> 
     227                                <witsml:typeFluid>Slurry</witsml:typeFluid> 
     228                                <witsml:descFluid>bla bla bla...</witsml:descFluid> 
     229                                <witsml:ratioMixWater uom="gal/sack">12</witsml:ratioMixWater> 
     230                                <witsml:density uom="sg">24</witsml:density> 
     231                                <witsml:volPumped uom="m3">10</witsml:volPumped> 
     232                                <witsml:yp uom="ft3/sack">12</witsml:yp> 
     233                                <witsml:eTimThickening uom="h">3</witsml:eTimThickening> 
     234                                <witsml:pcFreeWater uom="%">40</witsml:pcFreeWater> 
     235                                <witsml:comments>bla bla bla...</witsml:comments> 
     236                        </witsml:cementingFluid> 
     237                        <witsml:cementingFluid> 
     238                                <witsml:typeFluid>Spacer</witsml:typeFluid> 
     239                                <witsml:descFluid>bla bla bla...</witsml:descFluid> 
     240                                <witsml:ratioMixWater uom="gal/sack">12</witsml:ratioMixWater> 
     241                                <witsml:density uom="sg">24</witsml:density> 
     242                                <witsml:volPumped uom="m3">10</witsml:volPumped> 
     243                                <witsml:yp uom="ft3/sack">12</witsml:yp> 
     244                                <witsml:eTimThickening uom="h">3</witsml:eTimThickening> 
    220245                                <witsml:pcFreeWater uom="%">40</witsml:pcFreeWater> 
    221246                                <witsml:comments>bla bla bla...</witsml:comments> 
  • projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.fo

    r152 r159  
    3636                        <fo:block> 
    3737                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 
    38                                         <fo:table-column column-width="proportional-column-width(16.49)" column-number="1"/> 
    39                                         <fo:table-column column-width="proportional-column-width(16.931)" column-number="2"/> 
    40                                         <fo:table-column column-width="proportional-column-width(18.397)" column-number="3"/> 
    41                                         <fo:table-column column-width="proportional-column-width(48.182)" column-number="4"/> 
     38                                        <fo:table-column column-width="proportional-column-width(17.79)" column-number="1"/> 
     39                                        <fo:table-column column-width="proportional-column-width(17.33)" column-number="2"/> 
     40                                        <fo:table-column column-width="proportional-column-width(18.898)" column-number="3"/> 
     41                                        <fo:table-column column-width="proportional-column-width(45.982)" column-number="4"/> 
    4242                                        <fo:table-body> 
    4343                                                <fo:table-row> 
     
    6161                                                <fo:table-row> 
    6262                                                        <fo:table-cell vertical-align="middle"> 
    63                                                                 <fo:block font-size="11pt" font-weight="bold">Wellbore:</fo:block> 
     63                                                                <fo:block font-weight="bold">Wellbore:</fo:block> 
    6464                                                        </fo:table-cell> 
    6565                                                        <fo:table-cell vertical-align="middle"> 
     
    8989                                                        </fo:table-cell> 
    9090                                                        <fo:table-cell vertical-align="middle"> 
    91                                                                 <fo:block font-size="11pt" font-weight="bold"> 
     91                                                                <fo:block> 
    9292                                                                        <fo:basic-link external-destination="url(http://rds.posccaesar.org/2008/02/XML/RDL/RDS328364064)" font-weight="bold">Created date:</fo:basic-link> 
    9393                                                                 </fo:block> 
     
    186186                                                        </fo:table-cell> 
    187187                                                        <fo:table-cell vertical-align="middle"> 
    188                                                                 <fo:block font-size="11pt" font-weight="bold"> 
     188                                                                <fo:block> 
    189189                                                                        <fo:basic-link external-destination="url(http://www.posccaesar.org)" font-weight="bold">High pressure - High temperature</fo:basic-link>  </fo:block> 
    190190                                                        </fo:table-cell> 
     
    855855                                                                                                </fo:table-cell> 
    856856                                                                                                <fo:table-cell> 
    857                                                                                                         <fo:block/> 
    858                                                                                                 </fo:table-cell> 
    859                                                                                                 <fo:table-cell> 
    860                                                                                                         <fo:block/> 
     857                                                                                                        <fo:block> 
     858                                                                                                                <fo:inline>1</fo:inline> 
     859                                                                                                        </fo:block> 
     860                                                                                                </fo:table-cell> 
     861                                                                                                <fo:table-cell> 
     862                                                                                                        <fo:block> 
     863                                                                                                                <fo:inline>1</fo:inline> 
     864                                                                                                        </fo:block> 
    861865                                                                                                </fo:table-cell> 
    862866                                                                                                <fo:table-cell> 
     
    871875                                                                                                </fo:table-cell> 
    872876                                                                                                <fo:table-cell> 
    873                                                                                                         <fo:block/> 
     877                                                                                                        <fo:block> 
     878                                                                                                                <fo:inline>3</fo:inline> 
     879                                                                                                        </fo:block> 
    874880                                                                                                </fo:table-cell> 
    875881                                                                                                <fo:table-cell> 
     
    916922                                                                                                </fo:table-cell> 
    917923                                                                                                <fo:table-cell> 
    918                                                                                                         <fo:block/> 
    919                                                                                                 </fo:table-cell> 
    920                                                                                                 <fo:table-cell> 
    921                                                                                                         <fo:block/> 
     924                                                                                                        <fo:block> 
     925                                                                                                                <fo:inline>3</fo:inline> 
     926                                                                                                        </fo:block> 
     927                                                                                                </fo:table-cell> 
     928                                                                                                <fo:table-cell> 
     929                                                                                                        <fo:block> 
     930                                                                                                                <fo:inline>2</fo:inline> 
     931                                                                                                        </fo:block> 
    922932                                                                                                </fo:table-cell> 
    923933                                                                                                <fo:table-cell> 
     
    932942                                                                                                </fo:table-cell> 
    933943                                                                                                <fo:table-cell> 
    934                                                                                                         <fo:block/> 
     944                                                                                                        <fo:block> 
     945                                                                                                                <fo:inline>5</fo:inline> 
     946                                                                                                        </fo:block> 
    935947                                                                                                </fo:table-cell> 
    936948                                                                                                <fo:table-cell> 
     
    10511063                                                                                                </fo:table-cell> 
    10521064                                                                                                <fo:table-cell> 
    1053                                                                                                         <fo:block/> 
    1054                                                                                                 </fo:table-cell> 
    1055                                                                                                 <fo:table-cell> 
    1056                                                                                                         <fo:block> 
    1057                                                                                                                 <fo:inline>12:00</fo:inline> 
     1065                                                                                                        <fo:block> 
     1066                                                                                                                <fo:inline>Top</fo:inline> 
     1067                                                                                                        </fo:block> 
     1068                                                                                                </fo:table-cell> 
     1069                                                                                                <fo:table-cell> 
     1070                                                                                                        <fo:block> 
     1071                                                                                                                <fo:inline>14:00</fo:inline> 
    10581072                                                                                                        </fo:block> 
    10591073                                                                                                </fo:table-cell> 
     
    11151129                                                                                                </fo:table-cell> 
    11161130                                                                                                <fo:table-cell> 
    1117                                                                                                         <fo:block/> 
    1118                                                                                                 </fo:table-cell> 
    1119                                                                                                 <fo:table-cell> 
    1120                                                                                                         <fo:block> 
    1121                                                                                                                 <fo:inline>13:00</fo:inline> 
     1131                                                                                                        <fo:block> 
     1132                                                                                                                <fo:inline>Intermediate</fo:inline> 
     1133                                                                                                        </fo:block> 
     1134                                                                                                </fo:table-cell> 
     1135                                                                                                <fo:table-cell> 
     1136                                                                                                        <fo:block> 
     1137                                                                                                                <fo:inline>17:00</fo:inline> 
    11221138                                                                                                        </fo:block> 
    11231139                                                                                                </fo:table-cell> 
     
    11791195                                                                                                </fo:table-cell> 
    11801196                                                                                                <fo:table-cell> 
    1181                                                                                                         <fo:block/> 
    1182                                                                                                 </fo:table-cell> 
    1183                                                                                                 <fo:table-cell> 
    1184                                                                                                         <fo:block> 
    1185                                                                                                                 <fo:inline>15:00</fo:inline> 
     1197                                                                                                        <fo:block> 
     1198                                                                                                                <fo:inline>Production</fo:inline> 
     1199                                                                                                        </fo:block> 
     1200                                                                                                </fo:table-cell> 
     1201                                                                                                <fo:table-cell> 
     1202                                                                                                        <fo:block> 
     1203                                                                                                                <fo:inline>10:00</fo:inline> 
    11861204                                                                                                        </fo:block> 
    11871205                                                                                                </fo:table-cell> 
     
    13051323                                                                                                        </fo:table-cell> 
    13061324                                                                                                        <fo:table-cell> 
    1307                                                                                                                 <fo:block>Plug failed to bump</fo:block> 
     1325                                                                                                                <fo:block>Plug bumped</fo:block> 
    13081326                                                                                                        </fo:table-cell> 
    13091327                                                                                                        <fo:table-cell> 
     
    13141332                                                                                                        </fo:table-cell> 
    13151333                                                                                                        <fo:table-cell> 
    1316                                                                                                                 <fo:block>Float failed</fo:block> 
     1334                                                                                                                <fo:block>Float held</fo:block> 
    13171335                                                                                                        </fo:table-cell> 
    13181336                                                                                                        <fo:table-cell> 
     
    13481366                                                                                                        <fo:table-cell> 
    13491367                                                                                                                <fo:block> 
    1350                                                                                                                         <fo:inline> 
    1351  
    1352                                         Cement squeeze 
    1353  
    1354                                                                                                                         </fo:inline> 
     1368                                                                                                                        <fo:inline>squeeze</fo:inline> 
    13551369                                                                                                                </fo:block> 
    13561370                                                                                                        </fo:table-cell> 
     
    14861500                                                                                                        <fo:table-cell> 
    14871501                                                                                                                <fo:block> 
    1488                                                                                                                         <fo:inline> 
    1489  
    1490                                         Spacer 
    1491  
    1492                                                                                                                         </fo:inline> 
     1502                                                                                                                        <fo:inline>Spacer</fo:inline> 
    14931503                                                                                                                </fo:block> 
    14941504                                                                                                        </fo:table-cell> 
     
    16101620                                                                                                        </fo:table-cell> 
    16111621                                                                                                        <fo:table-cell> 
    1612                                                                                                                 <fo:block>Plug failed to bump</fo:block> 
     1622                                                                                                                <fo:block>Plug bumped</fo:block> 
    16131623                                                                                                        </fo:table-cell> 
    16141624                                                                                                        <fo:table-cell> 
     
    16191629                                                                                                        </fo:table-cell> 
    16201630                                                                                                        <fo:table-cell> 
    1621                                                                                                                 <fo:block>Float failed</fo:block> 
     1631                                                                                                                <fo:block>Float held</fo:block> 
    16221632                                                                                                        </fo:table-cell> 
    16231633                                                                                                        <fo:table-cell> 
     
    16531663                                                                                                        <fo:table-cell> 
    16541664                                                                                                                <fo:block> 
    1655                                                                                                                         <fo:inline> 
    1656  
    1657                                         Casing and liner 
    1658  
    1659                                                                                                                         </fo:inline> 
     1665                                                                                                                        <fo:inline>primary</fo:inline> 
    16601666                                                                                                                </fo:block> 
    16611667                                                                                                        </fo:table-cell> 
     
    17911797                                                                                                        <fo:table-cell> 
    17921798                                                                                                                <fo:block> 
    1793                                                                                                                         <fo:inline> 
    1794  
    1795                                         Mud 
    1796  
    1797                                                                                                                         </fo:inline> 
     1799                                                                                                                        <fo:inline>Mud</fo:inline> 
    17981800                                                                                                                </fo:block> 
    17991801                                                                                                        </fo:table-cell> 
     
    18311833                                                                                                                <fo:block> 
    18321834                                                                                                                        <fo:inline>2</fo:inline> 
     1835                                                                                                                </fo:block> 
     1836                                                                                                        </fo:table-cell> 
     1837                                                                                                        <fo:table-cell> 
     1838                                                                                                                <fo:block> 
     1839                                                                                                                        <fo:inline>bla bla bla...</fo:inline> 
     1840                                                                                                                </fo:block> 
     1841                                                                                                        </fo:table-cell> 
     1842                                                                                                </fo:table-row> 
     1843                                                                                                <fo:table-row> 
     1844                                                                                                        <fo:table-cell> 
     1845                                                                                                                <fo:block> 
     1846                                                                                                                        <fo:inline>Slurry</fo:inline> 
     1847                                                                                                                </fo:block> 
     1848                                                                                                        </fo:table-cell> 
     1849                                                                                                        <fo:table-cell> 
     1850                                                                                                                <fo:block> 
     1851                                                                                                                        <fo:inline>bla bla bla...</fo:inline> 
     1852                                                                                                                </fo:block> 
     1853                                                                                                        </fo:table-cell> 
     1854                                                                                                        <fo:table-cell> 
     1855                                                                                                                <fo:block> 
     1856                                                                                                                        <fo:inline>10</fo:inline> 
     1857                                                                                                                </fo:block> 
     1858                                                                                                        </fo:table-cell> 
     1859                                                                                                        <fo:table-cell> 
     1860                                                                                                                <fo:block> 
     1861                                                                                                                        <fo:inline>24</fo:inline> 
     1862                                                                                                                </fo:block> 
     1863                                                                                                        </fo:table-cell> 
     1864                                                                                                        <fo:table-cell> 
     1865                                                                                                                <fo:block> 
     1866                                                                                                                        <fo:inline>12</fo:inline> 
     1867                                                                                                                </fo:block> 
     1868                                                                                                        </fo:table-cell> 
     1869                                                                                                        <fo:table-cell> 
     1870                                                                                                                <fo:block> 
     1871                                                                                                                        <fo:inline>12</fo:inline> 
     1872                                                                                                                </fo:block> 
     1873                                                                                                        </fo:table-cell> 
     1874                                                                                                        <fo:table-cell> 
     1875                                                                                                                <fo:block> 
     1876                                                                                                                        <fo:inline>40</fo:inline> 
     1877                                                                                                                </fo:block> 
     1878                                                                                                        </fo:table-cell> 
     1879                                                                                                        <fo:table-cell> 
     1880                                                                                                                <fo:block> 
     1881                                                                                                                        <fo:inline>3</fo:inline> 
     1882                                                                                                                </fo:block> 
     1883                                                                                                        </fo:table-cell> 
     1884                                                                                                        <fo:table-cell> 
     1885                                                                                                                <fo:block> 
     1886                                                                                                                        <fo:inline>bla bla bla...</fo:inline> 
     1887                                                                                                                </fo:block> 
     1888                                                                                                        </fo:table-cell> 
     1889                                                                                                </fo:table-row> 
     1890                                                                                                <fo:table-row> 
     1891                                                                                                        <fo:table-cell> 
     1892                                                                                                                <fo:block> 
     1893                                                                                                                        <fo:inline>Spacer</fo:inline> 
     1894                                                                                                                </fo:block> 
     1895                                                                                                        </fo:table-cell> 
     1896                                                                                                        <fo:table-cell> 
     1897                                                                                                                <fo:block> 
     1898                                                                                                                        <fo:inline>bla bla bla...</fo:inline> 
     1899                                                                                                                </fo:block> 
     1900                                                                                                        </fo:table-cell> 
     1901                                                                                                        <fo:table-cell> 
     1902                                                                                                                <fo:block> 
     1903                                                                                                                        <fo:inline>10</fo:inline> 
     1904                                                                                                                </fo:block> 
     1905                                                                                                        </fo:table-cell> 
     1906                                                                                                        <fo:table-cell> 
     1907                                                                                                                <fo:block> 
     1908                                                                                                                        <fo:inline>24</fo:inline> 
     1909                                                                                                                </fo:block> 
     1910                                                                                                        </fo:table-cell> 
     1911                                                                                                        <fo:table-cell> 
     1912                                                                                                                <fo:block> 
     1913                                                                                                                        <fo:inline>12</fo:inline> 
     1914                                                                                                                </fo:block> 
     1915                                                                                                        </fo:table-cell> 
     1916                                                                                                        <fo:table-cell> 
     1917                                                                                                                <fo:block> 
     1918                                                                                                                        <fo:inline>12</fo:inline> 
     1919                                                                                                                </fo:block> 
     1920                                                                                                        </fo:table-cell> 
     1921                                                                                                        <fo:table-cell> 
     1922                                                                                                                <fo:block> 
     1923                                                                                                                        <fo:inline>40</fo:inline> 
     1924                                                                                                                </fo:block> 
     1925                                                                                                        </fo:table-cell> 
     1926                                                                                                        <fo:table-cell> 
     1927                                                                                                                <fo:block> 
     1928                                                                                                                        <fo:inline>3</fo:inline> 
    18331929                                                                                                                </fo:block> 
    18341930                                                                                                        </fo:table-cell> 
     
    29703066                                                                <fo:block> 
    29713067                                                                        <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 
    2972                                                                                 <fo:table-column column-width="proportional-column-width(10)" column-number="1"/> 
    2973                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="2"/> 
    2974                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="3"/> 
    2975                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="4"/> 
     3068                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="1"/> 
     3069                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="2"/> 
     3070                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="3"/> 
     3071                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="4"/> 
    29763072                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="5"/> 
    29773073                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="6"/> 
     
    32143310                                                                <fo:block> 
    32153311                                                                        <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 
    3216                                                                                 <fo:table-column column-width="proportional-column-width(10)" column-number="1"/> 
    3217                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="2"/> 
    3218                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="3"/> 
    3219                                                                                 <fo:table-column column-width="proportional-column-width(5)" column-number="4"/> 
     3312                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="1"/> 
     3313                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="2"/> 
     3314                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="3"/> 
     3315                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="4"/> 
    32203316                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="5"/> 
    32213317                                                                                <fo:table-column column-width="proportional-column-width(6.25)" column-number="6"/> 
     
    36853781                                                                                                <fo:table-cell> 
    36863782                                                                                                        <fo:block> 
    3687                                                                                                                 <fo:inline>02:00</fo:inline> 
     3783                                                                                                                <fo:inline>2001-12-31T02:00</fo:inline> 
    36883784                                                                                                        </fo:block> 
    36893785                                                                                                </fo:table-cell> 
  • projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.xfd

    r152 r159  
    261261                                                        <fo:table-cell vertical-align="middle"> 
    262262                                                                <fo:block> 
    263                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true'">yes</xsl:if> 
    264                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false'">no</xsl:if> 
     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> 
    265265                                                                </fo:block> 
    266266                                                        </fo:table-cell> 
     
    270270                                                        <fo:table-cell vertical-align="middle"> 
    271271                                                                <fo:block> 
    272                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true'">yes</xsl:if> 
    273                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false'">no</xsl:if> 
     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> 
    274274                                                                </fo:block> 
    275275                                                        </fo:table-cell> 
     
    856856                                                                                                </fo:table-cell> 
    857857                                                                                                <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> 
    858894                                                                                                        <fo:block>Dull grade</fo:block> 
    859                                                                                                 </fo:table-cell> 
    860                                                                                                 <fo:table-cell> 
    861                                                                                                         <fo:block>Hole made (run)</fo:block> 
    862                                                                                                         <fo:block> 
    863                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 
    864                                                                                                         </fo:block> 
    865                                                                                                 </fo:table-cell> 
    866                                                                                                 <fo:table-cell> 
    867                                                                                                         <fo:block>Hours drilled (run)</fo:block> 
    868                                                                                                         <fo:block> 
    869                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 
    870                                                                                                         </fo:block> 
    871                                                                                                 </fo:table-cell> 
    872                                                                                                 <fo:table-cell> 
    873                                                                                                         <fo:block>ROP</fo:block> 
    874                                                                                                         <fo:block> 
    875                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/> 
    876                                                                                                         </fo:block> 
    877                                                                                                 </fo:table-cell> 
    878                                                                                                 <fo:table-cell> 
    879                                                                                                         <fo:block>Total hole made</fo:block> 
    880                                                                                                         <fo:block> 
    881                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/> 
    882                                                                                                         </fo:block> 
    883                                                                                                 </fo:table-cell> 
    884                                                                                                 <fo:table-cell> 
    885                                                                                                         <fo:block>Total hours drilled</fo:block> 
    886                                                                                                         <fo:block> 
    887                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/> 
    888                                                                                                         </fo:block> 
    889                                                                                                 </fo:table-cell> 
    890                                                                                                 <fo:table-cell> 
    891                                                                                                         <fo:block>Total ROP</fo:block> 
    892                                                                                                         <fo:block> 
    893                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom"/> 
    894                                                                                                         </fo:block> 
    895895                                                                                                </fo:table-cell> 
    896896                                                                                        </fo:table-row> 
     
    928928                                                                                                <fo:table-cell> 
    929929                                                                                                        <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> 
    930960                                                                                                                <xfd:field xpath="witsml:dullGrade"/> 
    931                                                                                                         </fo:block> 
    932                                                                                                 </fo:table-cell> 
    933                                                                                                 <fo:table-cell> 
    934                                                                                                         <fo:block> 
    935                                                                                                                 <xfd:field xpath="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/> 
    936                                                                                                         </fo:block> 
    937                                                                                                 </fo:table-cell> 
    938                                                                                                 <fo:table-cell> 
    939                                                                                                         <fo:block> 
    940                                                                                                                 <xfd:field xpath="witsml:bit/Run/witsml:eTimOpBit"/> 
    941                                                                                                         </fo:block> 
    942                                                                                                 </fo:table-cell> 
    943                                                                                                 <fo:table-cell> 
    944                                                                                                         <fo:block> 
    945                                                                                                                 <xfd:field xpath="witsml:ropAv"/> 
    946                                                                                                         </fo:block> 
    947                                                                                                 </fo:table-cell> 
    948                                                                                                 <fo:table-cell> 
    949                                                                                                         <fo:block> 
    950                                                                                                                 <xfd:field xpath="witsml:bitRun/witsml:mdTotHoleMade"/> 
    951                                                                                                         </fo:block> 
    952                                                                                                 </fo:table-cell> 
    953                                                                                                 <fo:table-cell> 
    954                                                                                                         <fo:block> 
    955                                                                                                                 <xfd:field xpath="witsml:bitRun/witsml:totHrsDrilled"/> 
    956                                                                                                         </fo:block> 
    957                                                                                                 </fo:table-cell> 
    958                                                                                                 <fo:table-cell> 
    959                                                                                                         <fo:block> 
    960                                                                                                                 <xfd:field xpath="witsml:ropMx"/> 
    961961                                                                                                        </fo:block> 
    962962                                                                                                </fo:table-cell> 
     
    10711071                                                                                                <fo:table-cell> 
    10721072                                                                                                        <fo:block> 
    1073                                                                                                                 <xsl:variable name="element_casing" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='stimStageType']/xsd:restriction"/> 
    1074                                                                                                                 <xsl:variable name="casingTypes" select="witsml:casing_liner_tubing_run/witsml:kind"/> 
    1075                                                                                                                 <xfd:field xpath="$element_casing//xsd:enumeration[@value=$casingTypes]"/> 
    1076                                                                                                         </fo:block> 
    1077                                                                                                 </fo:table-cell> 
    1078                                                                                                 <fo:table-cell> 
    1079                                                                                                         <fo:block> 
    1080                                                                                                                 <xfd:field xpath="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 
     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')"/> 
    10811079                                                                                                        </fo:block> 
    10821080                                                                                                </fo:table-cell> 
     
    12001198                                                                                                        </fo:table-cell> 
    12011199                                                                                                        <fo:table-cell> 
    1202                                                                                                                 <fo:block>Plug failed to bump</fo:block> 
     1200                                                                                                                <fo:block>Plug bumped</fo:block> 
    12031201                                                                                                        </fo:table-cell> 
    12041202                                                                                                        <fo:table-cell> 
     
    12091207                                                                                                        </fo:table-cell> 
    12101208                                                                                                        <fo:table-cell> 
    1211                                                                                                                 <fo:block>Float failed</fo:block> 
     1209                                                                                                                <fo:block>Float held</fo:block> 
    12121210                                                                                                        </fo:table-cell> 
    12131211                                                                                                        <fo:table-cell> 
     
    12431241                                                                                                        <fo:table-cell> 
    12441242                                                                                                                <fo:block> 
    1245                                                                                                                         <xsl:variable name="element_jobTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='cementJobTypes']/xsd:restriction"/> 
    1246                                                                                                                         <xsl:variable name="jobTypes" select="witsml:jobType"/> 
    1247                                                                                                                         <xfd:field xpath="$element_jobTypes//xsd:enumeration[@value=$jobTypes]"/> 
     1243                                                                                                                        <xfd:field xpath="witsml:jobType"/> 
    12481244                                                                                                                </fo:block> 
    12491245                                                                                                        </fo:table-cell> 
     
    12601256                                                                                                        <fo:table-cell> 
    12611257                                                                                                                <fo:block> 
    1262                                                                                                                         <xsl:if test="witsml:topPlug='true'">yes</xsl:if> 
    1263                                                                                                                         <xsl:if test="witsml:topPlug='false'">no</xsl:if> 
    1264                                                                                                                 </fo:block> 
    1265                                                                                                         </fo:table-cell> 
    1266                                                                                                         <fo:table-cell> 
    1267                                                                                                                 <fo:block> 
    1268                                                                                                                         <xsl:if test="witsml:botPlug='true'">yes</xsl:if> 
    1269                                                                                                                         <xsl:if test="witsml:botPlug='false'">no</xsl:if> 
    1270                                                                                                                 </fo:block> 
    1271                                                                                                         </fo:table-cell> 
    1272                                                                                                         <fo:table-cell> 
    1273                                                                                                                 <fo:block> 
    1274                                                                                                                         <xsl:if test="witsml:plugBumped='true'">yes</xsl:if> 
    1275                                                                                                                         <xsl:if test="witsml:plugBumped='false'">no</xsl:if> 
     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> 
    12761272                                                                                                                </fo:block> 
    12771273                                                                                                        </fo:table-cell> 
     
    12831279                                                                                                        <fo:table-cell> 
    12841280                                                                                                                <fo:block> 
    1285                                                                                                                         <xsl:if test="witsml:floatHeld='true'">yes</xsl:if> 
    1286                                                                                                                         <xsl:if test="witsml:floatHeld='false'">no</xsl:if> 
     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> 
    12871283                                                                                                                </fo:block> 
    12881284                                                                                                        </fo:table-cell> 
     
    12941290                                                                                                        <fo:table-cell> 
    12951291                                                                                                                <fo:block> 
    1296                                                                                                                         <xsl:if test="witsml:annFlowAfter='true'">yes</xsl:if> 
    1297                                                                                                                         <xsl:if test="witsml:annFlowAfter='false'">no</xsl:if> 
     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> 
    12981294                                                                                                                </fo:block> 
    12991295                                                                                                        </fo:table-cell> 
     
    13051301                                                                                                        <fo:table-cell> 
    13061302                                                                                                                <fo:block> 
    1307                                                                                                                         <xsl:if test="witsml:reciprocated='true'">yes</xsl:if> 
    1308                                                                                                                         <xsl:if test="witsml:reciprocated='false'">no</xsl:if> 
    1309                                                                                                                 </fo:block> 
    1310                                                                                                         </fo:table-cell> 
    1311                                                                                                         <fo:table-cell> 
    1312                                                                                                                 <fo:block> 
    1313                                                                                                                         <xsl:if test="witsml:rotated='true'">yes</xsl:if> 
    1314                                                                                                                         <xsl:if test="witsml:rotated='false'">no</xsl:if> 
     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> 
    13151311                                                                                                                </fo:block> 
    13161312                                                                                                        </fo:table-cell> 
     
    13991395                                                                                                        <fo:table-cell> 
    14001396                                                                                                                <fo:block> 
    1401                                                                                                                         <xsl:variable name="element_fluidTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='fluidTypes']/xsd:restriction"/> 
    1402                                                                                                                         <xsl:variable name="fluidTypes" select="witsml:typeFluid"/> 
    1403                                                                                                                         <xfd:field xpath="$element_fluidTypes//xsd:enumeration[@value=$fluidTypes]"/> 
     1397                                                                                                                        <xfd:field xpath="witsml:typeFluid"/> 
    14041398                                                                                                                </fo:block> 
    14051399                                                                                                        </fo:table-cell> 
     
    24122406                                                                                                <fo:table-cell> 
    24132407                                                                                                        <fo:block> 
    2414                                                                                                                 <xsl:if test="witsml:goodSeal='true'">yes</xsl:if> 
    2415                                                                                                                 <xsl:if test="witsml:goodSeal='false'">no</xsl:if> 
     2408                                                                                                                <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if> 
     2409                                                                                                                <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if> 
    24162410                                                                                                        </fo:block> 
    24172411                                                                                                </fo:table-cell> 
  • projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_HTMLReport_transformation_2011_03_09.xsl

    r152 r159  
    22<xslt:stylesheet xmlns:date="http://exslt.org/dates-and-times" xmlns:str="http://exslt.org/strings" xmlns:xslt="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0" xmlns:xc="http://www.ecrion.com/2008/xc" xmlns:xfd="http://www.ecrion.com/xfd/1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:witsml="http://www.witsml.org/schemas/1series" xmlns:sawsdl="http://www.w3.org/ns/sawsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" extension-element-prefixes="date str"> 
    33<xslt:output indent="yes" encoding="utf-8"/> 
    4 <xslt:param name="XFCrtLocalDate">2011-03-22</xslt:param> 
    5 <xslt:param name="XFCrtLocalTime">14:27:24</xslt:param> 
    6 <xslt:param name="XFCrtLocalDateTime">2011-03-22T14:27:24</xslt:param> 
    7 <xslt:param name="XFCrtUTCDate">2011-03-22</xslt:param> 
    8 <xslt:param name="XFCrtUTCTime">13:27:24</xslt:param> 
    9 <xslt:param name="XFCrtUTCDateTime">2011-03-22T13:27:24</xslt:param> 
     4<xslt:param name="XFCrtLocalDate">2011-03-30</xslt:param> 
     5<xslt:param name="XFCrtLocalTime">10:29:36</xslt:param> 
     6<xslt:param name="XFCrtLocalDateTime">2011-03-30T10:29:36</xslt:param> 
     7<xslt:param name="XFCrtUTCDate">2011-03-30</xslt:param> 
     8<xslt:param name="XFCrtUTCTime">08:29:36</xslt:param> 
     9<xslt:param name="XFCrtUTCDateTime">2011-03-30T08:29:36</xslt:param> 
    1010<xslt:param name="XFOutputFormat"/> 
    1111<!-- 
     
    312312                                                        <fo:table-cell vertical-align="middle"> 
    313313                                                                <fo:block> 
    314                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='true'">yes</xsl:if> 
    315                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:tightWell='false'">no</xsl:if> 
     314                                                                        <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> 
     315                                                                        <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> 
    316316                                                                </fo:block> 
    317317                                                        </fo:table-cell> 
     
    321321                                                        <fo:table-cell vertical-align="middle"> 
    322322                                                                <fo:block> 
    323                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='true'">yes</xsl:if> 
    324                                                                         <xsl:if test="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:hpht='false'">no</xsl:if> 
     323                                                                        <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> 
     324                                                                        <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> 
    325325                                                                </fo:block> 
    326326                                                        </fo:table-cell> 
     
    10051005                                                                                                </fo:table-cell> 
    10061006                                                                                                <fo:table-cell> 
    1007                                                                                                         <fo:block>Dull grade</fo:block> 
    1008                                                                                                 </fo:table-cell> 
    1009                                                                                                 <fo:table-cell> 
    10101007                                                                                                        <fo:block>Hole made (run)</fo:block> 
    10111008                                                                                                        <fo:block> 
     
    10541051</fo:inline></xsl:if> 
    10551052                                                                                                        </fo:block> 
     1053                                                                                                </fo:table-cell> 
     1054                                                                                                <fo:table-cell> 
     1055                                                                                                        <fo:block>Dull grade</fo:block> 
    10561056                                                                                                </fo:table-cell> 
    10571057                                                                                        </fo:table-row> 
     
    11021102                                                                                                <fo:table-cell> 
    11031103                                                                                                        <fo:block> 
     1104                                                                                                                <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart)"><fo:inline> 
     1105<xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/> 
     1106</fo:inline></xsl:if> 
     1107                                                                                                        </fo:block> 
     1108                                                                                                </fo:table-cell> 
     1109                                                                                                <fo:table-cell> 
     1110                                                                                                        <fo:block> 
     1111                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:eTimOpBit)"><fo:inline> 
     1112<xsl:value-of select="witsml:bitRun/witsml:eTimOpBit"/> 
     1113</fo:inline></xsl:if> 
     1114                                                                                                        </fo:block> 
     1115                                                                                                </fo:table-cell> 
     1116                                                                                                <fo:table-cell> 
     1117                                                                                                        <fo:block> 
     1118                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:ropAv)"><fo:inline> 
     1119<xsl:value-of select="witsml:bitRun/witsml:ropAv"/> 
     1120</fo:inline></xsl:if> 
     1121                                                                                                        </fo:block> 
     1122                                                                                                </fo:table-cell> 
     1123                                                                                                <fo:table-cell> 
     1124                                                                                                        <fo:block> 
     1125                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:mdTotHoleMade)"><fo:inline> 
     1126<xsl:value-of select="witsml:bitRun/witsml:mdTotHoleMade"/> 
     1127</fo:inline></xsl:if> 
     1128                                                                                                        </fo:block> 
     1129                                                                                                </fo:table-cell> 
     1130                                                                                                <fo:table-cell> 
     1131                                                                                                        <fo:block> 
     1132                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:totHrsDrilled)"><fo:inline> 
     1133<xsl:value-of select="witsml:bitRun/witsml:totHrsDrilled"/> 
     1134</fo:inline></xsl:if> 
     1135                                                                                                        </fo:block> 
     1136                                                                                                </fo:table-cell> 
     1137                                                                                                <fo:table-cell> 
     1138                                                                                                        <fo:block> 
     1139                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:ropMx)"><fo:inline> 
     1140<xsl:value-of select="witsml:bitRun/witsml:ropMx"/> 
     1141</fo:inline></xsl:if> 
     1142                                                                                                        </fo:block> 
     1143                                                                                                </fo:table-cell> 
     1144                                                                                                <fo:table-cell> 
     1145                                                                                                        <fo:block> 
    11041146                                                                                                                <xsl:if test="string(witsml:dullGrade)"><fo:inline> 
    11051147<xsl:value-of select="witsml:dullGrade"/> 
    1106 </fo:inline></xsl:if> 
    1107                                                                                                         </fo:block> 
    1108                                                                                                 </fo:table-cell> 
    1109                                                                                                 <fo:table-cell> 
    1110                                                                                                         <fo:block> 
    1111                                                                                                                 <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart)"><fo:inline> 
    1112 <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop - /witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart"/> 
    1113 </fo:inline></xsl:if> 
    1114                                                                                                         </fo:block> 
    1115                                                                                                 </fo:table-cell> 
    1116                                                                                                 <fo:table-cell> 
    1117                                                                                                         <fo:block> 
    1118                                                                                                                 <xsl:if test="string(witsml:bit/Run/witsml:eTimOpBit)"><fo:inline> 
    1119 <xsl:value-of select="witsml:bit/Run/witsml:eTimOpBit"/> 
    1120 </fo:inline></xsl:if> 
    1121                                                                                                         </fo:block> 
    1122                                                                                                 </fo:table-cell> 
    1123                                                                                                 <fo:table-cell> 
    1124                                                                                                         <fo:block> 
    1125                                                                                                                 <xsl:if test="string(witsml:ropAv)"><fo:inline> 
    1126 <xsl:value-of select="witsml:ropAv"/> 
    1127 </fo:inline></xsl:if> 
    1128                                                                                                         </fo:block> 
    1129                                                                                                 </fo:table-cell> 
    1130                                                                                                 <fo:table-cell> 
    1131                                                                                                         <fo:block> 
    1132                                                                                                                 <xsl:if test="string(witsml:bitRun/witsml:mdTotHoleMade)"><fo:inline> 
    1133 <xsl:value-of select="witsml:bitRun/witsml:mdTotHoleMade"/> 
    1134 </fo:inline></xsl:if> 
    1135                                                                                                         </fo:block> 
    1136                                                                                                 </fo:table-cell> 
    1137                                                                                                 <fo:table-cell> 
    1138                                                                                                         <fo:block> 
    1139                                                                                                                 <xsl:if test="string(witsml:bitRun/witsml:totHrsDrilled)"><fo:inline> 
    1140 <xsl:value-of select="witsml:bitRun/witsml:totHrsDrilled"/> 
    1141 </fo:inline></xsl:if> 
    1142                                                                                                         </fo:block> 
    1143                                                                                                 </fo:table-cell> 
    1144                                                                                                 <fo:table-cell> 
    1145                                                                                                         <fo:block> 
    1146                                                                                                                 <xsl:if test="string(witsml:ropMx)"><fo:inline> 
    1147 <xsl:value-of select="witsml:ropMx"/> 
    11481148</fo:inline></xsl:if> 
    11491149                                                                                                        </fo:block> 
     
    12751275                                                                                                <fo:table-cell> 
    12761276                                                                                                        <fo:block> 
    1277                                                                                                                 <xsl:variable name="element_casing" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='stimStageType']/xsd:restriction"/> 
    1278                                                                                                                 <xsl:variable name="casingTypes" select="witsml:casing_liner_tubing_run/witsml:kind"/> 
    1279                                                                                                                 <xsl:if test="string($element_casing//xsd:enumeration[@value=$casingTypes])"><fo:inline> 
    1280 <xsl:value-of select="$element_casing//xsd:enumeration[@value=$casingTypes]"/> 
    1281 </fo:inline></xsl:if> 
    1282                                                                                                         </fo:block> 
    1283                                                                                                 </fo:table-cell> 
    1284                                                                                                 <fo:table-cell> 
    1285                                                                                                         <fo:block> 
    1286                                                                                                                 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T'))"><fo:inline> 
    1287 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 
     1277                                                                                                                <xsl:if test="string(witsml:casing_liner_tubing_run/witsml:tubularJobType)"><fo:inline> 
     1278<xsl:value-of select="witsml:casing_liner_tubing_run/witsml:tubularJobType"/> 
     1279</fo:inline></xsl:if> 
     1280                                                                                                        </fo:block> 
     1281                                                                                                </fo:table-cell> 
     1282                                                                                                <fo:table-cell> 
     1283                                                                                                        <fo:block> 
     1284                                                                                                                <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T'))"><fo:inline> 
     1285<xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/> 
    12881286</fo:inline></xsl:if> 
    12891287                                                                                                        </fo:block> 
     
    14301428                                                                                                        </fo:table-cell> 
    14311429                                                                                                        <fo:table-cell> 
    1432                                                                                                                 <fo:block>Plug failed to bump</fo:block> 
     1430                                                                                                                <fo:block>Plug bumped</fo:block> 
    14331431                                                                                                        </fo:table-cell> 
    14341432                                                                                                        <fo:table-cell> 
     
    14411439                                                                                                        </fo:table-cell> 
    14421440                                                                                                        <fo:table-cell> 
    1443                                                                                                                 <fo:block>Float failed</fo:block> 
     1441                                                                                                                <fo:block>Float held</fo:block> 
    14441442                                                                                                        </fo:table-cell> 
    14451443                                                                                                        <fo:table-cell> 
     
    14811479                                                                                                        <fo:table-cell> 
    14821480                                                                                                                <fo:block> 
    1483                                                                                                                         <xsl:variable name="element_jobTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='cementJobTypes']/xsd:restriction"/> 
    1484                                                                                                                         <xsl:variable name="jobTypes" select="witsml:jobType"/> 
    1485                                                                                                                         <xsl:if test="string($element_jobTypes//xsd:enumeration[@value=$jobTypes])"><fo:inline> 
    1486 <xsl:value-of select="$element_jobTypes//xsd:enumeration[@value=$jobTypes]"/> 
     1481                                                                                                                        <xsl:if test="string(witsml:jobType)"><fo:inline> 
     1482<xsl:value-of select="witsml:jobType"/> 
    14871483</fo:inline></xsl:if> 
    14881484                                                                                                                </fo:block> 
     
    15041500                                                                                                        <fo:table-cell> 
    15051501                                                                                                                <fo:block> 
    1506                                                                                                                         <xsl:if test="witsml:topPlug='true'">yes</xsl:if> 
    1507                                                                                                                         <xsl:if test="witsml:topPlug='false'">no</xsl:if> 
    1508                                                                                                                 </fo:block> 
    1509                                                                                                         </fo:table-cell> 
    1510                                                                                                         <fo:table-cell> 
    1511                                                                                                                 <fo:block> 
    1512                                                                                                                         <xsl:if test="witsml:botPlug='true'">yes</xsl:if> 
    1513                                                                                                                         <xsl:if test="witsml:botPlug='false'">no</xsl:if> 
    1514                                                                                                                 </fo:block> 
    1515                                                                                                         </fo:table-cell> 
    1516                                                                                                         <fo:table-cell> 
    1517                                                                                                                 <fo:block> 
    1518                                                                                                                         <xsl:if test="witsml:plugBumped='true'">yes</xsl:if> 
    1519                                                                                                                         <xsl:if test="witsml:plugBumped='false'">no</xsl:if> 
     1502                                                                                                                        <xsl:if test="witsml:topPlug='true' or witsml:topPlug='1'">yes</xsl:if> 
     1503                                                                                                                        <xsl:if test="witsml:topPlug='false' or witsml:topPlug='0'">no</xsl:if> 
     1504                                                                                                                </fo:block> 
     1505                                                                                                        </fo:table-cell> 
     1506                                                                                                        <fo:table-cell> 
     1507                                                                                                                <fo:block> 
     1508                                                                                                                        <xsl:if test="witsml:botPlug='true' or witsml:botPlug='1'">yes</xsl:if> 
     1509                                                                                                                        <xsl:if test="witsml:botPlug='false' or witsml:botPlug='0'">no</xsl:if> 
     1510                                                                                                                </fo:block> 
     1511                                                                                                        </fo:table-cell> 
     1512                                                                                                        <fo:table-cell> 
     1513                                                                                                                <fo:block> 
     1514                                                                                                                        <xsl:if test="witsml:plugBumped='true' or witsml:plugBumped='1'">yes</xsl:if> 
     1515                                                                                                                        <xsl:if test="witsml:plugBumped='false' or witsml:plugBumped='0'">no</xsl:if> 
    15201516                                                                                                                </fo:block> 
    15211517                                                                                                        </fo:table-cell> 
     
    15291525                                                                                                        <fo:table-cell> 
    15301526                                                                                                                <fo:block> 
    1531                                                                                                                         <xsl:if test="witsml:floatHeld='true'">yes</xsl:if> 
    1532                                                                                                                         <xsl:if test="witsml:floatHeld='false'">no</xsl:if> 
     1527                                                                                                                        <xsl:if test="witsml:floatHeld='true' or witsml:floatHeld='1'">yes</xsl:if> 
     1528                                                                                                                        <xsl:if test="witsml:floatHeld='false' or witsml:floatHeld='0'">no</xsl:if> 
    15331529                                                                                                                </fo:block> 
    15341530                                                                                                        </fo:table-cell> 
     
    15421538                                                                                                        <fo:table-cell> 
    15431539                                                                                                                <fo:block> 
    1544                                                                                                                         <xsl:if test="witsml:annFlowAfter='true'">yes</xsl:if> 
    1545                                                                                                                         <xsl:if test="witsml:annFlowAfter='false'">no</xsl:if> 
     1540                                                                                                                        <xsl:if test="witsml:annFlowAfter='true' or witsml:annFlowAfter='1'">yes</xsl:if> 
     1541                                                                                                                        <xsl:if test="witsml:annFlowAfter='false' or witsml:annFlowAfter='0'">no</xsl:if> 
    15461542                                                                                                                </fo:block> 
    15471543                                                                                                        </fo:table-cell> 
     
    15551551                                                                                                        <fo:table-cell> 
    15561552                                                                                                                <fo:block> 
    1557                                                                                                                         <xsl:if test="witsml:reciprocated='true'">yes</xsl:if> 
    1558                                                                                                                         <xsl:if test="witsml:reciprocated='false'">no</xsl:if> 
    1559                                                                                                                 </fo:block> 
    1560                                                                                                         </fo:table-cell> 
    1561                                                                                                         <fo:table-cell> 
    1562                                                                                                                 <fo:block> 
    1563                                                                                                                         <xsl:if test="witsml:rotated='true'">yes</xsl:if> 
    1564                                                                                                                         <xsl:if test="witsml:rotated='false'">no</xsl:if> 
     1553                                                                                                                        <xsl:if test="witsml:reciprocated='true' or witsml:reciprocated='1'">yes</xsl:if> 
     1554                                                                                                                        <xsl:if test="witsml:reciprocated='false' or witsml:reciprocated='0'">no</xsl:if> 
     1555                                                                                                                </fo:block> 
     1556                                                                                                        </fo:table-cell> 
     1557                                                                                                        <fo:table-cell> 
     1558                                                                                                                <fo:block> 
     1559                                                                                                                        <xsl:if test="witsml:rotated='true' or witsml:rotated='1'">yes</xsl:if> 
     1560                                                                                                                        <xsl:if test="witsml:rotated='false' or witsml:rotated='0'">no</xsl:if> 
    15651561                                                                                                                </fo:block> 
    15661562                                                                                                        </fo:table-cell> 
     
    16621658                                                                                                        <fo:table-cell> 
    16631659                                                                                                                <fo:block> 
    1664                                                                                                                         <xsl:variable name="element_fluidTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='fluidTypes']/xsd:restriction"/> 
    1665                                                                                                                         <xsl:variable name="fluidTypes" select="witsml:typeFluid"/> 
    1666                                                                                                                         <xsl:if test="string($element_fluidTypes//xsd:enumeration[@value=$fluidTypes])"><fo:inline> 
    1667 <xsl:value-of select="$element_fluidTypes//xsd:enumeration[@value=$fluidTypes]"/> 
     1660                                                                                                                        <xsl:if test="string(witsml:typeFluid)"><fo:inline> 
     1661<xsl:value-of select="witsml:typeFluid"/> 
    16681662</fo:inline></xsl:if> 
    16691663                                                                                                                </fo:block> 
     
    28402834                                                                                                <fo:table-cell> 
    28412835                                                                                                        <fo:block> 
    2842                                                                                                                 <xsl:if test="witsml:goodSeal='true'">yes</xsl:if> 
    2843                                                                                                                 <xsl:if test="witsml:goodSeal='false'">no</xsl:if> 
     2836                                                                                                                <xsl:if test="witsml:goodSeal='true' or witsml:goodSeal='1'">yes</xsl:if> 
     2837                                                                                                                <xsl:if test="witsml:goodSeal='false' or witsml:goodSeal='0'">no</xsl:if> 
    28442838                                                                                                        </fo:block> 
    28452839                                                                                                </fo:table-cell>