mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move model tagging to xslt
Instead of replacing all the empty model tags after a csv to xml transform with some text, just produce that text in the csv to xml transform instead. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f04b3bc166
commit
4867363ec5
2 changed files with 7 additions and 11 deletions
|
@ -42,12 +42,13 @@
|
|||
<xsl:attribute name="time">
|
||||
<xsl:value-of select="concat(substring($time, 2, 2), ':', substring($time, 4, 2))"/>
|
||||
</xsl:attribute>
|
||||
<divecomputerid deviceid="ffffffff" model="csv" />
|
||||
<xsl:call-template name="printLine">
|
||||
<xsl:with-param name="line" select="substring-before(//csv, $lf)"/>
|
||||
<xsl:with-param name="lineno" select="'1'"/>
|
||||
<xsl:with-param name="remaining" select="substring-after(//csv, $lf)"/>
|
||||
</xsl:call-template>
|
||||
<divecomputer model="Imported from CSV" deviceid="ffffffff">
|
||||
<xsl:call-template name="printLine">
|
||||
<xsl:with-param name="line" select="substring-before(//csv, $lf)"/>
|
||||
<xsl:with-param name="lineno" select="'1'"/>
|
||||
<xsl:with-param name="remaining" select="substring-after(//csv, $lf)"/>
|
||||
</xsl:call-template>
|
||||
</divecomputer>
|
||||
</dive>
|
||||
</dives>
|
||||
</divelog>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue