diff options
author | Martin Long <martin@longhome.co.uk> | 2014-12-13 00:34:38 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-12 18:27:05 -0800 |
commit | 268ac6774c15cb46c13b7bb2dc17cf47249ee45e (patch) | |
tree | 3cefcd7f7ebc1d5438a220a927dd6132c382bd62 /xslt/uddf-export.xslt | |
parent | cbb613bcde609abbcead492e02afc7993d769015 (diff) | |
download | subsurface-268ac6774c15cb46c13b7bb2dc17cf47249ee45e.tar.gz |
Various minor fixes to UDDF export
Removed underscore from buddy name elements
Added 'mix' prefix to gas ids. Ids must not start with a number.
Added mandatory profile data with empty tags.
Signed-off-by: Martin Long <martin@longhome.co.uk>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf-export.xslt')
-rw-r--r-- | xslt/uddf-export.xslt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt index 699f7b76e..23ce7ae1d 100644 --- a/xslt/uddf-export.xslt +++ b/xslt/uddf-export.xslt @@ -49,9 +49,12 @@ </image> </xsl:for-each> </mediadata> - <diver> <owner id="owner"> + <personal> + <firstname></firstname> + <lastname></lastname> + </personal> <equipment> <xsl:for-each select="//dive/divecomputer[generate-id() = generate-id(key('divecomputer', @deviceid)[1])]"> <divecomputer id="{./@deviceid}"> @@ -81,12 +84,12 @@ <personal> <xsl:choose> <xsl:when test="contains(., ' ')"> - <first_name> + <firstname> <xsl:value-of select="substring-before(., ' ')"/> - </first_name> - <last_name> + </firstname> + <lastname> <xsl:value-of select="substring-after(., ' ')"/> - </last_name> + </lastname> </xsl:when> <xsl:otherwise> <first_name> @@ -141,7 +144,7 @@ just use the same references used internally on Subsurface. --> - <mix id="{$o2}"> + <mix id="mix{$o2}"> <name> <xsl:value-of select="concat($o2, '/', $he)"/> </name> @@ -205,7 +208,6 @@ <name> <xsl:value-of select="."/> </name> - <link ref="allbase"/> <geography> <location> <xsl:value-of select="."/> @@ -473,10 +475,10 @@ <xsl:attribute name="ref"> <xsl:choose> <xsl:when test="@o2 != ''"> - <xsl:value-of select="substring-before(@o2, '.')"/> + <xsl:value-of select="'mix' + substring-before(@o2, '.')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="'21'"/> + <xsl:value-of select="'mix21'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> |