Issues with NameSpace import

This should cover W3C XML Schema, Relax NG and DTD related problems.
bpatel91
Posts: 1
Joined: Sun Feb 16, 2020 6:43 am

Issues with NameSpace import

Post by bpatel91 » Sun Feb 16, 2020 6:50 am

Im trying have my namespace imported but for some reason it will not budge.
Ive tried this as well as adding at

Code: Select all

import schema namespace r = "http://www.w3.org/2001/XMLSchema" at "Assignment-Xquery3.xsd";
I keep getting this error:

Code: Select all

Error in schema http://www.w3.org/2001/XMLSchema: No valid schema was found
I tired "-Instance" as well but to no luck. I am run Saxon EE. This was the template given by my Professor.

tavy
Posts: 235
Joined: Thu Jul 01, 2004 12:29 pm

Re: Issues with NameSpace import

Post by tavy » Tue Feb 18, 2020 10:51 am

Hello,

I an not sure what you want to do. Maybe you want to declare a prefix for the schema, something like this:

Code: Select all

declare namespace r = "namespace of Assignment-Xquery3.xsd"
.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply