diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2019-05-10 06:54:23 +0300 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2019-05-10 10:40:35 +0200 |
commit | 6f916473a54a225926d28f560f6ad059534e7c19 (patch) | |
tree | 486bba23110db490675f0cdee11bfdf09f4471d6 | |
parent | ea203373f83905cc12c995ea4dada63284584c30 (diff) | |
download | subsurface-6f916473a54a225926d28f560f6ad059534e7c19.tar.gz |
SDE import: add custom fields to tags
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r-- | xslt/SuuntoSDM.xslt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt index ccecf5079..8c03b98c8 100644 --- a/xslt/SuuntoSDM.xslt +++ b/xslt/SuuntoSDM.xslt @@ -53,6 +53,27 @@ </xsl:choose> </xsl:attribute> + <!-- Custom fields to tags --> + <xsl:if test="CUSTOM1|CUSTOM2|CUSTOM3|CUSTOM4|CUSTOM5 != ''"> + <xsl:attribute name="tags"> + <xsl:if test="CUSTOM1 != ''"> + <xsl:value-of select="concat(CUSTOM1, ',')" /> + </xsl:if> + <xsl:if test="CUSTOM2 != ''"> + <xsl:value-of select="concat(CUSTOM2, ',')" /> + </xsl:if> + <xsl:if test="CUSTOM3 != ''"> + <xsl:value-of select="concat(CUSTOM3, ',')" /> + </xsl:if> + <xsl:if test="CUSTOM4 != ''"> + <xsl:value-of select="concat(CUSTOM4, ',')" /> + </xsl:if> + <xsl:if test="CUSTOM5 != ''"> + <xsl:value-of select="concat(CUSTOM5, ',')" /> + </xsl:if> + </xsl:attribute> + </xsl:if> + <xsl:choose> <xsl:when test="MEANDEPTH != ''"> <depth max="{concat(translate(MAXDEPTH, ',', '.'),' m')}" mean="{concat(translate(MEANDEPTH, ',', '.'), ' m')}"/> |