This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Extension functions in Oracle 9i
- From: dave beattie <dave dot beattie at TFSICAP dot COM>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Fri, 21 Jun 2002 11:05:31 +0100
- Subject: [xsl] Extension functions in Oracle 9i
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi there - can anybody help with this?
When I attempt to execute a java extension function from within my
stylesheet I get the error "ORA-29532 Java call teminated by uncaught java
exception: java.lang.NullPointerException". I am using this example from
Steve Muench but the same thing happens regardless of the class or method I
attempt to call.
<!-- x.xsl: show value in Hexadecimal -->
<xsl:stylesheet version="1.0" exclude-result-prefixes="Int"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:Int="http://www.oracle.com/XSL/Transform/java/java.lang.Integer">
<xsl:template match="/">
<xsl:variable name="x" select="99"/>
<!-- Invoke public static toHexString() method on current node "." -->
<x-hex><xsl:value-of select="Int:toHexString($x)"/></x-hex>
</xsl:template>
</xsl:stylesheet>
Any suggestions gratefully received.
Thanks,
Dave Beattie
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list