Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
If the classpath is not identical, you could get a different transform provider. For example, we use Saxon as our provider, overriding what is provided in the runtime library. Thank you for the hint! I downloaded the latest xalan distribution and executed the ant script with the "classpath" a

Re: Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Earl Hood
On Mar 7, 2016 7:55 AM, wrote: > > If you are using the same JVM and simply executing the XSL differently, I don't see why not... If the classpath is not identical, you could get a different transform provider. For example, we use Saxon as our provider, overriding what is provided in the runtime

Re: Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread sfloess
Al, It wasn't apparent to me why there'd be a difference... If you are using the same JVM and simply executing the XSL differently, I don't see why not... I mean once you kick of the XSL I can't imagine there is something different in running from Ant vs your Java app. I spent a number of ye

Re: Aw: XSL transformation with Ant: sorting a list

2016-03-07 Thread Klaus Malorny
On 07.03.2016 12:01, Al Le wrote: It does not occur if I perform it via a Java program I have to correct myself. It tried a java program in different JVMs, and it gives me different results. In one case it gives the correct result, in other cases still the wrong result is delivered. I could not

Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
Hello Scot, thanks for a quick response! > first you are killing yourself in the way you XSLT is > written > [. . .] > You are trying to do the work of the templating engine in your XSLT :) Yes, I know this is a "procedural" way of doing things and maybe not the best. But the example is just a

Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Scot P. Floess
So a few things - first you are killing yourself in the way you XSLT is written. Personally, I'd do: xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

Aw: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
> It does not occur if I perform it via a Java program I have to correct myself. It tried a java program in different JVMs, and it gives me different results. In one case it gives the correct result, in other cases still the wrong result is delivered. I could not find out yet what the differenc

XSL transformation with Ant: sorting a list

2016-03-06 Thread Al Le
Hello, I'm facing a weird problem (IMHO) which, in short, is: a node list passed as a parameter to a template can't be sorted. The problem occurs only if I do the transformation from within Ant (I use Ant 1.8.4). It does not occur if I perform it via a Java program or in XmlSpy or through ht