[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Extracting text between nodes
>>>>> "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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|