Meaning of <xsl:when test="''='FALSE'">

R

renderman

Hi,

I looked through a computergenerated code because I had to edit
something manually.

I found this line:
<xsl:when test="''='FALSE'">

I don't get what this means.

Please help me.
 
D

David Carlisle

renderman said:
Hi,

I looked through a computergenerated code because I had to edit
something manually.

I found this line:
<xsl:when test="''='FALSE'">

I don't get what this means.

Please help me.

It tests if the empty string '' is equal to to the string 'FALSE' this
is legal but always false.

David
 
R

renderman

So for you this statement doesn't make any sense, either?

And what about this line:

<xsl:when test="concat('FALSE','')='FALSE'">
 
D

David Carlisle

renderman said:
So for you this statement doesn't make any sense, either?

The statement makes sense (it has well defined meaning) it just isn't
sensible to put it in a stylesheet.
And what about this line:

<xsl:when test="concat('FALSE','')='FALSE'">

That tests if concatenating the empty string to the string 'FALSE' is
equal to the string 'FALSE'. Again this is legal but not the most useful
test ever written, as it's always true.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,841
Latest member
WilmerBelg

Latest Threads

Top