Changeset 221

Show
Ignore:
Timestamp:
05/18/11 12:06:19 (13 years ago)
Author:
yaolu
Message:

added references to the XSLT files so it is prepared when the elements are ready to be mapped

fixed some small errors in Change_log_110_to_120.doc

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

Legend:

Unmodified
Added
Removed
  • projects/DailyDrillingReport_1.2/XML/HTMLreport/ddr_HTMLReport_transformation_2011_02_07.xsl

    r213 r221  
    3636                                                        <xsl:variable name="element_objDrillReport_sequence" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='obj_drillReport']/xsd:sequence/xsd:sequence"/> 
    3737                                                        <xsl:variable name="element_statusInfo" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='statusInfo']/xsd:sequence"/> 
     38                                                        <xsl:variable name="url_reportNo"> 
     39                                                                <xsl:value-of select="$element_statusInfo//xsd:element[@name='reportNo']/@sawsdl:modelReference"/> 
     40                                                        </xsl:variable> 
     41                                                        <xsl:variable name="url_dTimEnd"> 
     42                                                                <xsl:value-of select="element_objDrillReport_sequence//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 
     43                                                        </xsl:variable> 
    3844                                                        <td> 
    3945                                                                <table id="table1" width="100%"> 
     
    4147                                                                        <tr class="light"> 
    4248                                                                                <td class="dark"> 
    43                                                                                         <a target="_blank" href="{$urlRDS}">Report Number:</a> 
     49                                                                                        <a target="_blank" href="{$url_reportNo}">Report Number:</a> 
    4450                                                                                </td> 
    4551                                                                                <td class="light"> 
     
    4753                                                                                </td> 
    4854                                                                                <td class="dark"> 
    49                                                                                         <a target="_blank" href="{$urlRDS}">Period:</a> 
     55                                                                                        <a target="_blank" href="{$url_dTimEnd}">Period:</a> 
    5056                                                                                </td> 
    5157                                                                                <td colspan="2"> 
     
    362368                                                                                        <xsl:value-of select="$element_bitRecord//xsd:element[@name='manufacturer']/@sawsdl:modelReference"/> 
    363369                                                                                </xsl:variable> 
     370                                                                                <xsl:variable name="url_eTimOpBit"> 
     371                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='eTimOpBit']/@sawsdl:modelReference"/> 
     372                                                                                </xsl:variable> 
     373                                                                                <xsl:variable name="url_mdHoleStart"> 
     374                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStart']/@sawsdl:modelReference"/> 
     375                                                                                </xsl:variable> 
     376                                                                                <xsl:variable name="url_mdHoleStop"> 
     377                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStop']/@sawsdl:modelReference"/> 
     378                                                                                </xsl:variable> 
     379                                                                                <xsl:variable name="url_ropAv"> 
     380                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='ropAv']/@sawsdl:modelReference"/> 
     381                                                                                </xsl:variable> 
     382                                                                                <xsl:variable name="url_mdTotHoleMade"> 
     383                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdTotHoleMade']/@sawsdl:modelReference"/> 
     384                                                                                </xsl:variable> 
     385                                                                                <xsl:variable name="url_totHrsDrilled"> 
     386                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totHrsDrilled']/@sawsdl:modelReference"/> 
     387                                                                                </xsl:variable> 
     388                                                                                <xsl:variable name="url_totRop"> 
     389                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totRop']/@sawsdl:modelReference"/> 
     390                                                                                </xsl:variable> 
     391                                                                                <xsl:variable name="url_dullGrade"> 
     392                                                                                        <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='dullGrade']/@sawsdl:modelReference"/> 
     393                                                                                </xsl:variable> 
    364394                                                                                <tr> 
    365395                                                                                        <td align="center" width="50" valign="top"> 
     
    377407                                                                                        </td> 
    378408                                                                                        <td align="center" width="50" valign="top"> 
    379                                                                                                 <a target="_blank" href="{$urlRDS}">Hours drilled<br /> 
     409                                                                                                <a target="_blank" href="{$url_eTimOpBit}">Hours drilled<br /> 
    380410                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom"/> 
    381411                                                                                                </a> 
    382412                                                                                        </td> 
    383413                                                                                        <td align="center" width="50" valign="top"> 
    384                                                                                                 <a target="_blank" href="{$urlRDS}">MD start<br /> 
     414                                                                                                <a target="_blank" href="{$url_mdHoleStart}">MD start<br /> 
    385415                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart/@uom"/> 
    386416                                                                                                </a> 
    387417                                                                                        </td> 
    388418                                                                                        <td align="center" width="50" valign="top"> 
    389                                                                                                 <a target="_blank" href="{$urlRDS}">MD end<br /> 
     419                                                                                                <a target="_blank" href="{$url_mdHoleStop}">MD end<br /> 
    390420                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 
    391421                                                                                                </a> 
    392422                                                                                        </td> 
    393423                                                                                        <td align="center" width="60" valign="top"> 
    394                                                                                                 <a target="_blank" href="{$urlRDS}">Hole made (last 24H)<br /> 
     424                                                                                                <a target="_blank" href="{$url_mdHoleStop}">Hole made (last 24H)<br /> 
    395425                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 
    396426                                                                                                </a> 
    397427                                                                                        </td> 
    398428                                                                                        <td align="center" width="60" valign="top"> 
    399                                                                                                 <a target="_blank" href="{$urlRDS}">Hours drilled (last 24H)<br /> 
     429                                                                                                <a target="_blank" href="{$url_eTimOpBit}">Hours drilled (last 24H)<br /> 
    400430                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom"/> 
    401431                                                                                                </a> 
    402432                                                                                        </td> 
    403433                                                                                        <td align="center" width="60" valign="top"> 
    404                                                                                                 <a target="_blank" href="{$urlRDS}">ROP<br />(last 24H)<br /> 
     434                                                                                                <a target="_blank" href="{$url_ropAv}">ROP<br />(last 24H)<br /> 
    405435                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom"/> 
    406436                                                                                                </a> 
    407437                                                                                        </td> 
    408438                                                                                        <td align="center" width="60" valign="top"> 
    409                                                                                                 <a target="_blank" href="{$urlRDS}">Total<br />hole made<br /> 
     439                                                                                                <a target="_blank" href="{$url_mdTotHoleMade}">Total<br />hole made<br /> 
    410440                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom"/> 
    411441                                                                                                </a> 
    412442                                                                                        </td> 
    413443                                                                                        <td align="center" width="60" valign="top"> 
    414                                                                                                 <a target="_blank" href="{$urlRDS}">Total hours drilled<br /> 
     444                                                                                                <a target="_blank" href="{$url_totHrsDrilled}">Total hours drilled<br /> 
    415445                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom"/> 
    416446                                                                                                </a> 
    417447                                                                                        </td> 
    418448                                                                                        <td align="center" width="60" valign="top"> 
    419                                                                                                 <a target="_blank" href="{$urlRDS}">Total ROP<br /> 
     449                                                                                                <a target="_blank" href="{$url_totRop}">Total ROP<br /> 
    420450                                                                                                        <xsl:value-of select="witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom"/> 
    421451                                                                                                </a> 
    422452                                                                                        </td> 
    423453                                                                                        <td align="center" width="120" valign="top"> 
    424                                                                                                 <a target="_blank" href="{$urlRDS}">Dull grade</a> 
     454                                                                                                <a target="_blank" href="{$url_dullGrade}">Dull grade</a> 
    425455                                                                                        </td> 
    426456                                                                                </tr> 
     
    464494                                                                                                </td> 
    465495                                                                                                <td align="center"> 
    466                                                                                                         <xsl:value-of select="witsml:bitRun/witsml:ropMx"/> 
     496                                                                                                        <xsl:value-of select="witsml:bitRun/witsml:totRop"/> 
    467497                                                                                                </td> 
    468498                                                                                                <td align="center"> 
     
    493523                                                                        <table id="table2"> 
    494524                                                                                <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='casing_liner_tubing']/xsd:sequence"/> 
    495                                                                                 <!--<xsl:variable name="url_readingKind"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/></xsl:variable> 
    496                                                                         <xsl:variable name="url_equivalentMudWeight"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/></xsl:variable> 
    497                                                                         <xsl:variable name="url_dTim"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='dTim']/@sawsdl:modelReference"/></xsl:variable> 
    498                                                                         <xsl:variable name="url_md"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='md']/@sawsdl:modelReference"/></xsl:variable> 
    499                                                                         <xsl:variable name="url_tvd"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='tvd']/@sawsdl:modelReference"/></xsl:variable>--> 
     525                                                                                <xsl:variable name="url_type"> 
     526                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='type']/@sawsdl:modelReference"/> 
     527                                                                                </xsl:variable> 
     528                                                                                <xsl:variable name="url_casingType"> 
     529                                                                                        <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='casingType']/@sawsdl:modelReference"/> 
     530                                                                                </xsl:variable> 
     531                                                                                <xsl:variable name="url_dTimStart"> 
     532                                                                                        <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/> 
     533                                                                                </xsl:variable> 
     534                                                                                <xsl:variable name="url_dTimEnd"> 
     535                                                                                        <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 
     536                                                                                </xsl:variable> 
     537                                                                                <xsl:variable name="url_od"> 
     538                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='od']/@sawsdl:modelReference"/> 
     539                                                                                </xsl:variable> 
     540                                                                                <xsl:variable name="url_id"> 
     541                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='id']/@sawsdl:modelReference"/> 
     542                                                                                </xsl:variable> 
     543                                                                                <xsl:variable name="url_weight"> 
     544                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='weight']/@sawsdl:modelReference"/> 
     545                                                                                </xsl:variable> 
     546                                                                                <xsl:variable name="url_grade"> 
     547                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='grade']/@sawsdl:modelReference"/> 
     548                                                                                </xsl:variable> 
     549                                                                                <xsl:variable name="url_connection"> 
     550                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='connection']/@sawsdl:modelReference"/> 
     551                                                                                </xsl:variable> 
     552                                                                                <xsl:variable name="url_length"> 
     553                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='length']/@sawsdl:modelReference"/> 
     554                                                                                </xsl:variable> 
     555                                                                                <xsl:variable name="url_mdTop"> 
     556                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='mdTop']/@sawsdl:modelReference"/> 
     557                                                                                </xsl:variable> 
     558                                                                                <xsl:variable name="url_mdBottom"> 
     559                                                                                        <xsl:value-of select="$element_pipe//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/> 
     560                                                                                </xsl:variable> 
     561                                                                                <xsl:variable name="url_description"> 
     562                                                                                        <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='description']/@sawsdl:modelReference"/> 
     563                                                                                </xsl:variable> 
    500564                                                                                <tr> 
    501565                                                                                        <td align="center" valign="top"> 
    502                                                                                                 <a target="_blank" href="{$urlRDS}">Type of pipe</a> 
     566                                                                                                <a target="_blank" href="{$url_type}">Type of pipe</a> 
    503567                                                                                        </td> 
    504568                                                                                        <td align="center" valign="top"> 
    505                                                                                                 <a target="_blank" href="{$urlRDS}">Casing type</a> 
     569                                                                                                <a target="_blank" href="{$url_casingType}">Casing type</a> 
    506570                                                                                        </td> 
    507571                                                                                        <td align="center" width="60" valign="top"> 
    508                                                                                                 <a target="_blank" href="{$urlRDS}">Run time</a> 
     572                                                                                                <a target="_blank" href="{$url_dTimStart}">Run time</a> 
    509573                                                                                        </td> 
    510574                                                                                        <td align="center" width="60" valign="top"> 
    511                                                                                                 <a target="_blank" href="{$urlRDS}">Nominal outside diameter<br /> 
     575                                                                                                <a target="_blank" href="{$url_od}">Nominal outside diameter<br /> 
    512576                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:od/@uom"/> 
    513577                                                                                                </a> 
    514578                                                                                        </td> 
    515579                                                                                        <td align="center" width="100" valign="top"> 
    516                                                                                                 <a target="_blank" href="{$urlRDS}">Nominal inside diameter<br /> 
     580                                                                                                <a target="_blank" href="{$url_id}">Nominal inside diameter<br /> 
    517581                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:id/@uom"/> 
    518582                                                                                                </a> 
    519583                                                                                        </td> 
    520584                                                                                        <td align="center" width="60" valign="top"> 
    521                                                                                                 <a target="_blank" href="{$urlRDS}">Nominal Weight<br /> 
     585                                                                                                <a target="_blank" href="{$url_weight}">Nominal Weight<br /> 
    522586                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:weight/@uom"/> 
    523587                                                                                                </a> 
    524588                                                                                        </td> 
    525589                                                                                        <td align="center" width="60" valign="top"> 
    526                                                                                                 <a target="_blank" href="{$urlRDS}">Nominal Grade</a> 
     590                                                                                                <a target="_blank" href="{$url_grade}">Nominal Grade</a> 
    527591                                                                                        </td> 
    528592                                                                                        <td align="center" width="60" valign="top"> 
    529                                                                                                 <a target="_blank" href="{$urlRDS}">Nominal Connection</a> 
     593                                                                                                <a target="_blank" href="{$url_connection}">Nominal Connection</a> 
    530594                                                                                        </td> 
    531595                                                                                        <td align="center" width="60" valign="top"> 
    532                                                                                                 <a target="_blank" href="{$urlRDS}">Length<br /> 
     596                                                                                                <a target="_blank" href="{$url_length}">Length<br /> 
    533597                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:length/@uom"/> 
    534598                                                                                                </a> 
    535599                                                                                        </td> 
    536600                                                                                        <td align="center" width="60" valign="top"> 
    537                                                                                                 <a target="_blank" href="{$urlRDS}">MD Top/Hangar<br /> 
     601                                                                                                <a target="_blank" href="{$url_mdTop}">MD Top/Hangar<br /> 
    538602                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:mdTop/@uom"/> 
    539603                                                                                                </a> 
    540604                                                                                        </td> 
    541605                                                                                        <td align="center" width="60" valign="top"> 
    542                                                                                                 <a target="_blank" href="{$urlRDS}">MD Bottom/Shoe<br /> 
     606                                                                                                <a target="_blank" href="{$url_mdBottom}">MD Bottom/Shoe<br /> 
    543607                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing/witsml:mdBottom/@uom"/> 
    544608                                                                                                </a> 
    545609                                                                                        </td> 
    546610                                                                                        <td align="left" width="100" valign="top"> 
    547                                                                                                 <a target="_blank" href="{$urlRDS}">Description</a> 
     611                                                                                                <a target="_blank" href="{$url_description}">Description</a> 
    548612                                                                                        </td> 
    549613                                                                                </tr> 
     
    556620                                                                                                </td> 
    557621                                                                                                <td align="center"> 
    558                                                                                                         <xsl:value-of select="witsml:casing_liner_tubing_run/witsml:tubularJobType"/> 
    559                                                                                                 </td> 
    560                                                                                                 <td align="center"> 
    561                                                                                                         <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/> 
     622                                                                                                        <xsl:value-of select="witsml:casing_liner_tubing_run/witsml:casingType"/> 
     623                                                                                                </td> 
     624                                                                                                <td align="center"> 
     625                                                                                                        <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 
    562626                                                                                                </td> 
    563627                                                                                                <td align="center"> 
     
    611675                                                                        <td> 
    612676                                                                                <table id="table2"> 
    613                                                                                         <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cement']/xsd:sequence"/> 
    614                                                                                         <!--<xsl:variable name="url_readingKind"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/></xsl:variable> 
    615                                                                         <xsl:variable name="url_equivalentMudWeight"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/></xsl:variable> 
    616                                                                         <xsl:variable name="url_dTim"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='dTim']/@sawsdl:modelReference"/></xsl:variable> 
    617                                                                         <xsl:variable name="url_md"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='md']/@sawsdl:modelReference"/></xsl:variable> 
    618                                                                         <xsl:variable name="url_tvd"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='tvd']/@sawsdl:modelReference"/></xsl:variable>--> 
     677                                                                                        <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_cementStage']/xsd:sequence"/> 
     678                                                                                        <xsl:variable name="url_dTimPumpStart"> 
     679                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpStart']/@sawsdl:modelReference"/> 
     680                                                                                        </xsl:variable> 
     681                                                                                        <xsl:variable name="url_dTimPumpEnd"> 
     682                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpEnd']/@sawsdl:modelReference"/> 
     683                                                                                        </xsl:variable> 
     684                                                                                        <xsl:variable name="url_jobType"> 
     685                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='jobType']/@sawsdl:modelReference"/> 
     686                                                                                        </xsl:variable> 
     687                                                                                        <xsl:variable name="url_casingStrDia"> 
     688                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='casingStrDia']/@sawsdl:modelReference"/> 
     689                                                                                        </xsl:variable> 
     690                                                                                        <xsl:variable name="url_topPlug"> 
     691                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='topPlug']/@sawsdl:modelReference"/> 
     692                                                                                        </xsl:variable> 
     693                                                                                        <xsl:variable name="url_botPlug"> 
     694                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='botPlug']/@sawsdl:modelReference"/> 
     695                                                                                        </xsl:variable> 
     696                                                                                        <xsl:variable name="url_plugBumped"> 
     697                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='plugBumped']/@sawsdl:modelReference"/> 
     698                                                                                        </xsl:variable> 
     699                                                                                        <xsl:variable name="url_presBump"> 
     700                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='presBump']/@sawsdl:modelReference"/> 
     701                                                                                        </xsl:variable> 
     702                                                                                        <xsl:variable name="url_floatHeld"> 
     703                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='floatHeld']/@sawsdl:modelReference"/> 
     704                                                                                        </xsl:variable> 
     705                                                                                        <xsl:variable name="url_eTimPresHeld"> 
     706                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='eTimPresHeld']/@sawsdl:modelReference"/> 
     707                                                                                        </xsl:variable> 
     708                                                                                        <xsl:variable name="url_annFlowAfter"> 
     709                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='annFlowAfter']/@sawsdl:modelReference"/> 
     710                                                                                        </xsl:variable> 
     711                                                                                        <xsl:variable name="url_volReturns"> 
     712                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='volReturns']/@sawsdl:modelReference"/> 
     713                                                                                        </xsl:variable> 
     714                                                                                        <xsl:variable name="url_reciprocated"> 
     715                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='reciprocated']/@sawsdl:modelReference"/> 
     716                                                                                        </xsl:variable> 
     717                                                                                        <xsl:variable name="url_rotated"> 
     718                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='rotated']/@sawsdl:modelReference"/> 
     719                                                                                        </xsl:variable> 
     720                                                                                        <xsl:variable name="url_comments"> 
     721                                                                                                <xsl:value-of select="$element_cement//xsd:element[@name='comments']/@sawsdl:modelReference"/> 
     722                                                                                        </xsl:variable> 
    619723                                                                                        <tr> 
    620724                                                                                                <td align="center" valign="top"> 
    621                                                                                                         <a target="_blank" href="{$urlRDS}">Start Time</a> 
     725                                                                                                        <a target="_blank" href="{$url_dTimPumpStart}">Start Time</a> 
    622726                                                                                                </td> 
    623727                                                                                                <td align="center" valign="top"> 
    624                                                                                                         <a target="_blank" href="{$urlRDS}">End Time</a> 
     728                                                                                                        <a target="_blank" href="{$url_dTimPumpEnd}">End Time</a> 
    625729                                                                                                </td> 
    626730                                                                                                <td align="center" width="50" valign="top"> 
    627                                                                                                         <a target="_blank" href="{$urlRDS}">Job Type</a> 
     731                                                                                                        <a target="_blank" href="{$url_jobType}">Job Type</a> 
    628732                                                                                                </td> 
    629733                                                                                                <td align="center" width="50" valign="top"> 
    630                                                                                                         <a target="_blank" href="{$urlRDS}">Casing string diameter</a> 
     734                                                                                                        <a target="_blank" href="{$url_casingStrDia}">Casing string diameter</a> 
    631735                                                                                                </td> 
    632736                                                                                                <td align="center" width="50" valign="top"> 
    633                                                                                                         <a target="_blank" href="{$urlRDS}">Top plug used</a> 
     737                                                                                                        <a target="_blank" href="{$url_topPlug}">Top plug used</a> 
    634738                                                                                                </td> 
    635739                                                                                                <td align="center" width="50" valign="top"> 
    636                                                                                                         <a target="_blank" href="{$urlRDS}">Bottom plug used</a> 
     740                                                                                                        <a target="_blank" href="{$url_botPlug}">Bottom plug used</a> 
    637741                                                                                                </td> 
    638742                                                                                                <td align="center" width="50" valign="top"> 
    639                                                                                                         <a target="_blank" href="{$urlRDS}">Plug bumped</a> 
     743                                                                                                        <a target="_blank" href="{$url_plugBumped}">Plug bumped</a> 
    640744                                                                                                </td> 
    641745                                                                                                <td align="center" width="50" valign="top"> 
    642                                                                                                         <a target="_blank" href="{$urlRDS}">Plug bump pressure <xsl:value-of select="witsml:presBump/@uom"/> 
     746                                                                                                        <a target="_blank" href="{$url_presBump}">Plug bump pressure <xsl:value-of select="witsml:presBump/@uom"/> 
    643747                                                                                                        </a> 
    644748                                                                                                </td> 
    645749                                                                                                <td align="center" width="50" valign="top"> 
    646                                                                                                         <a target="_blank" href="{$urlRDS}">Float held</a> 
     750                                                                                                        <a target="_blank" href="{$url_floatHeld}">Float held</a> 
    647751                                                                                                </td> 
    648752                                                                                                <td align="center" width="50" valign="top"> 
    649                                                                                                         <a target="_blank" href="{$urlRDS}">Pressure release time</a> 
     753                                                                                                        <a target="_blank" href="{$url_eTimPresHeld}">Pressure release time</a> 
    650754                                                                                                </td> 
    651755                                                                                                <td align="center" width="50" valign="top"> 
    652                                                                                                         <a target="_blank" href="{$urlRDS}">Full returns</a> 
     756                                                                                                        <a target="_blank" href="{$url_annFlowAfter}">Full returns</a> 
    653757                                                                                                </td> 
    654758                                                                                                <td align="center" width="50" valign="top"> 
    655                                                                                                         <a target="_blank" href="{$urlRDS}">Cement volume returns <xsl:value-of select="witsml:volReturns/@uom"/> 
     759                                                                                                        <a target="_blank" href="{$url_volReturns}">Cement volume returns <xsl:value-of select="witsml:volReturns/@uom"/> 
    656760                                                                                                        </a> 
    657761                                                                                                </td> 
    658762                                                                                                <td align="center" width="50" valign="top"> 
    659                                                                                                         <a target="_blank" href="{$urlRDS}">Reciprocated</a> 
     763                                                                                                        <a target="_blank" href="{$url_reciprocated}">Reciprocated</a> 
    660764                                                                                                </td> 
    661765                                                                                                <td align="center" width="50" valign="top"> 
    662                                                                                                         <a target="_blank" href="{$urlRDS}">Rotated</a> 
     766                                                                                                        <a target="_blank" href="{$url_rotated}">Rotated</a> 
    663767                                                                                                </td> 
    664768                                                                                                <td align="left" width="220" valign="top"> 
    665                                                                                                         <a target="_blank" href="{$urlRDS}">Comments</a> 
     769                                                                                                        <a target="_blank" href="{$url_comments}">Comments</a> 
    666770                                                                                                </td> 
    667771                                                                                        </tr> 
     
    735839                                                                                <td class="SectionHead">Cementing Fluid Details</td> 
    736840                                                                        </tr> 
    737                                                                         <xsl:variable name="element_fluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 
    738                                                                         <xsl:variable name="url_dTimFluid"> 
    739                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='dTim']/@sawsdl:modelReference"/> 
     841                                                                        <xsl:variable name="element_cementingFluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 
     842                                                                        <xsl:variable name="url_typeFluid"> 
     843                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 
    740844                                                                        </xsl:variable> 
    741                                                                         <xsl:variable name="url_mdFluid"> 
    742                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='md']/@sawsdl:modelReference"/> 
    743                                                                         </xsl:variable> 
    744                                                                         <xsl:variable name="url_mudClass"> 
    745                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 
     845                                                                        <xsl:variable name="url_descFluid"> 
     846                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='descFluid']/@sawsdl:modelReference"/> 
    746847                                                                        </xsl:variable> 
    747848                                                                        <xsl:variable name="url_density"> 
    748                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 
     849                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 
    749850                                                                        </xsl:variable> 
    750                                                                         <xsl:variable name="url_pv"> 
    751                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='pv']/@sawsdl:modelReference"/> 
     851                                                                        <xsl:variable name="url_volPumped"> 
     852                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='volPumped']/@sawsdl:modelReference"/> 
    752853                                                                        </xsl:variable> 
    753854                                                                        <xsl:variable name="url_yp"> 
    754                                                                                 <xsl:value-of select="$element_fluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 
     855                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 
     856                                                                        </xsl:variable> 
     857                                                                        <xsl:variable name="url_ratioMixWater"> 
     858                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='ratioMixWater']/@sawsdl:modelReference"/> 
     859                                                                        </xsl:variable> 
     860                                                                        <xsl:variable name="url_pcFreeWater"> 
     861                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='pcFreeWater']/@sawsdl:modelReference"/> 
     862                                                                        </xsl:variable> 
     863                                                                        <xsl:variable name="url_eTimThickening"> 
     864                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='eTimThickening']/@sawsdl:modelReference"/> 
     865                                                                        </xsl:variable> 
     866                                                                        <xsl:variable name="url_comments"> 
     867                                                                                <xsl:value-of select="$element_cementingFluid//xsd:element[@name='comments']/@sawsdl:modelReference"/> 
    755868                                                                        </xsl:variable> 
    756869                                                                        <tr> 
     
    759872                                                                                                <tr> 
    760873                                                                                                        <td align="center" width="80" valign="top"> 
    761                                                                                                                 <a target="_blank" href="{$url_mudClass}">Fluid Type</a> 
     874                                                                                                                <a target="_blank" href="{$url_typeFluid}">Fluid Type</a> 
    762875                                                                                                        </td> 
    763876                                                                                                        <td align="center" width="50" valign="top"> 
    764                                                                                                                 <a target="_blank" href="{$urlRDS}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/> 
     877                                                                                                                <a target="_blank" href="{$url_volPumped}">Volume Pumped <xsl:value-of select="witsml:cementingFluid/witsml:volPumped/@uom"/> 
    765878                                                                                                                </a> 
    766879                                                                                                        </td> 
     
    774887                                                                                                        </td> 
    775888                                                                                                        <td align="center" width="50" valign="top"> 
    776                                                                                                                 <a target="_blank" href="{$urlRDS}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/> 
     889                                                                                                                <a target="_blank" href="{$url_ratioMixWater}">Mix Water Ratio <xsl:value-of select="witsml:cementingFluid/witsml:ratioMixWater/@uom"/> 
    777890                                                                                                                </a> 
    778891                                                                                                        </td> 
    779892                                                                                                        <td align="center" width="50" valign="top"> 
    780                                                                                                                 <a target="_blank" href="{$urlRDS}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/> 
     893                                                                                                                <a target="_blank" href="{$url_pcFreeWater}">Free Water <xsl:value-of select="witsml:cementingFluid/witsml:pcFreeWater/@uom"/> 
    781894                                                                                                                </a> 
    782895                                                                                                        </td> 
    783896                                                                                                        <td align="center" width="50" valign="top"> 
    784                                                                                                                 <a target="_blank" href="{$urlRDS}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/> 
     897                                                                                                                <a target="_blank" href="{$url_eTimThickening}">Thick Time <xsl:value-of select="witsml:cementingFluid/witsml:eTimThickening/@uom"/> 
    785898                                                                                                                </a> 
    786899                                                                                                        </td> 
    787900                                                                                                        <td align="left" width="210" valign="top"> 
    788                                                                                                                 <a target="_blank" href="{$url_mudClass}">Fluid Description</a> 
     901                                                                                                                <a target="_blank" href="{$url_descFluid}">Fluid Description</a> 
    789902                                                                                                        </td> 
    790903                                                                                                        <td align="left" width="230" valign="top"> 
    791                                                                                                                 <a target="_blank" href="{$urlRDS}">Comments</a> 
     904                                                                                                                <a target="_blank" href="{$url_comments}">Comments</a> 
    792905                                                                                                        </td> 
    793906 
     
    19842097                                                                                        </td> 
    19852098                                                                                        <td width="110" align="center" valign="top"> 
    1986                                                                                                 <a href="{$urlRDS}" target="_blank">Duration Well Perf</a> 
     2099                                                                                                <a href="{$url_dTimClose}" target="_blank">Duration Well Perf</a> 
    19872100                                                                                        </td> 
    19882101                                                                                        <td width="100" align="center" valign="top" class="ColHead"> 
     
    23262439                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='elevKelly']/@sawsdl:modelReference"/> 
    23272440                </xsl:variable> 
     2441                <xsl:variable name="url_waterDepth"> 
     2442                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='waterDepth']/@sawsdl:modelReference"/> 
     2443                </xsl:variable> 
    23282444                <tr class="light"> 
    23292445                        <td class="dark"> 
     
    23622478                        </td> 
    23632479                        <td class="dark"> 
    2364                                 <a target="_blank" href="{$urlRDS}">Water Depth MSL <xsl:value-of select="../witsml:statusInfo/witsml:waterDepth/@uom" />:</a> 
     2480                                <a target="_blank" href="{$url_waterDepth}">Water Depth MSL <xsl:value-of select="../witsml:statusInfo/witsml:waterDepth/@uom" />:</a> 
    23652481                        </td> 
    23662482                        <td class="light"> 
     
    24372553                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdCsgLast']/@sawsdl:modelReference"/> 
    24382554                </xsl:variable> 
     2555                <xsl:variable name="url_tightWell"> 
     2556                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tightWell']/@sawsdl:modelReference"/> 
     2557                </xsl:variable> 
     2558                <xsl:variable name="url_hpht"> 
     2559                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='hpht']/@sawsdl:modelReference"/> 
     2560                </xsl:variable> 
     2561                <xsl:variable name="url_avgPresBH"> 
     2562                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgPresBH']/@sawsdl:modelReference"/> 
     2563                </xsl:variable> 
     2564                <xsl:variable name="url_expTempBH"> 
     2565                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='expTempBH']/@sawsdl:modelReference"/> 
     2566                </xsl:variable> 
     2567                <xsl:variable name="url_fixedRig"> 
     2568                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='fixedRig']/@sawsdl:modelReference"/> 
     2569                </xsl:variable> 
    24392570                <!-- Added 18jan2011 --> 
    2440                 <xsl:variable name="element_header" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='statusInfo']/xsd:sequence"/> 
    2441                 <xsl:variable name="element_rigTypes" select="document($ddrSchema)/xsd:schema/xsd:simpleType[@name='rigTypes']/xsd:restriction"/> 
    2442                 <xsl:variable name="urlRDS" select="'http://www.posccaesar.org'"/> 
    24432571                <tr class="light"> 
    24442572                        <td class="dark"> 
    2445                                 <a target="_blank" href="{$urlRDS}">Tight well:</a> 
     2573                                <a target="_blank" href="{$url_tightWell}">Tight well:</a> 
    24462574                        </td> 
    24472575                        <td class="light"> 
     
    24502578                        </td> 
    24512579                        <td class="dark"> 
    2452                                 <a target="_blank" href="{$urlRDS}">High Pressure - High Temperature:</a> 
     2580                                <a target="_blank" href="{$url_hpht}">High Pressure - High Temperature:</a> 
    24532581                        </td> 
    24542582                        <td class="light"> 
     
    24612589                <tr class="light"> 
    24622590                        <td class="dark"> 
    2463                                 <a target="_blank" href="{$urlRDS}">Pressure <xsl:value-of select="witsml:avgPresBH/@uom" />:</a> 
     2591                                <a target="_blank" href="{$url_avgPresBH}">Pressure <xsl:value-of select="witsml:avgPresBH/@uom" />:</a> 
    24642592                        </td> 
    24652593                        <td class="light"> 
     
    24672595                        </td> 
    24682596                        <td class="dark"> 
    2469                                 <a target="_blank" href="{$urlRDS}">Temperature <xsl:value-of select="witsml:expTempBH/@uom" />:</a> 
     2597                                <a target="_blank" href="{$url_expTempBH}">Temperature <xsl:value-of select="witsml:expTempBH/@uom" />:</a> 
    24702598                        </td> 
    24712599                        <td class="light"> 
     
    24772605                        <!-- Added 07feb2011 --> 
    24782606                        <td class="dark"> 
    2479                                 <a target="_blank" href="{$urlRDS}">Fixed rig:</a> 
     2607                                <a target="_blank" href="{$url_fixedRig}">Fixed rig:</a> 
    24802608                        </td> 
    24812609                        <td class="light"> 
  • projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_PDFReport_transformation_2011_03_09.xsl

    r213 r221  
    5757                                                                        <fo:table-cell vertical-align="middle" horisontal-align="right"> 
    5858                                                                                <fo:block font-weight="bold" text-align="right" font-size="11pt">End time: 
    59                                                                                                         <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'), ' ', substring-after(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'))"/> 
     59                                                                                        <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'), ' ', substring-after(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'))"/> 
    6060                                                                                </fo:block> 
    6161                                                                        </fo:table-cell> 
     
    140140                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tvdCsgLast']/@sawsdl:modelReference"/> 
    141141                                                </xsl:variable> 
     142                                                <xsl:variable name="url_waterDepth"> 
     143                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='waterDepth']/@sawsdl:modelReference"/> 
     144                                                </xsl:variable> 
     145                                                <xsl:variable name="url_tightWell"> 
     146                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='tightWell']/@sawsdl:modelReference"/> 
     147                                                </xsl:variable> 
     148                                                <xsl:variable name="url_hpht"> 
     149                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='hpht']/@sawsdl:modelReference"/> 
     150                                                </xsl:variable> 
     151                                                <xsl:variable name="url_avgPresBH"> 
     152                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgPresBH']/@sawsdl:modelReference"/> 
     153                                                </xsl:variable> 
     154                                                <xsl:variable name="url_expTempBH"> 
     155                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='expTempBH']/@sawsdl:modelReference"/> 
     156                                                </xsl:variable> 
     157                                                <xsl:variable name="url_fixedRig"> 
     158                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='fixedRig']/@sawsdl:modelReference"/> 
     159                                                </xsl:variable> 
    142160                                                <fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 
    143161                                                        <fo:table-column column-width="proportional-column-width(20)" column-number="1"/> 
     
    164182                                                                        <fo:table-cell vertical-align="middle"> 
    165183                                                                                <fo:block> 
    166                                                                                                 <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0,17), 'T'), ' ',  
     184                                                                                        <xsl:value-of select="concat(substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0,17), 'T'), ' ',  
    167185                                                                                                substring-after(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimStart, 0,17), 'T'), ' - ',  
    168186                                                                                                substring-before(substring(/witsml:drillReports/witsml:drillReport/witsml:dTimEnd, 0,17), 'T'), ' ',  
     
    318336                                                                <fo:table-row> 
    319337                                                                        <fo:table-cell vertical-align="middle"> 
    320                                                                                 <fo:block font-weight="bold">Elevation RKB-MSL <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom)"> 
     338                                                                                <fo:block font-weight="bold"> 
     339                                                                                        <fo:basic-link external-destination="url({$url_elevKelly})">Elevation RKB-MSL</fo:basic-link> 
     340                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom)"> 
    321341                                                                                                <fo:inline font-weight="bold"> 
    322342                                                                                                        <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:elevKelly/@uom"/> 
     
    334354                                                                        </fo:table-cell> 
    335355                                                                        <fo:table-cell vertical-align="middle"> 
    336                                                                                 <fo:block font-size="11pt" font-weight="bold">Water depth MSL <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom)"> 
     356                                                                                <fo:block font-size="11pt" font-weight="bold"> 
     357                                                                                        <fo:basic-link external-destination="url({$url_waterDepth})">Water depth MSL </fo:basic-link> 
     358                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom)"> 
    337359                                                                                                <fo:inline> 
    338360                                                                                                        <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:waterDepth/@uom"/> 
     
    353375                                                                        <fo:table-cell vertical-align="middle"> 
    354376                                                                                <fo:block font-weight="bold"> 
    355                                                                                         <fo:basic-link external-destination="url({$urlRDS})" font-weight="bold">Tight well</fo:basic-link>: </fo:block> 
     377                                                                                        <fo:basic-link external-destination="url({$url_tightWell})" font-weight="bold">Tight well</fo:basic-link>: </fo:block> 
    356378                                                                        </fo:table-cell> 
    357379                                                                        <fo:table-cell vertical-align="middle"> 
     
    363385                                                                        <fo:table-cell vertical-align="middle"> 
    364386                                                                                <fo:block font-size="11pt" font-weight="bold"> 
    365                                                                                         <fo:basic-link external-destination="url({$urlRDS})" font-weight="bold">High pressure - High temperature</fo:basic-link>  </fo:block> 
     387                                                                                        <fo:basic-link external-destination="url({$url_hpht})" font-weight="bold">High pressure - High temperature</fo:basic-link>  </fo:block> 
    366388                                                                        </fo:table-cell> 
    367389                                                                        <fo:table-cell vertical-align="middle"> 
     
    375397                                                                        <fo:table-cell vertical-align="middle"> 
    376398                                                                                <fo:block font-weight="bold"> 
    377                                                                                         <fo:basic-link external-destination="url({$urlRDS})">Pressure </fo:basic-link> 
     399                                                                                        <fo:basic-link external-destination="url({$url_avgPresBH})">Pressure </fo:basic-link> 
    378400                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgPresBH/@uom)"> 
    379401                                                                                                <fo:inline> 
     
    393415                                                                        <fo:table-cell vertical-align="middle"> 
    394416                                                                                <fo:block font-size="11pt" font-weight="bold"> 
    395                                                                                         <fo:basic-link external-destination="url({$urlRDS})">Temperature </fo:basic-link> 
     417                                                                                        <fo:basic-link external-destination="url({$url_expTempBH})">Temperature </fo:basic-link> 
    396418                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH/@uom)"> 
    397419                                                                                                <fo:inline> 
     
    412434                                                                <fo:table-row> 
    413435                                                                        <fo:table-cell vertical-align="middle"> 
    414                                                                                 <fo:block font-weight="bold">Fixed rig</fo:block> 
     436                                                                                <fo:block font-weight="bold"> 
     437                                                                                        <fo:basic-link external-destination="url({$url_fixedRig})">Fixed rig</fo:basic-link> 
     438                                                                                </fo:block> 
    415439                                                                        </fo:table-cell> 
    416440                                                                        <fo:table-cell vertical-align="middle"> 
     
    11071131                                                        <xsl:variable name="url_manufacturer"> 
    11081132                                                                <xsl:value-of select="$element_bitRecord//xsd:element[@name='manufacturer']/@sawsdl:modelReference"/> 
     1133                                                        </xsl:variable> 
     1134                                                        <xsl:variable name="url_eTimOpBit"> 
     1135                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='eTimOpBit']/@sawsdl:modelReference"/> 
     1136                                                        </xsl:variable> 
     1137                                                        <xsl:variable name="url_mdHoleStart"> 
     1138                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStart']/@sawsdl:modelReference"/> 
     1139                                                        </xsl:variable> 
     1140                                                        <xsl:variable name="url_mdHoleStop"> 
     1141                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdHoleStop']/@sawsdl:modelReference"/> 
     1142                                                        </xsl:variable> 
     1143                                                        <xsl:variable name="url_ropAv"> 
     1144                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='ropAv']/@sawsdl:modelReference"/> 
     1145                                                        </xsl:variable> 
     1146                                                        <xsl:variable name="url_mdTotHoleMade"> 
     1147                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='mdTotHoleMade']/@sawsdl:modelReference"/> 
     1148                                                        </xsl:variable> 
     1149                                                        <xsl:variable name="url_totHrsDrilled"> 
     1150                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totHrsDrilled']/@sawsdl:modelReference"/> 
     1151                                                        </xsl:variable> 
     1152                                                        <xsl:variable name="url_totRop"> 
     1153                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='totRop']/@sawsdl:modelReference"/> 
     1154                                                        </xsl:variable> 
     1155                                                        <xsl:variable name="url_dullGrade"> 
     1156                                                                <xsl:value-of select="$element_bitRecord/bitRun//xsd:element[@name='dullGrade']/@sawsdl:modelReference"/> 
    11091157                                                        </xsl:variable> 
    11101158                                                        <fo:table width="100%"> 
     
    11711219                                                                                                                        </fo:table-cell> 
    11721220                                                                                                                        <fo:table-cell> 
    1173                                                                                                                                 <fo:block>Hours drilled</fo:block> 
     1221                                                                                                                                <fo:block> 
     1222                                                                                                                                        <fo:basic-link external-destination="url({$url_eTimOpBit})">Hours drilled</fo:basic-link> 
     1223                                                                                                                                </fo:block> 
    11741224                                                                                                                                <fo:block> 
    11751225                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:eTimOpBit/@uom)"> 
     
    11811231                                                                                                                        </fo:table-cell> 
    11821232                                                                                                                        <fo:table-cell> 
    1183                                                                                                                                 <fo:block>MD Start</fo:block> 
     1233                                                                                                                                <fo:block> 
     1234                                                                                                                                        <fo:basic-link external-destination="url({$url_mdHoleStart})">MD Start</fo:basic-link> 
     1235                                                                                                                                </fo:block> 
    11841236                                                                                                                                <fo:block> 
    11851237                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStart/@uom)"> 
     
    11911243                                                                                                                        </fo:table-cell> 
    11921244                                                                                                                        <fo:table-cell> 
    1193                                                                                                                                 <fo:block>MD end</fo:block> 
     1245                                                                                                                                <fo:block> 
     1246                                                                                                                                        <fo:basic-link external-destination="url({$url_mdHoleStop})">MD end</fo:basic-link> 
     1247                                                                                                                                </fo:block> 
    11941248                                                                                                                                <fo:block> 
    11951249                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> 
     
    12011255                                                                                                                        </fo:table-cell> 
    12021256                                                                                                                        <fo:table-cell> 
    1203                                                                                                                                 <fo:block>Hole made (run)</fo:block> 
     1257                                                                                                                                <fo:block> 
     1258                                                                                                                                        <fo:basic-link external-destination="url({$url_mdHoleStop})">Hole made (last 24H)</fo:basic-link> 
     1259                                                                                                                                </fo:block> 
    12041260                                                                                                                                <fo:block> 
    12051261                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> 
     
    12111267                                                                                                                        </fo:table-cell> 
    12121268                                                                                                                        <fo:table-cell> 
    1213                                                                                                                                 <fo:block>Hours drilled (run)</fo:block> 
    1214                                                                                                                                 <fo:block> 
    1215                                                                                                                                         <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom)"> 
    1216                                                                                                                                                 <fo:inline> 
    1217                                                                                                                                                         <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdHoleStop/@uom"/> 
    1218                                                                                                                                                 </fo:inline> 
    1219                                                                                                                                         </xsl:if> 
    1220                                                                                                                                 </fo:block> 
    1221                                                                                                                         </fo:table-cell> 
    1222                                                                                                                         <fo:table-cell> 
    1223                                                                                                                                 <fo:block>ROP</fo:block> 
     1269                                                                                                                                <fo:block> 
     1270                                                                                                                                        <fo:basic-link external-destination="url({$url_eTimOpBit})">Hours drilled (last 24H)</fo:basic-link> 
     1271                                                                                                                                </fo:block> 
     1272                                                                                                                        </fo:table-cell> 
     1273                                                                                                                        <fo:table-cell> 
     1274                                                                                                                                <fo:block> 
     1275                                                                                                                                        <fo:basic-link external-destination="url({$url_ropAv})">ROP</fo:basic-link> 
     1276                                                                                                                                </fo:block> 
    12241277                                                                                                                                <fo:block> 
    12251278                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropAv/@uom)"> 
     
    12311284                                                                                                                        </fo:table-cell> 
    12321285                                                                                                                        <fo:table-cell> 
    1233                                                                                                                                 <fo:block>Total hole made</fo:block> 
     1286                                                                                                                                <fo:block> 
     1287                                                                                                                                        <fo:basic-link external-destination="url({$url_mdTotHoleMade})">Total hole made</fo:basic-link> 
     1288                                                                                                                                </fo:block> 
    12341289                                                                                                                                <fo:block> 
    12351290                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:mdTotHoleMade/@uom)"> 
     
    12411296                                                                                                                        </fo:table-cell> 
    12421297                                                                                                                        <fo:table-cell> 
    1243                                                                                                                                 <fo:block>Total hours drilled</fo:block> 
     1298                                                                                                                                <fo:block> 
     1299                                                                                                                                        <fo:basic-link external-destination="url({$url_totHrsDrilled})">Total hours drilled</fo:basic-link> 
     1300                                                                                                                                </fo:block> 
    12441301                                                                                                                                <fo:block> 
    12451302                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totHrsDrilled/@uom)"> 
     
    12511308                                                                                                                        </fo:table-cell> 
    12521309                                                                                                                        <fo:table-cell> 
    1253                                                                                                                                 <fo:block>Total ROP</fo:block> 
    1254                                                                                                                                 <fo:block> 
    1255                                                                                                                                         <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom)"> 
     1310                                                                                                                                <fo:block> 
     1311                                                                                                                                        <fo:basic-link external-destination="url({$url_totRop})">Total ROP</fo:basic-link> 
     1312                                                                                                                                </fo:block> 
     1313                                                                                                                                <fo:block> 
     1314                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom)"> 
    12561315                                                                                                                                                <fo:inline> 
    1257                                                                                                                                                         <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:ropMx/@uom"/> 
     1316                                                                                                                                                        <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:bitRecord/witsml:bitRun/witsml:totRop/@uom"/> 
    12581317                                                                                                                                                </fo:inline> 
    12591318                                                                                                                                        </xsl:if> 
     
    12611320                                                                                                                        </fo:table-cell> 
    12621321                                                                                                                        <fo:table-cell> 
    1263                                                                                                                                 <fo:block>Dull grade</fo:block> 
     1322                                                                                                                                <fo:block> 
     1323                                                                                                                                        <fo:basic-link external-destination="url({$url_dullGrade})">Dull grade</fo:basic-link> 
     1324                                                                                                                                </fo:block> 
    12641325                                                                                                                        </fo:table-cell> 
    12651326                                                                                                                </fo:table-row> 
     
    13761437                                                                                                                                <fo:table-cell> 
    13771438                                                                                                                                        <fo:block> 
    1378                                                                                                                                                 <xsl:if test="string(witsml:bitRun/witsml:ropMx)"> 
    1379                                                                                                                                                         <fo:inline> 
    1380                                                                                                                                                                 <xsl:value-of select="witsml:bitRun/witsml:ropMx"/> 
     1439                                                                                                                                                <xsl:if test="string(witsml:bitRun/witsml:totRop)"> 
     1440                                                                                                                                                        <fo:inline> 
     1441                                                                                                                                                                <xsl:value-of select="witsml:bitRun/witsml:totRop"/> 
    13811442                                                                                                                                                        </fo:inline> 
    13821443                                                                                                                                                </xsl:if> 
     
    14061467                                        <xsl:if test="count(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing) &gt; 0"> 
    14071468                                                <fo:block> 
     1469                                                        <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='casing_liner_tubing']/xsd:sequence"/> 
     1470                                                        <xsl:variable name="url_type"> 
     1471                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='type']/@sawsdl:modelReference"/> 
     1472                                                        </xsl:variable> 
     1473                                                        <xsl:variable name="url_casingType"> 
     1474                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='casingType']/@sawsdl:modelReference"/> 
     1475                                                        </xsl:variable> 
     1476                                                        <xsl:variable name="url_dTimStart"> 
     1477                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/> 
     1478                                                        </xsl:variable> 
     1479                                                        <xsl:variable name="url_dTimEnd"> 
     1480                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 
     1481                                                        </xsl:variable> 
     1482                                                        <xsl:variable name="url_od"> 
     1483                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='od']/@sawsdl:modelReference"/> 
     1484                                                        </xsl:variable> 
     1485                                                        <xsl:variable name="url_id"> 
     1486                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='id']/@sawsdl:modelReference"/> 
     1487                                                        </xsl:variable> 
     1488                                                        <xsl:variable name="url_weight"> 
     1489                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='weight']/@sawsdl:modelReference"/> 
     1490                                                        </xsl:variable> 
     1491                                                        <xsl:variable name="url_grade"> 
     1492                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='grade']/@sawsdl:modelReference"/> 
     1493                                                        </xsl:variable> 
     1494                                                        <xsl:variable name="url_connection"> 
     1495                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='connection']/@sawsdl:modelReference"/> 
     1496                                                        </xsl:variable> 
     1497                                                        <xsl:variable name="url_length"> 
     1498                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='length']/@sawsdl:modelReference"/> 
     1499                                                        </xsl:variable> 
     1500                                                        <xsl:variable name="url_mdTop"> 
     1501                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='mdTop']/@sawsdl:modelReference"/> 
     1502                                                        </xsl:variable> 
     1503                                                        <xsl:variable name="url_mdBottom"> 
     1504                                                                <xsl:value-of select="$element_pipe//xsd:element[@name='mdBottom']/@sawsdl:modelReference"/> 
     1505                                                        </xsl:variable> 
     1506                                                        <xsl:variable name="url_description"> 
     1507                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='description']/@sawsdl:modelReference"/> 
     1508                                                        </xsl:variable> 
    14081509                                                        <fo:leader rule-thickness="2px" leader-length="100%" leader-pattern="rule"/> 
    14091510                                                        <fo:leader/> 
     
    14421543                                                                                                                <fo:table-row font-weight="bold"> 
    14431544                                                                                                                        <fo:table-cell> 
    1444                                                                                                                                 <fo:block>Type of pipe</fo:block> 
    1445                                                                                                                         </fo:table-cell> 
    1446                                                                                                                         <fo:table-cell> 
    1447                                                                                                                                 <fo:block>Casing type</fo:block> 
    1448                                                                                                                         </fo:table-cell> 
    1449                                                                                                                         <fo:table-cell> 
    1450                                                                                                                                 <fo:block>Run time</fo:block> 
    1451                                                                                                                         </fo:table-cell> 
    1452                                                                                                                         <fo:table-cell> 
    1453                                                                                                                                 <fo:block>Nominal outside diameter</fo:block> 
     1545                                                                                                                                <fo:block> 
     1546                                                                                                                                        <fo:basic-link external-destination="url({$url_type})">Type of pipe</fo:basic-link> 
     1547                                                                                                                                </fo:block> 
     1548                                                                                                                        </fo:table-cell> 
     1549                                                                                                                        <fo:table-cell> 
     1550                                                                                                                                <fo:block> 
     1551                                                                                                                                        <fo:basic-link external-destination="url({$url_casingType})">Casing type</fo:basic-link> 
     1552                                                                                                                                </fo:block> 
     1553                                                                                                                        </fo:table-cell> 
     1554                                                                                                                        <fo:table-cell> 
     1555                                                                                                                                <fo:block> 
     1556                                                                                                                                        <fo:basic-link external-destination="url({$url_dTimStart})">Run time</fo:basic-link> 
     1557                                                                                                                                </fo:block> 
     1558                                                                                                                        </fo:table-cell> 
     1559                                                                                                                        <fo:table-cell> 
     1560                                                                                                                                <fo:block> 
     1561                                                                                                                                        <fo:basic-link external-destination="url({$url_od})">Nominal outside diameter</fo:basic-link> 
     1562                                                                                                                                </fo:block> 
    14541563                                                                                                                                <fo:block> 
    14551564                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:od/@uom)"> 
     
    14611570                                                                                                                        </fo:table-cell> 
    14621571                                                                                                                        <fo:table-cell> 
    1463                                                                                                                                 <fo:block>Nominal inside diameter</fo:block> 
     1572                                                                                                                                <fo:block> 
     1573                                                                                                                                        <fo:basic-link external-destination="url({$url_id})">Nominal inside diameter</fo:basic-link> 
     1574                                                                                                                                </fo:block> 
    14641575                                                                                                                                <fo:block> 
    14651576                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:id/@uom)"> 
     
    14711582                                                                                                                        </fo:table-cell> 
    14721583                                                                                                                        <fo:table-cell> 
    1473                                                                                                                                 <fo:block>Nominal Weight</fo:block> 
     1584                                                                                                                                <fo:block> 
     1585                                                                                                                                        <fo:basic-link external-destination="url({$url_weight})">Nominal Weight</fo:basic-link> 
     1586                                                                                                                                </fo:block> 
    14741587                                                                                                                                <fo:block> 
    14751588                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:weight/@uom)"> 
     
    14811594                                                                                                                        </fo:table-cell> 
    14821595                                                                                                                        <fo:table-cell> 
    1483                                                                                                                                 <fo:block>Nominal Grade</fo:block> 
    1484                                                                                                                         </fo:table-cell> 
    1485                                                                                                                         <fo:table-cell> 
    1486                                                                                                                                 <fo:block>Nominal Connection</fo:block> 
    1487                                                                                                                         </fo:table-cell> 
    1488                                                                                                                         <fo:table-cell> 
    1489                                                                                                                                 <fo:block>Length</fo:block> 
     1596                                                                                                                                <fo:block> 
     1597                                                                                                                                        <fo:basic-link external-destination="url({$url_grade})">Nominal Grade</fo:basic-link> 
     1598                                                                                                                                </fo:block> 
     1599                                                                                                                        </fo:table-cell> 
     1600                                                                                                                        <fo:table-cell> 
     1601                                                                                                                                <fo:block> 
     1602                                                                                                                                        <fo:basic-link external-destination="url({$url_connection})">Nominal Connection</fo:basic-link> 
     1603                                                                                                                                </fo:block> 
     1604                                                                                                                        </fo:table-cell> 
     1605                                                                                                                        <fo:table-cell> 
     1606                                                                                                                                <fo:block> 
     1607                                                                                                                                        <fo:basic-link external-destination="url({$url_length})">Length</fo:basic-link> 
     1608                                                                                                                                </fo:block> 
    14901609                                                                                                                                <fo:block> 
    14911610                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom)"> 
     
    14971616                                                                                                                        </fo:table-cell> 
    14981617                                                                                                                        <fo:table-cell> 
    1499                                                                                                                                 <fo:block>MD Top/Hangar</fo:block> 
     1618                                                                                                                                <fo:block> 
     1619                                                                                                                                        <fo:basic-link external-destination="url({$url_mdTop})">MD Top/Hangar</fo:basic-link> 
     1620                                                                                                                                </fo:block> 
    15001621                                                                                                                                <fo:block> 
    15011622                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdTop/@uom)"> 
     
    15071628                                                                                                                        </fo:table-cell> 
    15081629                                                                                                                        <fo:table-cell> 
    1509                                                                                                                                 <fo:block>MD Bottom/Shoe</fo:block> 
     1630                                                                                                                                <fo:block> 
     1631                                                                                                                                        <fo:basic-link external-destination="url({$url_mdBottom})">MD Bottom/Shoe</fo:basic-link> 
     1632                                                                                                                                </fo:block> 
    15101633                                                                                                                                <fo:block> 
    15111634                                                                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:casing_liner_tubing/witsml:mdBottom/@uom)"> 
     
    15171640                                                                                                                        </fo:table-cell> 
    15181641                                                                                                                        <fo:table-cell  text-align="left"> 
    1519                                                                                                                                 <fo:block>Description</fo:block> 
     1642                                                                                                                                <fo:block> 
     1643                                                                                                                                        <fo:basic-link external-destination="url({$url_description})">Description</fo:basic-link> 
     1644                                                                                                                                </fo:block> 
    15201645                                                                                                                        </fo:table-cell> 
    15211646                                                                                                                </fo:table-row> 
     
    15441669                                                                                                                                <fo:table-cell> 
    15451670                                                                                                                                        <fo:block> 
    1546                                                                                                                                                 <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T'))"> 
    1547                                                                                                                                                         <fo:inline> 
    1548                                                                                                                                                                 <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimEnd, 0, 17), 'T')"/> 
     1671                                                                                                                                                <xsl:if test="string(substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T'))"> 
     1672                                                                                                                                                        <fo:inline> 
     1673                                                                                                                                                                <xsl:value-of select="substring-after(substring(witsml:casing_liner_tubing_run/witsml:dTimStart, 0, 17), 'T')"/> 
    15491674                                                                                                                                                        </fo:inline> 
    15501675                                                                                                                                                </xsl:if> 
     
    16451770                                        <xsl:if test="count(/witsml:drillReports/witsml:drillReport/witsml:cementStage) &gt; 0"> 
    16461771                                                <fo:block break-before="page"> 
     1772                                                        <xsl:variable name="element_cement" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cs_cementStage']/xsd:sequence"/> 
     1773                                                        <xsl:variable name="url_dTimPumpStart"> 
     1774                                                                <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpStart']/@sawsdl:modelReference"/> 
     1775                                                        </xsl:variable> 
     1776                                                        <xsl:variable name="url_dTimPumpEnd"> 
     1777                                                                <xsl:value-of select="$element_cement//xsd:element[@name='dTimPumpEnd']/@sawsdl:modelReference"/> 
     1778                                                        </xsl:variable> 
     1779                                                        <xsl:variable name="url_jobType"> 
     1780                                                                <xsl:value-of select="$element_cement//xsd:element[@name='jobType']/@sawsdl:modelReference"/> 
     1781                                                        </xsl:variable> 
     1782                                                        <xsl:variable name="url_casingStrDia"> 
     1783                                                                <xsl:value-of select="$element_cement//xsd:element[@name='casingStrDia']/@sawsdl:modelReference"/> 
     1784                                                        </xsl:variable> 
     1785                                                        <xsl:variable name="url_topPlug"> 
     1786                                                                <xsl:value-of select="$element_cement//xsd:element[@name='topPlug']/@sawsdl:modelReference"/> 
     1787                                                        </xsl:variable> 
     1788                                                        <xsl:variable name="url_botPlug"> 
     1789                                                                <xsl:value-of select="$element_cement//xsd:element[@name='botPlug']/@sawsdl:modelReference"/> 
     1790                                                        </xsl:variable> 
     1791                                                        <xsl:variable name="url_plugBumped"> 
     1792                                                                <xsl:value-of select="$element_cement//xsd:element[@name='plugBumped']/@sawsdl:modelReference"/> 
     1793                                                        </xsl:variable> 
     1794                                                        <xsl:variable name="url_presBump"> 
     1795                                                                <xsl:value-of select="$element_cement//xsd:element[@name='presBump']/@sawsdl:modelReference"/> 
     1796                                                        </xsl:variable> 
     1797                                                        <xsl:variable name="url_floatHeld"> 
     1798                                                                <xsl:value-of select="$element_cement//xsd:element[@name='floatHeld']/@sawsdl:modelReference"/> 
     1799                                                        </xsl:variable> 
     1800                                                        <xsl:variable name="url_eTimPresHeld"> 
     1801                                                                <xsl:value-of select="$element_cement//xsd:element[@name='eTimPresHeld']/@sawsdl:modelReference"/> 
     1802                                                        </xsl:variable> 
     1803                                                        <xsl:variable name="url_annFlowAfter"> 
     1804                                                                <xsl:value-of select="$element_cement//xsd:element[@name='annFlowAfter']/@sawsdl:modelReference"/> 
     1805                                                        </xsl:variable> 
     1806                                                        <xsl:variable name="url_volReturns"> 
     1807                                                                <xsl:value-of select="$element_cement//xsd:element[@name='volReturns']/@sawsdl:modelReference"/> 
     1808                                                        </xsl:variable> 
     1809                                                        <xsl:variable name="url_reciprocated"> 
     1810                                                                <xsl:value-of select="$element_cement//xsd:element[@name='reciprocated']/@sawsdl:modelReference"/> 
     1811                                                        </xsl:variable> 
     1812                                                        <xsl:variable name="url_rotated"> 
     1813                                                                <xsl:value-of select="$element_cement//xsd:element[@name='rotated']/@sawsdl:modelReference"/> 
     1814                                                        </xsl:variable> 
     1815                                                        <xsl:variable name="url_comments"> 
     1816                                                                <xsl:value-of select="$element_cement//xsd:element[@name='comments']/@sawsdl:modelReference"/> 
     1817                                                        </xsl:variable> 
    16471818                                                        <xsl:for-each select="/witsml:drillReports/witsml:drillReport/witsml:cementStage"> 
    16481819                                                                <fo:block> 
     
    16861857                                                                                                                                <fo:table-row font-weight="bold"> 
    16871858                                                                                                                                        <fo:table-cell> 
    1688                                                                                                                                                 <fo:block>Start time</fo:block> 
    1689                                                                                                                                         </fo:table-cell> 
    1690                                                                                                                                         <fo:table-cell> 
    1691                                                                                                                                                 <fo:block>End time</fo:block> 
    1692                                                                                                                                         </fo:table-cell> 
    1693                                                                                                                                         <fo:table-cell> 
    1694                                                                                                                                                 <fo:block>Job type</fo:block> 
    1695                                                                                                                                         </fo:table-cell> 
    1696                                                                                                                                         <fo:table-cell> 
    1697                                                                                                                                                 <fo:block>Casing string diameter</fo:block> 
     1859                                                                                                                                                <fo:block> 
     1860                                                                                                                                                        <fo:basic-link external-destination="url({$url_dTimPumpStart})">Start time</fo:basic-link> 
     1861                                                                                                                                                </fo:block> 
     1862                                                                                                                                        </fo:table-cell> 
     1863                                                                                                                                        <fo:table-cell> 
     1864                                                                                                                                                <fo:block> 
     1865                                                                                                                                                        <fo:basic-link external-destination="url({$url_dTimPumpEnd})">End time</fo:basic-link> 
     1866                                                                                                                                                </fo:block> 
     1867                                                                                                                                        </fo:table-cell> 
     1868                                                                                                                                        <fo:table-cell> 
     1869                                                                                                                                                <fo:block> 
     1870                                                                                                                                                        <fo:basic-link external-destination="url({$url_jobType})">Job type</fo:basic-link> 
     1871                                                                                                                                                </fo:block> 
     1872                                                                                                                                        </fo:table-cell> 
     1873                                                                                                                                        <fo:table-cell> 
     1874                                                                                                                                                <fo:block> 
     1875                                                                                                                                                        <fo:basic-link external-destination="url({$url_casingStrDia})">Casing string diameter</fo:basic-link> 
     1876                                                                                                                                                </fo:block> 
    16981877                                                                                                                                                <fo:block> 
    16991878                                                                                                                                                        <xsl:if test="string(witsml:casingStrDia/@uom)"> 
     
    17051884                                                                                                                                        </fo:table-cell> 
    17061885                                                                                                                                        <fo:table-cell> 
    1707                                                                                                                                                 <fo:block>Top plug used</fo:block> 
    1708                                                                                                                                         </fo:table-cell> 
    1709                                                                                                                                         <fo:table-cell> 
    1710                                                                                                                                                 <fo:block>Bottom plug used</fo:block> 
    1711                                                                                                                                         </fo:table-cell> 
    1712                                                                                                                                         <fo:table-cell> 
    1713                                                                                                                                                 <fo:block>Plug bumped</fo:block> 
    1714                                                                                                                                         </fo:table-cell> 
    1715                                                                                                                                         <fo:table-cell> 
    1716                                                                                                                                                 <fo:block>Plug bump pressure</fo:block> 
     1886                                                                                                                                                <fo:block> 
     1887                                                                                                                                                        <fo:basic-link external-destination="url({$url_topPlug})">Top plug used</fo:basic-link> 
     1888                                                                                                                                                </fo:block> 
     1889                                                                                                                                        </fo:table-cell> 
     1890                                                                                                                                        <fo:table-cell> 
     1891                                                                                                                                                <fo:block> 
     1892                                                                                                                                                        <fo:basic-link external-destination="url({$url_botPlug})">Bottom plug used</fo:basic-link> 
     1893                                                                                                                                                </fo:block> 
     1894                                                                                                                                        </fo:table-cell> 
     1895                                                                                                                                        <fo:table-cell> 
     1896                                                                                                                                                <fo:block> 
     1897                                                                                                                                                        <fo:basic-link external-destination="url({$url_plugBumped})">Plug bumped</fo:basic-link> 
     1898                                                                                                                                                </fo:block> 
     1899                                                                                                                                        </fo:table-cell> 
     1900                                                                                                                                        <fo:table-cell> 
     1901                                                                                                                                                <fo:block> 
     1902                                                                                                                                                        <fo:basic-link external-destination="url({$url_presBump})">Plug bump pressure</fo:basic-link> 
     1903                                                                                                                                                </fo:block> 
    17171904                                                                                                                                                <fo:block> 
    17181905                                                                                                                                                        <xsl:if test="string(witsml:presBump/@uom)"> 
     
    17241911                                                                                                                                        </fo:table-cell> 
    17251912                                                                                                                                        <fo:table-cell> 
    1726                                                                                                                                                 <fo:block>Float held</fo:block> 
    1727                                                                                                                                         </fo:table-cell> 
    1728                                                                                                                                         <fo:table-cell> 
    1729                                                                                                                                                 <fo:block>Pressure release time</fo:block> 
    1730                                                                                                                                         </fo:table-cell> 
    1731                                                                                                                                         <fo:table-cell> 
    1732                                                                                                                                                 <fo:block>Full returns</fo:block> 
    1733                                                                                                                                         </fo:table-cell> 
    1734                                                                                                                                         <fo:table-cell> 
    1735                                                                                                                                                 <fo:block>Cement volume returns</fo:block> 
     1913                                                                                                                                                <fo:block> 
     1914                                                                                                                                                        <fo:basic-link external-destination="url({$url_floatHeld})">Float held</fo:basic-link> 
     1915                                                                                                                                                </fo:block> 
     1916                                                                                                                                        </fo:table-cell> 
     1917                                                                                                                                        <fo:table-cell> 
     1918                                                                                                                                                <fo:block> 
     1919                                                                                                                                                        <fo:basic-link external-destination="url({$url_eTimPresHeld})">Pressure release time</fo:basic-link> 
     1920                                                                                                                                                </fo:block> 
     1921                                                                                                                                        </fo:table-cell> 
     1922                                                                                                                                        <fo:table-cell> 
     1923                                                                                                                                                <fo:block> 
     1924                                                                                                                                                        <fo:basic-link external-destination="url({$url_annFlowAfter})">Full returns</fo:basic-link> 
     1925                                                                                                                                                </fo:block> 
     1926                                                                                                                                        </fo:table-cell> 
     1927                                                                                                                                        <fo:table-cell> 
     1928                                                                                                                                                <fo:block> 
     1929                                                                                                                                                        <fo:basic-link external-destination="url({$url_volReturns})">Cement volume returns</fo:basic-link> 
     1930                                                                                                                                                </fo:block> 
    17361931                                                                                                                                                <fo:block> 
    17371932                                                                                                                                                        <xsl:if test="string(witsml:volReturns/@uom)"> 
     
    17431938                                                                                                                                        </fo:table-cell> 
    17441939                                                                                                                                        <fo:table-cell> 
    1745                                                                                                                                                 <fo:block>Reciprocated</fo:block> 
    1746                                                                                                                                         </fo:table-cell> 
    1747                                                                                                                                         <fo:table-cell> 
    1748                                                                                                                                                 <fo:block>Rotated</fo:block> 
     1940                                                                                                                                                <fo:block> 
     1941                                                                                                                                                        <fo:basic-link external-destination="url({$url_reciprocated})">Reciprocated</fo:basic-link> 
     1942                                                                                                                                                </fo:block> 
     1943                                                                                                                                        </fo:table-cell> 
     1944                                                                                                                                        <fo:table-cell> 
     1945                                                                                                                                                <fo:block> 
     1946                                                                                                                                                        <fo:basic-link external-destination="url({$url_rotated})">Rotated</fo:basic-link> 
     1947                                                                                                                                                </fo:block> 
    17491948                                                                                                                                        </fo:table-cell> 
    17501949                                                                                                                                        <fo:table-cell  text-align="left"> 
    1751                                                                                                                                                 <fo:block>Comments</fo:block> 
     1950                                                                                                                                                <fo:block> 
     1951                                                                                                                                                        <fo:basic-link external-destination="url({$url_comments})">Comments</fo:basic-link> 
     1952                                                                                                                                                </fo:block> 
    17521953                                                                                                                                        </fo:table-cell> 
    17531954                                                                                                                                </fo:table-row> 
     
    18912092                                                                                        </fo:table-row> 
    18922093                                                                                        <fo:table-row> 
     2094                                                                                                <xsl:variable name="element_cementingFluid" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='cementingFluid']/xsd:sequence"/> 
     2095                                                                                                <xsl:variable name="url_typeFluid"> 
     2096                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='mudClass']/@sawsdl:modelReference"/> 
     2097                                                                                                </xsl:variable> 
     2098                                                                                                <xsl:variable name="url_descFluid"> 
     2099                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='descFluid']/@sawsdl:modelReference"/> 
     2100                                                                                                </xsl:variable> 
     2101                                                                                                <xsl:variable name="url_density"> 
     2102                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='density']/@sawsdl:modelReference"/> 
     2103                                                                                                </xsl:variable> 
     2104                                                                                                <xsl:variable name="url_volPumped"> 
     2105                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='volPumped']/@sawsdl:modelReference"/> 
     2106                                                                                                </xsl:variable> 
     2107                                                                                                <xsl:variable name="url_yp"> 
     2108                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='yp']/@sawsdl:modelReference"/> 
     2109                                                                                                </xsl:variable> 
     2110                                                                                                <xsl:variable name="url_ratioMixWater"> 
     2111                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='ratioMixWater']/@sawsdl:modelReference"/> 
     2112                                                                                                </xsl:variable> 
     2113                                                                                                <xsl:variable name="url_pcFreeWater"> 
     2114                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='pcFreeWater']/@sawsdl:modelReference"/> 
     2115                                                                                                </xsl:variable> 
     2116                                                                                                <xsl:variable name="url_eTimThickening"> 
     2117                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='eTimThickening']/@sawsdl:modelReference"/> 
     2118                                                                                                </xsl:variable> 
     2119                                                                                                <xsl:variable name="url_comments"> 
     2120                                                                                                        <xsl:value-of select="$element_cementingFluid//xsd:element[@name='comments']/@sawsdl:modelReference"/> 
     2121                                                                                                </xsl:variable> 
    18932122                                                                                                <fo:table-cell> 
    18942123                                                                                                        <fo:block> 
     
    19062135                                                                                                                                <fo:table-row font-weight="bold"> 
    19072136                                                                                                                                        <fo:table-cell> 
    1908                                                                                                                                                 <fo:block>Fluid type</fo:block> 
    1909                                                                                                                                         </fo:table-cell> 
    1910                                                                                                                                         <fo:table-cell> 
    1911                                                                                                                                                 <fo:block>Volume pumped</fo:block> 
     2137                                                                                                                                                <fo:block> 
     2138                                                                                                                                                <fo:basic-link external-destination="url({$url_typeFluid})">Fluid type</fo:basic-link></fo:block> 
     2139                                                                                                                                        </fo:table-cell> 
     2140                                                                                                                                        <fo:table-cell> 
     2141                                                                                                                                                <fo:block> 
     2142                                                                                                                                                <fo:basic-link external-destination="url({$url_volPumped})">Volume pumped</fo:basic-link></fo:block> 
    19122143                                                                                                                                                <fo:block> 
    19132144                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:volPumped/@uom)"> 
     
    19192150                                                                                                                                        </fo:table-cell> 
    19202151                                                                                                                                        <fo:table-cell> 
    1921                                                                                                                                                 <fo:block>Fluid densitiy</fo:block> 
     2152                                                                                                                                                <fo:block> 
     2153                                                                                                                                                <fo:basic-link external-destination="url({$url_density})">Fluid densitiy</fo:basic-link></fo:block> 
    19222154                                                                                                                                                <fo:block> 
    19232155                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:density/@uom)"> 
     
    19292161                                                                                                                                        </fo:table-cell> 
    19302162                                                                                                                                        <fo:table-cell> 
    1931                                                                                                                                                 <fo:block>Yield point</fo:block> 
     2163                                                                                                                                                <fo:block> 
     2164                                                                                                                                                <fo:basic-link external-destination="url({$url_yp})">Yield point</fo:basic-link></fo:block> 
    19322165                                                                                                                                                <fo:block> 
    19332166                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:yp/@uom)"> 
     
    19392172                                                                                                                                        </fo:table-cell> 
    19402173                                                                                                                                        <fo:table-cell> 
    1941                                                                                                                                                 <fo:block>Mix water ratio</fo:block> 
     2174                                                                                                                                                <fo:block> 
     2175                                                                                                                                                <fo:basic-link external-destination="url({$url_ratioMixWater})">Mix water ratio</fo:basic-link></fo:block> 
    19422176                                                                                                                                                <fo:block> 
    19432177                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:ratioMixWater/@uom)"> 
     
    19492183                                                                                                                                        </fo:table-cell> 
    19502184                                                                                                                                        <fo:table-cell> 
    1951                                                                                                                                                 <fo:block>Free water</fo:block> 
     2185                                                                                                                                                <fo:block> 
     2186                                                                                                                                                <fo:basic-link external-destination="url({$url_pcFreeWater})">Free water</fo:basic-link></fo:block> 
    19522187                                                                                                                                                <fo:block> 
    19532188                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:pcFreeWater/@uom)"> 
     
    19592194                                                                                                                                        </fo:table-cell> 
    19602195                                                                                                                                        <fo:table-cell> 
    1961                                                                                                                                                 <fo:block>Thick time</fo:block> 
     2196                                                                                                                                                <fo:block> 
     2197                                                                                                                                                <fo:basic-link external-destination="url({$url_eTimThickening})">Thickening time</fo:basic-link></fo:block> 
    19622198                                                                                                                                                <fo:block> 
    19632199                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:eTimThickening/@uom)"> 
     
    19692205                                                                                                                                        </fo:table-cell> 
    19702206                                                                                                                                        <fo:table-cell text-align="left"> 
    1971                                                                                                                                                 <fo:block>Fluid Description</fo:block> 
     2207                                                                                                                                                <fo:block> 
     2208                                                                                                                                                <fo:basic-link external-destination="url({$url_descFluid})">Fluid Description</fo:basic-link></fo:block> 
    19722209                                                                                                                                        </fo:table-cell> 
    19732210                                                                                                                                        <fo:table-cell  text-align="left"> 
    1974                                                                                                                                                 <fo:block>Comments</fo:block> 
     2211                                                                                                                                                <fo:block> 
     2212                                                                                                                                                <fo:basic-link external-destination="url({$url_comments})">Comments</fo:basic-link></fo:block> 
    19752213                                                                                                                                        </fo:table-cell> 
    19762214                                                                                                                                </fo:table-row>