xsl-list
[Top] [All Lists]

Re: [xsl] Why doesn test work in one case, but not another???

2006-05-10 14:05:33
On 5/10/06, Shirley Gasch <sgasch(_at_)sindbad(_dot_)gsfc(_dot_)nasa(_dot_)gov> 
wrote:
Hi again John,

This time, I put in only the first test and then put in the text
"Unknown" in the part where it should go if it fails the test - it
fails the test all of the time!

Well, that's not a huge surprise.  Are you sure it ever worked?  I
quickly went through and tried to shift through your when statements
and I'm seeing things like this:

<xsl:when test="'MssnTer' = 'Y'">

the string MssnTer will never be the same as the string Y.  This is
the same as saying

when test=" 0 = 1".


You mentioned something about this being automatically generated xslt.
Have you cleaned up the file or did you post it straight from the
output tool?  The xslt seems hard to read to me a bit confusing,
perhaps start simple and build it up.

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