|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Oracle Extension Functions
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








