xsl-list
[Top] [All Lists]

Re: [xsl] Conditional test is failing

2006-03-16 15:07:00
On 3/16/06, Gowri Ratakonda <gratakonda(_at_)yahoo(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>