[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Oracle Extension Functions

Subject: Re: Oracle Extension Functions
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Tue, 13 Jun 2000 18:17:20 -0400
oracle hex
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.