summaryrefslogtreecommitdiffstats
path: root/xslt/divelogs.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 20:59:25 -0700
commit410ea40229e68734214c30db17a1aac468d6ab7e (patch)
tree784970d6eaa97565a423456c49b9467e1df7dac0 /xslt/divelogs.xslt
parenta1fb31a2d8c39a3d41919fe9d74792d959406e13 (diff)
downloadsubsurface-410ea40229e68734214c30db17a1aac468d6ab7e.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/divelogs.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>