"Andrew" == Andrew Welch
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> writes:
Andrew> On 14/02/2008, Colin Paul Adams
<colin(_at_)colina(_dot_)demon(_dot_)co(_dot_)uk> wrote:
>> Why 10 rather than 1, or 271000000.0057683456127458945386235?
Andrew> Well....
Andrew> <xsl:template match="/"
Andrew> priority="271000000.0057683456127458945386235"> a
Andrew> </xsl:template>
Andrew> <xsl:template match="/"
Andrew> priority="271000000.0057683456127458945386234"> b
Andrew> </xsl:template>
Andrew> fails with a java.lang.ArrayIndexOutOfBoundsException: -2
Andrew> error with Saxon.
So that looks like a bug in Saxon.
Gestalt selects the first one. Although it is reporting as recovering
from an ambiguity. If I swap them round, then it outputs b rather than a.
So that looks like a bug in Gestalt.
Andrew> Interestingly
Andrew> <xsl:template match="/" priority="271000.00576834564"> a
Andrew> </xsl:template>
Andrew> <xsl:template match="/" priority="271000.00576834560"> b
Andrew> </xsl:template>
Andrew> works but only if the last digit is 4 and not 1 in the
Andrew> first template
I think Saxon uses xs:double rather than xs:decimal (as the
recommendation requires), so that might explain that error.
Andrew> I'm sure there's something else I should be getting on
Andrew> with......
me too. But I am always fascinated by irrelevant trivia :-)
--
Colin Adams
Preston Lancashire
--~------------------------------------------------------------------
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>
--~--