Sha256: e66e96d288f893a25f38fc400d315bce5535eb241635992e8c6bf6b20308f448

Contents?: true

Size: 1.79 KB

Versions: 3

Compression:

Stored size: 1.79 KB

Contents

<?xml version="1.0"?>
<!--
 * Copyright (c) 2014-2016 TechnoPark Corp.
 * Copyright (c) 2014-2016 Yegor Bugayenko
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the 'Software'), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0" xmlns="http://www.w3.org/1999/xhtml">
  <xsl:output method="text" omit-xml-declaration="yes"/>
  <xsl:template match="/estimate">
    <xsl:text>Total: </xsl:text>
    <xsl:value-of select="total"/>
    <xsl:text>&#10;</xsl:text>
    <xsl:apply-templates select="ests/est"/>
  </xsl:template>
  <xsl:template match="ests/est">
    <xsl:value-of select="date"/>
    <xsl:text>: </xsl:text>
    <xsl:value-of select="total"/>
    <xsl:text> hours by </xsl:text>
    <xsl:value-of select="author"/>
    <xsl:text>&#10;</xsl:text>
  </xsl:template>
</xsl:stylesheet>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
est-0.3.4 assets/est-text.xsl
est-0.3.3 assets/est-text.xsl
est-0.3.2 assets/est-text.xsl