mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
More robust UDDF export test mode
When doing the xslt transformation for UDDF export, the C source does actually give a parameter units with value 0. Thus we need to treat that case as normal mode. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
b7c6998cf7
commit
0617308b39
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@
|
|||
<repetitiongroup>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length($units) = 0">
|
||||
<xsl:when test="string-length($units) = 0 or $units = 0">
|
||||
<xsl:value-of select="generate-id(.)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@ -271,7 +271,7 @@
|
|||
<dive xmlns="http://www.streit.cc/uddf/3.2/">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length($units) = 0">
|
||||
<xsl:when test="string-length($units) = 0 or $units = 0">
|
||||
<xsl:value-of select="generate-id(.)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
|
Loading…
Add table
Reference in a new issue