Dave --
I think that Michael Kay is correct on this. It may be a bug in Xalan.
What version of Xalan are you using and can you supply working XML and
XSLT examples that will allow us to reproduce the problem?
Gary
Dave wrote:
>
> According to Michael Kay, a relational comparison doesn't compare strings,
> but converts strings to numbers if possible and compares numeric values.
>
> When for example this element is evaluated by Xalan in my stylesheet:
>
> <xsl:when test="//Number > //HighestNumber">
>
> where number and highest number contain numbers.
>
> It seems to compare the two nodes as strings, so for example, 5 is
> considered greater than 100. This seems contradictory to Kay's statements.
>
> It worked when I replaced the previous element with:
>
> <xsl:when test="number(//Number) > //HighestNumber">.
>
> I'm just bothered that it didn't behave the way I thought it should. Of
> course I'm just a beginner at all this. Is this a problem with Xalan,
> Michael Kay, or me?
>
> Thanks,
> Dave Kaplan