XSchema references, how does it actually work?

K

Karl

Hi!

I'm having trouble with referencing different schemas. I'm not sure how it's
supposed to work. When I work on the files, the
targetNamespace="www.test.com/schemas/test.xsd" does not exist for real. I
get error messages when I import the types to other schemas. If I change to
a relative path, it works fine. The problem is that I have to remember to
change all references when I wish to deploy the files. It's error phrone and
tedious to have to change it all the time. Is there any solutions to this
problem?

regards

Karl Z
 
H

Henry S. Thompson

Most of your problems have been addressed by Priscilla's input, but
note that neither "www.test.com/schemas/test.xsd" nor
"C:\vcs\Source\Import_export_formats\Schemas\Person.xsd" are usable
URLs -- you should use e.g.
"file:///C:/vcs/Source/Import_export_formats/Schemas/Person.xsd"

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: (e-mail address removed)
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
 
K

Karl

I tried that, but it gives me the same error in the schema file "No content
model available for validation (possible empty DTD/Schema)", when I try to
save the xml file referencing the schema file.

Henry S. Thompson said:
Most of your problems have been addressed by Priscilla's input, but
note that neither "www.test.com/schemas/test.xsd" nor
"C:\vcs\Source\Import_export_formats\Schemas\Person.xsd" are usable
URLs -- you should use e.g.
"file:///C:/vcs/Source/Import_export_formats/Schemas/Person.xsd"

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: (e-mail address removed)
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged
spam]
 
K

Karl

I tried that, but it gives me the same error in the schema file "No content
model available for validation (possible empty DTD/Schema)", when I try to
save the xml file referencing the schema file.

Henry S. Thompson said:
Most of your problems have been addressed by Priscilla's input, but
note that neither "www.test.com/schemas/test.xsd" nor
"C:\vcs\Source\Import_export_formats\Schemas\Person.xsd" are usable
URLs -- you should use e.g.
"file:///C:/vcs/Source/Import_export_formats/Schemas/Person.xsd"

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: (e-mail address removed)
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged
spam]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top