Re: [xsl] Conditional test is failing

Subject: Re: [xsl] Conditional test is failing
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Thu, 16 Mar 2006 15:40:50 -0600
On 3/16/06, Gowri Ratakonda <gratakonda@xxxxxxxxx> wrote:
>
> Thanks for the quick response, Sreeni!
> Changing the quotes fixed the problem.
>

Just to clarify, the reason it worked when you change around the
quotation marks is that you're changing what is being evaluated...

$foo = bar, you are comparing the string value of $foo against the
string values of the elements named bar that are children of the
current node.

$foo = 'bar' you are comparing the string value of $foo against the
string 'bar'.

See http://www.w3.org/TR/xpath#booleans for a more accurate
description of this process.

Jon Gorman

Current Thread