[PATCH 4/7] Include cylinder description for imperial import
Miika Turkia
miika.turkia at gmail.com
Wed Dec 31 12:09:36 PST 2014
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 at gmail.com>
---
xslt/subsurfacecsv.xslt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 072dda2..3afbd03 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>
--
1.9.1
More information about the subsurface
mailing list