Xalan Java Namespace extensions error...what am I doing wrong?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   David_Saintloth
Posted On:   Tuesday, July 2, 2002 09:23 AM

I've been using xalan java package for enabling xsl transformations in an app. I am building. Recently, I decided to use namespace extensions to provide java functionality inside the stylesheets, however when I try to transform some simple xml I get the following error: javax.xml.transform.TransformerException: For extension function, could not find method org.apache.xalan.stree.DocumentFragmentImpl.toUpperCase([ExpressionContext,] ) The file looks like this: Here is the load I want to uppercase. The xsl file looks like this:    More>>

I've been using xalan java package for enabling xsl

transformations in an app. I am building. Recently, I decided
to use namespace extensions to provide java functionality
inside the stylesheets, however when

I try to transform some simple xml I get the following error:




javax.xml.transform.TransformerException: For extension function,
could not find method org.apache.xalan.stree.DocumentFragmentImpl.toUpperCase([ExpressionContext,] )



The file looks like this:


			


Here is the load I want to uppercase.







The xsl file looks like this:


			

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="java"
exclude-result-prefixes="java">
.
.
.












Why is the transformer not able to see the java classes?
all the required packages are on the class path obviously
as without extensions the transformation works
perfectly. The trouble comes when I add the extensions
and every site I could find on xalan java extensions
specifies enabling it in the way I have above.


Any help that you can provide would me much appreciated.



Regards,
Dsl

   <<Less
About | Sitemap | Contact