summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-04-17 16:51:31 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-18 21:03:27 -0700
commit9607ff6c93e329c1f0535675eeec18871cc2f0d7 (patch)
treea1a083eaa2d4d2228918c9b30065371f22b8fa17 /xslt
parent62b989979e0fd9e90f7329a077f9ed6dadb798e9 (diff)
downloadsubsurface-9607ff6c93e329c1f0535675eeec18871cc2f0d7.tar.gz
Import picture URLs from divelogs.de
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/divelogs.xslt8
1 files changed, 8 insertions, 0 deletions
diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt
index 067a72675..2568824ea 100644
--- a/xslt/divelogs.xslt
+++ b/xslt/divelogs.xslt
@@ -164,6 +164,14 @@
</xsl:attribute>
</sample>
</xsl:for-each>
+
+ <xsl:for-each select="PICTURES/PICTURE">
+ <picture>
+ <xsl:attribute name="filename">
+ <xsl:value-of select="concat('https://divelogs.de', @path, .)"/>
+ </xsl:attribute>
+ </picture>
+ </xsl:for-each>
</dive>
</xsl:template>
</xsl:stylesheet>