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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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>