Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShelly Shaver <shelly.shaver@rtspecialty.com>2018-03-21 14:46:10 -0400
committerShelly Shaver <shelly.shaver@rtspecialty.com>2018-03-21 14:46:10 -0400
commit67d0cd69eca701055b7b58d75b772730283a911d (patch)
treed3dd2378a7ee5381f8d92cec09880c906d7d1100 /src
parenta3fcaa8737cbd52b417e9ab94b96984857814742 (diff)
downloadtame-67d0cd69eca701055b7b58d75b772730283a911d.tar.gz
tame-67d0cd69eca701055b7b58d75b772730283a911d.tar.bz2
tame-67d0cd69eca701055b7b58d75b772730283a911d.zip
c1map: Add lvm:if/@eq
Diffstat (limited to 'src')
-rw-r--r--src/current/c1map.xsl4
-rw-r--r--src/current/c1map/render.xsl8
2 files changed, 11 insertions, 1 deletions
diff --git a/src/current/c1map.xsl b/src/current/c1map.xsl
index 9a83d68..42eab89 100644
--- a/src/current/c1map.xsl
+++ b/src/current/c1map.xsl
@@ -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>
diff --git a/src/current/c1map/render.xsl b/src/current/c1map/render.xsl
index dd5d044..24740e0 100644
--- a/src/current/c1map/render.xsl
+++ b/src/current/c1map/render.xsl
@@ -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">