Changeset b919a9d in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
12c5a3d
Parents:
1aced13
git-author:
Miika Turkia <miika.turkia@…> (03/29/17 21:10:36)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

Add the pressure attribute only if it exists

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/csv2xml.xslt

    r1aced13 rb919a9d  
    413413
    414414        <xsl:if test="$pressureField >= 0">
    415           <xsl:attribute name="pressure">
    416             <xsl:variable name="pressure">
    417               <xsl:call-template name="getFieldByIndex">
    418                 <xsl:with-param name="index" select="$pressureField"/>
    419                 <xsl:with-param name="line" select="$line"/>
    420               </xsl:call-template>
    421             </xsl:variable>
    422             <xsl:if test="$pressure >= 0">
     415          <xsl:variable name="pressure">
     416            <xsl:call-template name="getFieldByIndex">
     417              <xsl:with-param name="index" select="$pressureField"/>
     418              <xsl:with-param name="line" select="$line"/>
     419            </xsl:call-template>
     420          </xsl:variable>
     421          <xsl:if test="$pressure >= 0">
     422            <xsl:attribute name="pressure">
    423423              <xsl:choose>
    424424                <xsl:when test="$units = 0">
     
    429429                </xsl:otherwise>
    430430              </xsl:choose>
    431             </xsl:if>
    432           </xsl:attribute>
     431            </xsl:attribute>
     432          </xsl:if>
    433433        </xsl:if>
    434434      </sample>
Note: See TracChangeset for help on using the changeset viewer.