Subject: Re: [xsl] Extracting text between nodes From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: Fri, 15 Feb 2008 11:36:27 +0000 |
>>>>> "Andrew" == Andrew Welch <andrew.j.welch@xxxxxxxxx> writes: Andrew> On 14/02/2008, Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Extracting text between n, Andrew Welch | Thread | Re: [xsl] Extracting text between n, Colin Paul Adams |
RE: [xsl] Extracting text between n, Michael Kay | Date | [xsl] Accessing input document from, Michael Ludwig |
Month |