Hi, Sagara. sagara Gunathunga <[EMAIL PROTECTED]> wrote on 2007-12-13 03:06:43 AM: > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > extension-element-prefixes="foo" xmlns:foo="foo"> > > <xsl:function name="foo:add"> > <xsl:param name="int1"/> > <xsl:param name="int2"/> > <xsl:value-of select="$int1+$int2"/> > </xsl:function> > > <xsl:function name="foo:Hello" as="xs:string"> > <xsl:param name="sentence" as="xs:string"/> > <xsl:value-of select="$sentence" /> > </xsl:function> > > > <xsl:template match="/"> > the value is : <xsl:value-of select="foo:add(3,4)"/> > <xsl:value-of select="foo:Hello(' parameter')"/> > > > </xsl:stylesheet> > > I got following 2 errors : > > /(Location of error _unknown)java.lang.NoSuchMethodException_: For > extension function, > could not find method foo.add([ExpressionContext,] #NUMBER, > #NUMBER).Checked both static and instance methods. > / > > / (Location of error _unknown)java.lang.NoSuchMethodException_: For > extension function, could not find > method foo.Hello([ExpressionContext,] #STRING).Checked both static > and instance methods./
That's because your stylesheet is using the XSLT 2.0 stylesheet function feature. The Xalan-Java processors support only XSLT 1.0, so they attempt to process your stylesheet in forwards compatibility mode. Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XSLT Processors Development IBM SWS Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]