Skip to content

Commit f6f4a9e

Browse files
authored
Merge pull request #7 from kgeneral/master
append isNotEqual case
2 parents ba8ac2a + f68a217 commit f6f4a9e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

migrate.xslt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,29 @@
509509
</xsl:element>
510510
</xsl:template>
511511

512+
<xsl:template match="isNotEqual">
513+
<xsl:element name="if">
514+
<xsl:attribute name="test">
515+
<xsl:if test="substring-before(@property, '.')">
516+
<xsl:value-of select="substring-before(@property, '.')" /><xsl:text> != null and </xsl:text>
517+
</xsl:if>
518+
<xsl:value-of select="@property" />
519+
<xsl:text><![CDATA[ != ]]></xsl:text>
520+
<xsl:value-of select="@compareProperty" />
521+
<xsl:choose>
522+
<xsl:when test="number(@compareValue) &gt; '-999999999'">
523+
<xsl:value-of select="@compareValue" />
524+
</xsl:when>
525+
<xsl:otherwise>
526+
<xsl:text><![CDATA["]]></xsl:text><xsl:value-of select="@compareValue" /><xsl:text><![CDATA["]]></xsl:text>
527+
</xsl:otherwise>
528+
</xsl:choose>
529+
</xsl:attribute>
530+
<xsl:value-of select="@prepend" />
531+
<xsl:apply-templates/>
532+
</xsl:element>
533+
</xsl:template>
534+
512535
<xsl:template match="isLessEqual">
513536
<xsl:element name="if">
514537
<xsl:attribute name="test">

0 commit comments

Comments
 (0)