Sunday, April 4, 2010

Heh

Working with XSL right now:

<xsl:choose>
<xsl:when test="1=1">
1=1
</xsl:when>
<xsl:otherwise>
1=2
</xsl:otherwise>
</xsl:choose>

prints out 1=1.
But

<xsl:choose>
<xsl:when test="a=a">
a=a
</xsl:when>
<xsl:otherwise>
a=b
</xsl:otherwise>
</xsl:choose>

prints out a=b.

So, a does not equal a, eh?

No comments:

Post a Comment