I have a BI Publisher template in R12 eBusiness suite. The purpose is to produce some xml output. However, a i produce the output I need to replace special chagractes such as & , spaces etc with the encoded equivalents.
I have attempted to use encode-fo-uri, as the XSLT Processor for Java should allow this. http://docs.oracle.com/cd/B19306_01/appdev.102/b14252/adx_j_xslt.htm#sthref221. In this document it says : Oracle XDK XSLT processor implements both the XSLT and XPath 1.0 standards as well as the current working drafts of the XSLT and XPath 2.0 standards. The XDK XSLT processor supports the XPath 2.0 functions and operators. Hence I would expect it to find encode-for-uri
Howver when I run this I receieve error:
oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'encode-for-uri
The code is:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:value-of select='xdoxslt:encode-for-uri("ABC")' />
Help would be much appreciated.
Unfortunately, the documentation you've found does not apply to BIP, it's for the Oracle XDK.
The exception class you're getting confirms that BIP doesn't use the XDK parser.
Here's the available extensions for the latest version of BIP :
I don't see "encode-for-uri" in the list.