Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/MacDive.xslt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt
index 3e2c462..e9a007a 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">
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to