[PATCH] Import tags from MacDive
Miika Turkia
miika.turkia at gmail.com
Tue May 5 05:31:26 PDT 2015
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
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
More information about the subsurface
mailing list