肩膀上的阳光
Thinking in Java
![](images/star2.gif) ![](images/star1.gif) ![](images/star1.gif) ![](images/star1.gif)
发贴: 19
积分: 0
|
于 2005-08-19 09:23
![user profile](images_zh_CN/icons/icon_profile.gif) ![send a private message to user](images_zh_CN/icons/icon_pm.gif) ![search all posts by](images_zh_CN/icons/icon_find.gif) ![select and copy to clipboard.
ie only, sorry for netscape users:-)](images_zh_CN/icons/icon_copy.gif)
I have a elemet in xsl file like this: <xsl:value-of select="saxon:evaluate(concat('//xf:instance', @ref))"/> when I generate to html ,there are exception below. if I comment the "saxon:evaluate", it is OK running but out of my expectation. JDK: IBM JDK1.4.1. classpath:jdom.jar, xalan.jar, xercesImpl.jar, xml-apis.jar...
[05-8-18 17:56:00:874 CST] 17d8a8e5 SystemErr R javax.xml.transform.TransformerException: java.lang.NoSuchMethodException: For extension function, could not find method java.lang.String.evaluate([ExpressionContext,] ). at org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:405) at org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:423) at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:258) at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:465) at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:234) at org.apache.xpath.Expression.executeCharsToContentHandler(Expression.java:349) at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:311) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:178) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:431) at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:285) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1900) at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1822) at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:348) at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:284) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:429) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:215) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:699) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:699) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:429) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:215) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:153) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:429) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:215) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2318) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2185) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1263) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:671) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1179) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1157)
|