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:
Miika Turkia 2017-05-05 19:25:33 +03:00 committed by Dirk Hohndel
parent b7c6998cf7
commit 0617308b39

View file

@ -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>