Show
Ignore:
Timestamp:
05/25/11 12:14:20 (13 years ago)
Author:
yaolu
Message:

done the changes according to the powerpoint.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • projects/DailyDrillingReport_1.2/XML/PDFreport/ddr_PDFReport_transformation_2011_03_09.xsl

    r230 r245  
    152152                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgPresBH']/@sawsdl:modelReference"/> 
    153153                                                </xsl:variable> 
    154                                                 <xsl:variable name="url_expTempBH"> 
    155                                                         <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='expTempBH']/@sawsdl:modelReference"/> 
     154                                                <xsl:variable name="url_avgTempBH"> 
     155                                                        <xsl:value-of select="$element_drillReportStatusInfo//xsd:element[@name='avgTempBH']/@sawsdl:modelReference"/> 
    156156                                                </xsl:variable> 
    157157                                                <xsl:variable name="url_fixedRig"> 
     
    415415                                                                        <fo:table-cell vertical-align="middle"> 
    416416                                                                                <fo:block font-size="11pt" font-weight="bold"> 
    417                                                                                         <fo:basic-link external-destination="url({$url_expTempBH})">Temperature </fo:basic-link> 
    418                                                                                         <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH/@uom)"> 
     417                                                                                        <fo:basic-link external-destination="url({$url_avgTempBH})">Temperature </fo:basic-link> 
     418                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgTempBH/@uom)"> 
    419419                                                                                                <fo:inline> 
    420                                                                                                         <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH/@uom"/> 
     420                                                                                                        <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgTempBH/@uom"/> 
    421421                                                                                                </fo:inline> 
    422422                                                                                        </xsl:if>: </fo:block> 
     
    424424                                                                        <fo:table-cell vertical-align="middle"> 
    425425                                                                                <fo:block> 
    426                                                                                         <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH)"> 
     426                                                                                        <xsl:if test="string(/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgTempBH)"> 
    427427                                                                                                <fo:inline> 
    428                                                                                                         <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:expTempBH"/> 
     428                                                                                                        <xsl:value-of select="/witsml:drillReports/witsml:drillReport/witsml:statusInfo/witsml:avgTempBH"/> 
    429429                                                                                                </fo:inline> 
    430430                                                                                        </xsl:if> 
     
    867867                                                                                                                                <fo:table-cell> 
    868868                                                                                                                                        <fo:block> 
    869                                                                                                                                                 <xsl:if test="string(substring-after(substring(witsml:dTimEnd, 0, 17), 'T'))"> 
    870                                                                                                                                                         <fo:inline> 
    871                                                                                                                                                                 <xsl:value-of select="substring-after(substring(witsml:dTimEnd, 0, 17), 'T')"/> 
    872                                                                                                                                                         </fo:inline> 
    873                                                                                                                                                 </xsl:if> 
     869                                                                                                                                                <fo:inline> 
     870                                                                                                                                                        <xsl:value-of select="substring-after(substring(witsml:dTimEnd, 0, 17), 'T')"/> 
     871                                                                                                                                                </fo:inline> 
    874872                                                                                                                                        </fo:block> 
    875873                                                                                                                                </fo:table-cell> 
     
    885883                                                                                                                                <fo:table-cell> 
    886884                                                                                                                                        <fo:block> 
    887                                                                                                                                                 <xsl:if test="string(witsml:mdHoleEnd)"> 
    888                                                                                                                                                         <fo:inline> 
    889                                                                                                                                                                 <xsl:value-of select="witsml:mdHoleEnd"/> 
    890                                                                                                                                                         </fo:inline> 
    891                                                                                                                                                 </xsl:if> 
    892                                                                                                                                         </fo:block> 
    893                                                                                                                                 </fo:table-cell> 
    894                                                                                                                                 <fo:table-cell> 
    895                                                                                                                                         <fo:block> 
    896885                                                                                                                                                <xsl:if test="string(witsml:md)"> 
    897886                                                                                                                                                        <fo:inline> 
    898887                                                                                                                                                                <xsl:value-of select="witsml:md"/> 
     888                                                                                                                                                        </fo:inline> 
     889                                                                                                                                                </xsl:if> 
     890                                                                                                                                        </fo:block> 
     891                                                                                                                                </fo:table-cell> 
     892                                                                                                                                <fo:table-cell> 
     893                                                                                                                                        <fo:block> 
     894                                                                                                                                                <xsl:if test="string(witsml:md)"> 
     895                                                                                                                                                        <fo:inline> 
     896                                                                                                                                                                <xsl:value-of select="format-number(witsml:md - witsml:mdHoleStart, '0.0#')"/> 
    899897                                                                                                                                                        </fo:inline> 
    900898                                                                                                                                                </xsl:if> 
     
    14771475                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimStart']/@sawsdl:modelReference"/> 
    14781476                                                        </xsl:variable> 
    1479                                                         <xsl:variable name="url_dTimEnd"> 
     1477                                                        <xsl:variable name="url_dTimEndCLT"> 
    14801478                                                                <xsl:value-of select="$element_pipe/casing_liner_tubing_run//xsd:element[@name='dTimEnd']/@sawsdl:modelReference"/> 
    14811479                                                        </xsl:variable> 
     
    21362134                                                                                                                                        <fo:table-cell> 
    21372135                                                                                                                                                <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> 
     2136                                                                                                                                                        <fo:basic-link external-destination="url({$url_typeFluid})">Fluid type</fo:basic-link> 
     2137                                                                                                                                                </fo:block> 
     2138                                                                                                                                        </fo:table-cell> 
     2139                                                                                                                                        <fo:table-cell> 
     2140                                                                                                                                                <fo:block> 
     2141                                                                                                                                                        <fo:basic-link external-destination="url({$url_volPumped})">Volume pumped</fo:basic-link> 
     2142                                                                                                                                                </fo:block> 
    21432143                                                                                                                                                <fo:block> 
    21442144                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:volPumped/@uom)"> 
     
    21512151                                                                                                                                        <fo:table-cell> 
    21522152                                                                                                                                                <fo:block> 
    2153                                                                                                                                                 <fo:basic-link external-destination="url({$url_density})">Fluid densitiy</fo:basic-link></fo:block> 
     2153                                                                                                                                                        <fo:basic-link external-destination="url({$url_density})">Fluid densitiy</fo:basic-link> 
     2154                                                                                                                                                </fo:block> 
    21542155                                                                                                                                                <fo:block> 
    21552156                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:density/@uom)"> 
     
    21622163                                                                                                                                        <fo:table-cell> 
    21632164                                                                                                                                                <fo:block> 
    2164                                                                                                                                                 <fo:basic-link external-destination="url({$url_yp})">Yield point</fo:basic-link></fo:block> 
     2165                                                                                                                                                        <fo:basic-link external-destination="url({$url_yp})">Yield point</fo:basic-link> 
     2166                                                                                                                                                </fo:block> 
    21652167                                                                                                                                                <fo:block> 
    21662168                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:yp/@uom)"> 
     
    21732175                                                                                                                                        <fo:table-cell> 
    21742176                                                                                                                                                <fo:block> 
    2175                                                                                                                                                 <fo:basic-link external-destination="url({$url_ratioMixWater})">Mix water ratio</fo:basic-link></fo:block> 
     2177                                                                                                                                                        <fo:basic-link external-destination="url({$url_ratioMixWater})">Mix water ratio</fo:basic-link> 
     2178                                                                                                                                                </fo:block> 
    21762179                                                                                                                                                <fo:block> 
    21772180                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:ratioMixWater/@uom)"> 
     
    21842187                                                                                                                                        <fo:table-cell> 
    21852188                                                                                                                                                <fo:block> 
    2186                                                                                                                                                 <fo:basic-link external-destination="url({$url_pcFreeWater})">Free water</fo:basic-link></fo:block> 
     2189                                                                                                                                                        <fo:basic-link external-destination="url({$url_pcFreeWater})">Free water</fo:basic-link> 
     2190                                                                                                                                                </fo:block> 
    21872191                                                                                                                                                <fo:block> 
    21882192                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:pcFreeWater/@uom)"> 
     
    21952199                                                                                                                                        <fo:table-cell> 
    21962200                                                                                                                                                <fo:block> 
    2197                                                                                                                                                 <fo:basic-link external-destination="url({$url_eTimThickening})">Thickening time</fo:basic-link></fo:block> 
     2201                                                                                                                                                        <fo:basic-link external-destination="url({$url_eTimThickening})">Thickening time</fo:basic-link> 
     2202                                                                                                                                                </fo:block> 
    21982203                                                                                                                                                <fo:block> 
    21992204                                                                                                                                                        <xsl:if test="string(witsml:cementingFluid/witsml:eTimThickening/@uom)"> 
     
    22062211                                                                                                                                        <fo:table-cell text-align="left"> 
    22072212                                                                                                                                                <fo:block> 
    2208                                                                                                                                                 <fo:basic-link external-destination="url({$url_descFluid})">Fluid Description</fo:basic-link></fo:block> 
     2213                                                                                                                                                        <fo:basic-link external-destination="url({$url_descFluid})">Fluid Description</fo:basic-link> 
     2214                                                                                                                                                </fo:block> 
    22092215                                                                                                                                        </fo:table-cell> 
    22102216                                                                                                                                        <fo:table-cell  text-align="left"> 
    22112217                                                                                                                                                <fo:block> 
    2212                                                                                                                                                 <fo:basic-link external-destination="url({$url_fluidComments})">Comments</fo:basic-link></fo:block> 
     2218                                                                                                                                                        <fo:basic-link external-destination="url({$url_fluidComments})">Comments</fo:basic-link> 
     2219                                                                                                                                                </fo:block> 
    22132220                                                                                                                                        </fo:table-cell> 
    22142221                                                                                                                                </fo:table-row>