summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt16
1 files changed, 16 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index b3988f439..d941d4f82 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -164,6 +164,22 @@
</location>
</xsl:if>
+ <xsl:for-each select="u:informationbeforedive/u:link">
+ <xsl:variable name="ref">
+ <xsl:value-of select="@ref"/>
+ </xsl:variable>
+ <xsl:if test="//u:divesite/u:site[@id = $ref]/u:name">
+ <location>
+ <xsl:if test="//u:divesite/u:site[@id=$ref]/u:geography/u:longitude != ''">
+ <xsl:attribute name="gps">
+ <xsl:value-of select="concat(//u:divesite/u:site[@id=$ref]/u:geography/u:latitude, ' ', //u:divesite/u:site[@id=$ref]/u:geography/u:longitude)"/>
+ </xsl:attribute>
+ <xsl:value-of select="//u:divesite/u:site[@id=$ref]/u:name"/>
+ </xsl:if>
+ </location>
+ </xsl:if>
+ </xsl:for-each>
+
<xsl:if test="buddy_ref/@ref|informationbeforedive/buddy_ref/@ref != ''">
<buddy>
<xsl:variable name="ref">