Namespace prefix ‘ref’ used but not declared in XML Publisher

Error

Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
	at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
	at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)

This Error generally due to higher BI Publisher versions.

If Word Properties of the XML Field has source something like ‘<?ref:xdo0040?>’ you will face this error

Solution

Make BI Publisher backward compatible.

 

Go to Options

options

Build -> Form field size  -> Set to Backward Compatible.

backward