summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf-export.xslt9
-rw-r--r--xslt/xml2manualcsv.xslt2
2 files changed, 10 insertions, 1 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index cb6a66f98..42dbbf0b9 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -38,6 +38,7 @@
<xsl:template match="/divelog/settings"/>
+ <xsl:template match="/divelog/divesites"/>
<xsl:template match="/divelog/dives">
<uddf version="3.2.0" xmlns="http://www.streit.cc/uddf/3.2/">
@@ -121,7 +122,6 @@
</diver>
<divesite>
-
<!-- There must be at least one divebase. Subsurface doesn't track this as a concept, so just assign them all to a single divebase. -->
<divebase id="allbase">
<name>Subsurface Divebase</name>
@@ -235,6 +235,13 @@
<xsl:value-of select="substring-after(@gps, ' ')"/>
</longitude>
</geography>
+ <xsl:if test="notes != ''">
+ <sitedata>
+ <notes>
+ <xsl:value-of select="notes"/>
+ </notes>
+ </sitedata>
+ </xsl:if>
</site>
</xsl:template>
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index d6c1a8b3b..82f4979d4 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -17,6 +17,8 @@
<xsl:apply-templates select="dive|trip/dive"/>
</xsl:template>
+ <xsl:template match="divesites/site/notes"/>
+
<xsl:template match="dive">
<xsl:text>&quot;</xsl:text>
<xsl:value-of select="@number"/>