|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: not()'ing a false variable, xalan 2.4.D1
At 05:17 PM 11/7/2002, you wrote:
Stop here. This is where you are confused. If you were to instead say <xsl:variable name="false-variable" select="false()"/>, it would work exactly as you would expect it to. The problem is that you are creating a result-tree-fragment consisting of the text node "false". That is what happens when you say <xsl:value-of select="false()" />. Later, you test if the variable has any content (when test="$false-variable"), which it does: the string "false". Solution: Use the 'select' attribute of xsl:variable when you want a boolean result, not a string result.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








