This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Extension functions in Oracle 9i


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]