Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using xs:import or xs:include in schemas

394661Jun 11 2003 — edited Aug 11 2003
I want to be able to use xs:import or xs:include
when defining my schemas, but I haven't been successful
in registering a schema that uses these directives.

I either get a ORA-31000 error when using a schemaLocation from my own Web server, such as:

<xs:include schemaLocation="http://1.2.3.4/a.xsd" />

Or I get an ORA-04021 error when using a schemaLocation that points to a previously registered schema in XDB, such as:

... dbms_schema.register_schema('http://xmlns.foo.com/a') ...

then

<xs:import namespace="http://xmlns.foo.com/a"
schemaLocation="http://xmlns.foo.com/a" />

yields:

ORA-04021: timeout occurred while waiting to lock object XDB.table78_T (which is defined as a type in the http://xmlns.foo.com/a registered schema)...

Ideally, I'd like some example schemas that use xs:import as that is the directive that I'm most interested in.

Thanks,
-Darren
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2003
Added on Jun 11 2003
5 comments
891 views