diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-05-05 15:31:26 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-07 11:16:57 -0700 |
commit | 55a7715be04a36b09be067505e21dae48c7a4025 (patch) | |
tree | f04a3281697bd03b576f7fb7ae7a7673d32fd375 /xslt/MacDive.xslt | |
parent | 973713e9db0caa54c124ba97ab770e9082f6304e (diff) | |
download | subsurface-55a7715be04a36b09be067505e21dae48c7a4025.tar.gz |
Import tags from MacDive
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/MacDive.xslt')
-rw-r--r-- | xslt/MacDive.xslt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt index 3e2c462f4..e9a007a64 100644 --- a/xslt/MacDive.xslt +++ b/xslt/MacDive.xslt @@ -67,7 +67,16 @@ </xsl:attribute> <xsl:attribute name="tags"> - <xsl:value-of select="entryType"/> + <xsl:for-each select="tags/tag|entryType"> + <xsl:choose> + <xsl:when test="position() = 1"> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat(',', .)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> </xsl:attribute> <xsl:variable name="delta"> |