c1map: Add lvm:if/@eq

master
Shelly Shaver 2018-03-21 14:46:10 -04:00
parent a3fcaa8737
commit 67d0cd69ec
2 changed files with 11 additions and 1 deletions

View File

@ -351,6 +351,10 @@
<xsl:with-param name="name" select="@name" />
</xsl:call-template>
</lvmp:when>
<lvmp:cmp>
<xsl:apply-templates mode="lvm:valparse"
select="@eq" />
</lvmp:cmp>
<xsl:apply-templates />
</lvmp:condition>

View File

@ -262,7 +262,9 @@
<xsl:apply-templates mode="lvmp:render" />
</xsl:template>
<xsl:template match="lvmp:condition/lvmp:when" mode="lvmp:render" priority="2">
<xsl:template mode="lvmp:render" priority="2"
match="lvmp:condition/lvmp:when
|lvmp:condition/lvmp:cmp">
<!-- will be processed as part of sibling output -->
</xsl:template>
@ -338,6 +340,10 @@
<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:text>,</xsl:text>
<xsl:apply-templates select="$cond/lvmp:cmp/lvmp:*" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? </xsl:text>
<xsl:apply-templates mode="lvmp:render">