Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTaylor Cordes <taylor.cordes@rtspecialty.com>2018-06-25 14:16:32 -0400
committerTaylor Cordes <taylor.cordes@rtspecialty.com>2018-06-25 14:16:32 -0400
commit80ed214e121d925741aa0f064b36c96726c57fe9 (patch)
tree58c2f48b3872f6fff35a87355e8683a492364f73 /src
parent1fe35cd354244f081736e96fa9bb1b51a51b7d90 (diff)
downloadtame-80ed214e121d925741aa0f064b36c96726c57fe9.tar.gz
tame-80ed214e121d925741aa0f064b36c96726c57fe9.tar.bz2
tame-80ed214e121d925741aa0f064b36c96726c57fe9.zip
fixed bug preventing second parameter in conditionals
Diffstat (limited to 'src')
-rw-r--r--src/current/c1map/render.xsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/current/c1map/render.xsl b/src/current/c1map/render.xsl
index ae12767..c81e143 100644
--- a/src/current/c1map/render.xsl
+++ b/src/current/c1map/render.xsl
@@ -354,14 +354,15 @@
]
">
<!-- select the nearest condition -->
- <xsl:variable name="cond" select="ancestor::lvmp:condition[1]" />
+ <xsl:variable name="cond" as="element( lvmp:condition )"
+ select="ancestor::lvmp:condition[1]" />
<xsl:text>( ( </xsl:text>
<xsl:text>$contract->isTruthy( </xsl:text>
<xsl:apply-templates select="$cond/lvmp:when/lvmp:*" mode="lvmp:render" />
- <xsl:if test="$cond/lvmp:cmp/*">
+ <xsl:if test="$cond/lvmp:cmp/text() != ''">
<xsl:text>,</xsl:text>
- <xsl:apply-templates select="$cond/lvmp:cmp/lvmp:*" mode="lvmp:render" />
+ <xsl:apply-templates select="$cond/lvmp:cmp/text()" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? </xsl:text>