Page 1 of 1

Issues with NameSpace import

Posted: Sun Feb 16, 2020 6:50 am
by bpatel91
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.

Re: Issues with NameSpace import

Posted: Tue Feb 18, 2020 10:51 am
by tavy
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