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

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:when test="someMyTest">
			<xsl:value-of select="true()"/>
			<xsl:value-of select="false()"/>

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

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

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">

Is is some feature?

I'm using libsxlt-1.1.10


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


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