Oracle 11g XMLType.transform has limited XSLT capabilities

S

Stryder

I'm using Oracle 11g's Java XDK to try and apply XSLT stylesheets to
XMLType objects. If I run the external utility $ORACLE_HOME/bin/
oraxsl on the XML and stylesheet it works fine.

However if I create an XMLTYPE out of the two and try and use the
XMLType.transform method, it seems to have limited capability.
Specifically it doesn't like using the Oracle Java XDK's ability to
use Java methods as XPath functions - this DOES work with oraxsl but
NOT in the database using XMLType.transform.

Is there a way to force XMLType.transform to use an XSLT processor
that recognizes these capabilities?

Thanks in advance for any help.
 
S

Stryder

Here's a spreadsheet that works with oraxsl but not with the XMLType
transform method. What is causing it to break is attempting to use
the math namespace here. Doesn't transform support the Oracle XSLT
extensions?

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform"
xmlns:math="http://www.oracle.com/XSL/Transform/java/java.lang.Math">
<xsl:template match="/">
<hello>hello, <xsl:value-of select="math:ceil(25.4)"/></hello>
</xsl:template>
</xsl:stylesheet>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top