Changeset 841d1b4 in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
4ced7c3
Parents:
acd791b
git-author:
Miika Turkia <miika.turkia@…> (03/13/17 22:57:05)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

CSV export: convert cylinder size to imperial

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/xml2manualcsv.xslt

    r1c03cb2 r841d1b4  
    7272        <xsl:choose>
    7373          <xsl:when test="$units = 1">
    74             <xsl:value-of select="cylinder/@description"/>
     74            <xsl:value-of select="concat(format-number((cylinder[1]/@size div 14.7 * 3000) * 0.035315, '#.#'), ' cuft')"/>
    7575          </xsl:when>
    7676          <xsl:otherwise>
     
    257257    <xsl:value-of select="$fs"/>
    258258    <xsl:text>&quot;</xsl:text>
    259     <xsl:value-of select="@size"/>
     259    <xsl:choose>
     260      <xsl:when test="$units = 1">
     261        <xsl:value-of select="concat(format-number((substring-before(@size, ' ') div 14.7 * 3000) * 0.035315, '#.#'), ' cuft')"/>
     262      </xsl:when>
     263      <xsl:otherwise>
     264        <xsl:value-of select="@size"/>
     265      </xsl:otherwise>
     266    </xsl:choose>
    260267    <xsl:text>&quot;</xsl:text>
    261268    <xsl:value-of select="$fs"/>
Note: See TracChangeset for help on using the changeset viewer.