[xslt] Creating variable with "false()" value



Hallo,
my question is about creating of the variable with the false() value. I need
create the variable by the follow way:

<xsl:variable name="myVariable">
	<xsl:choose>
		<xsl:when test="someMyTest">
			<xsl:value-of select="true()"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="false()"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:variable>


But the variable $myVariable is ever true(). So I tested:

<xsl:variable name="myVariable">
	<xsl:if test="false()"/>
</xsl:variable>

This code generates nothing, but the variable $myVariable is still ever true().
Why? Only way how to create the variable with the false() value is:

<xsl:variable name="myVariable">
</xsl:variable>

Is is some feature?

I'm using libsxlt-1.1.10


	Thanks

-petrn
-- 
Bc. Petr Novak
novak liberouter org, novak merlot ics muni cz
Phone: +420 604 231 486

http://www.liberouter.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]