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]

Re: Extension functions in Oracle 9i


I just tried this using our 9.2.0.2 version of Oracle XDK for Java
(downloaded from OTN) and when I do:

C:\temp>oraxsl9202 x.xsl x.xsl

I get:

<?xml version = '1.0'?>
<x-hex>63</x-hex>


What version of the Oracle XDK for Java do you have loaded
into your database?
__________________________________________________________________
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp
----- Original Message ----- 
From: "dave beattie" <dave.beattie@TFSICAP.COM>
To: <XSL-List@lists.mulberrytech.com>
Sent: Friday, June 21, 2002 12:05 PM
Subject: [xsl] 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
| 
| 


 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]