Re: Oracle Extension Functions

Subject: Re: Oracle Extension Functions
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Tue, 13 Jun 2000 18:17:20 -0400
Here's a simple example that prints the value of
the 'x' variable in hex using the java.lang.Integer class.

For more info, see the extfunc.html file that accompanies
the Oracle XML Parser v2 download.

<!-- 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>

Run this stylesheet against any input document 'x.xml' like:

 $ oraxsl x.xml x.xsl

to get:

<x-hex>63</x-hex>
______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
Business Components for Java & XSQL Servlet Development Teams
Oracle Rep to the W3C XSL Working Group
Author "Building Oracle XML Applications", O'Reilly, Oct 2000
----- Original Message ----- 
From: <AlexK@xxxxxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxx>
Sent: Tuesday, June 13, 2000 9:43 AM
Subject: Oracle Extension Functions


| Does anyone have an example of XSL code which uses extension elements with
| the Oracle XSL processor?
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread