XML-25008 When Trying to Find the Stylesheet as XML DB Repository Resource (Doc ID 1324253.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle XML Developers Kit - Version: 11.2.0.1 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms


When trying to find the stylesheet and referred XML file in Oracle XML DB Repository it does not work:

In XSQL file there is a reference to the stylesheet like this:
<?xml-stylesheet type="text/xsl" href="/public/my_stylesheet.xsl" ?>

In the stylesheet there is a reference to the XML file like this
select="document('/public/my_test.xml')"

You try to run it with XSQL command line and get XML-25008:
>java oracle.xml.xsql.XSQLCommandLine mytest.xsql
Oracle XML Developers Kit 11.2.0.1.0 - Production
XML-25008: Cannot find XSLT Stylesheet: /public/my_stylesheet.xsl

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms