diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-05-06 17:38:43 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-07 11:17:03 -0700 |
commit | 381f7020176d6f15c81abe0d53b68f1755aa2645 (patch) | |
tree | 1c2d06e3d25e6f1672bf9122d3dbb2aeaeb518b4 /xslt | |
parent | 55a7715be04a36b09be067505e21dae48c7a4025 (diff) | |
download | subsurface-381f7020176d6f15c81abe0d53b68f1755aa2645.tar.gz |
Use function from commonTemplates on MacDive import
Get rid of duplicate function.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/MacDive.xslt | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt index e9a007a64..21f827b9e 100644 --- a/xslt/MacDive.xslt +++ b/xslt/MacDive.xslt @@ -1,5 +1,6 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:strip-space elements="*"/> + <xsl:include href="commonTemplates.xsl"/> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> @@ -573,18 +574,6 @@ </xsl:template> <!-- end convert weight --> - <xsl:template name="temperatureSamples"> - <xsl:param name="units"/> - <xsl:choose> - <xsl:when test="$units = 'Imperial'"> - <xsl:value-of select="count(descendant::temperature[. != 32])"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="count(descendant::temperature[. != 0])"/> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - <xsl:template name="pressureSamples"> <xsl:value-of select="count(descendant::pressure[. > 0])"/> </xsl:template> |