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

Subject: Re: [xsl] Why doesn test work in one case, but not another???
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Wed, 10 May 2006 15:26:55 -0500
On 5/10/06, Shirley Gasch <sgasch@xxxxxxxxxxxxxxxxxxxxx> 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

Current Thread