summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-31 22:09:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-31 12:12:53 -0800
commit205c893fc3e512b4cce6470581c2fd886ba3ac07 (patch)
tree4f4882c17b198baacd1b496d1ce523ddbe1b7581 /xslt
parent48019a73d55a4493e8eb47383cda12c5f9054039 (diff)
downloadsubsurface-205c893fc3e512b4cce6470581c2fd886ba3ac07.tar.gz
Include cylinder description for imperial import
If the cylinder size seems to be in the form of ALxx, LPxx, or HPxx use that as cylinder description. 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/subsurfacecsv.xslt5
1 files changed, 5 insertions, 0 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 072dda23e..3afbd0341 100644
--- a/xslt/subsurfacecsv.xslt
+++ b/xslt/subsurfacecsv.xslt
@@ -241,6 +241,11 @@
</xsl:choose>
</xsl:attribute>
</xsl:if>
+ <xsl:if test="substring($size, 1, 2) = 'AL' or substring($size, 1, 2) = 'LP' or substring($size, 1, 2) = 'HP'">
+ <xsl:attribute name="description">
+ <xsl:value-of select="$size"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:if test="$start != ''">
<xsl:attribute name="start">
<xsl:choose>