Michael Kay schrieb:
Could you possibly send me an example of this that I can reproduce?
 
It's not entirely implausible that the behaviour is different with and without a trace listener, since compiling in trace calls is done before the static type analysis. It seems that the type information isn't getting through at the point where the binding decisions are being made.
The Script ---

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:Formatter="com.inubit.ibis.xsltext.Formatter" exclude-result-prefixes="Formatter" version="1.0">
  <xsl:output method="xml" encoding="ISO-8859-1"/>
  <xsl:template match="/">
    <out>
      <one>
        <xsl:value-of select="Formatter:out(string(/Bestellung/Kommentar),'%50s')"/>
      </one>
    </out>
  </xsl:template>
</xsl:stylesheet>

Example Java Source ---

public class Formatter {

  public static final String out(String data, String formatString) {
    return "string";
  }

  public static final String out(Double data, String formatString) {
    return "double";
  }
}

And you could add the new XSLTTraceListener() to reproduce.
-- 
Viele Grüße / best regards

Marc Pellmann
_______________________________
inubit - the integration experts
inubit AG
Lützowstraße 105-106
D-10785 Berlin
Fon: +49.30. 72 61 12-132
Fax: +49.30. 72 61 12-100
Freecall: 0800-go inubit
Web: www.inubit.com