Changeset 136

Show
Ignore:
Timestamp:
02/22/11 14:43:15 (13 years ago)
Author:
yaolu
Message:

updated xsl file with a better structure

Files:
1 modified

Legend:

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

    r135 r136  
    505505                                                        </tr> 
    506506                                                </xsl:if> 
    507                                                 <!-- Added/Changed 26jan2011 --> 
    508                                                 <!-- Added/changed 18jan2011 --> 
     507                                                <!-- Added/Changed 22feb2011 --> 
    509508                                                <!--  witsml:pipe --> 
    510                                                 <!--<xsl:if test="count(witsml:pipe) > 0">--> 
     509                                                <xsl:if test="count(witsml:casing_liner_tubing) > 0"> 
    511510                                                <tr height="5px"> 
    512511                                                        <td/> 
     
    523522                                                        <td> 
    524523                                                                <table id="table2"> 
    525                                                                         <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='pipe']/xsd:sequence"/> 
     524                                                                        <xsl:variable name="element_pipe" select="document($ddrSchema)/xsd:schema/xsd:complexType[@name='casing_liner_tubing']/xsd:sequence"/> 
    526525                                                                        <!--<xsl:variable name="url_readingKind"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='readingKind']/@sawsdl:modelReference"/></xsl:variable> 
    527526                                                                        <xsl:variable name="url_equivalentMudWeight"><xsl:value-of select="$element_drillReportPorePressure//xsd:element[@name='equivalentMudWeight']/@sawsdl:modelReference"/></xsl:variable> 
     
    620619                                                        </td> 
    621620                                                </tr> 
    622                                                 <!--</xsl:if>--> 
     621                                                </xsl:if> 
    623622                                                <!-- witsml:cement --> 
    624                                                 <!--<xsl:if test="count(witsml:cement) > 0">--> 
     623                                                <xsl:if test="count(witsml:cementStage) > 0"> 
    625624                                                <xsl:for-each select="witsml:cementStage"> 
    626625                                                        <tr height="5px"> 
     
    873872                                                        </tr> 
    874873                                                </xsl:for-each> 
    875                                                 <!-- </xsl:if> --> 
    876                                                 <!-- END Added/changed 18jan2011 --> 
     874                                                </xsl:if> 
     875                                                <!-- END Added/changed 22feb2011 --> 
    877876                                                <!--  porePressure --> 
    878877                                                <xsl:if test="count(witsml:porePressure) &gt; 0">