[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Extracting text between nodes

Subject: Re: Extracting text between nodes
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Feb 2008 11:36:27 +0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.