[exslt] str:padding()
by SHOBANA Srinivasan other posts by this author
Aug 30 2006 5:13AM messages near this date
[exslt] test
|
[exslt] Using date-and-time ... failure..
& XSLT Hi,
I have an xsl which uses str:padding() function.
I have added the following namespace
xmlns:str="http://exslt.org/strings"
I have jdk 1.4 and xalan jar in my classpath. In this set up, am able to
successfully
apply this xsl and convert my xml.
But if i have jdk 1.5 and xalan jar in my classpath, then i get the
following error:
java.lang.NoSuchMethodException
: For extension function, could not find method
java.lang.Double.padding([Expres
sionContext,] #STRING).
javax.xml.transform.TransformerException:
java.lang.NoSuchMethodException: For e
xtension function, could not find method
java.lang.Double.padding([ExpressionCon
text,] #STRING).
at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1212)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:2894)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.transform.TransformerException:
java.lang.NoSuchMethodExcep
tion: For extension function, could not find method
java.lang.Double.padding([Ex
pressionContext,] #STRING).
at
org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(
ExtensionHandlerJavaPackage.java:389)
at
org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTab
le.java:253)
at
org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.ja
va:141)
at org.apache.xpath.XPath.execute(XPath.java:269)
at
org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:250)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:495)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:193)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1189)
... 2 more
Caused by: java.lang.NoSuchMethodException: For extension function,
could not fi
nd method java.lang.Double.padding([ExpressionContext,] #STRING).
at
org.apache.xalan.extensions.MethodResolver.getMethod(MethodResolver.j
ava:307)
at
org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(
ExtensionHandlerJavaPackage.java:368)
... 12 more
What would be the problem?
Thanks in advance,
Shoba
<http://www.smileycentral.com/?partner=ZSzeb001>
<http://www.smileycentral.com/?partner=ZSzeb001>
Confidentiality Statement:
This message is intended only for the individual or entity to which it is addressed. It may
contain privileged, confidential information which is exempt from disclosure under applicabl
e laws. If you are not the intended recipient, please note that you are strictly prohibited
from disseminating or distributing this information (other than to the intended recipient) o
r copying this information. If you have received this communication in error, please notify
us immediately by return email.
|