aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-05 19:25:33 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-06 08:06:42 -0700
commit0617308b392921dabda9820a3e738776630dd2cb (patch)
tree4fd3ff53127c2f60bdf7a0d1ceb86fcfb18725cd /xslt
parentb7c6998cf75aa11022596a9472f34e0c29fe49d6 (diff)
downloadsubsurface-0617308b392921dabda9820a3e738776630dd2cb.tar.gz
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>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf-export.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 87868070a..bf4735f38 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -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>