473,473 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XSchema references, how does it actually work?

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
Jul 20 '05 #1
3 1549
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\Perso n.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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Jul 20 '05 #2
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" <ht@inf.ed.ac.uk> wrote in message
news:f5*************@erasmus.inf.ed.ac.uk...
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\Perso n.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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged

spam]
Jul 20 '05 #3
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" <ht@inf.ed.ac.uk> wrote in message
news:f5*************@erasmus.inf.ed.ac.uk...
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\Perso n.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: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged

spam]

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xaradas | last post by:
Someone could tell me how can I validate an xml file against an Xschema using php? Thanks and sorry for my little english. ------------------------------------- "Computer Science is no more...
2
by: Kaptain524 | last post by:
Hello, I am using PHP 5.0.4 with Apache 2, on WinXP Pro. This behavior appears to be fundamental however, and should not be affected by platform. It would seem that there is some kind of bug...
4
by: Binesh Bannerjee | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. In another thread, Martin Honnen <mahotrash@yahoo.de> wrote: > XHTML is XML so there is no problem to use it inside of an XML document e.g. > ...
33
by: JKop | last post by:
I understand variables/objects and pointer variables perfectly: int X = 5; int* pX = &X; *pX = 4; int** ppX = &pX:
0
by: Tjerk Wolterink | last post by:
I want to define an schema that allows the following documents: The name of the elements do not matter, but all the elements should have the following attribute: <xsd:attribute name="type"...
9
by: Tjerk Wolterink | last post by:
I have an xml document that conforms to my xschema document. Now i wanted to use xinclude in my xml document. But when i want to validate the xml document to the xschema i get the following...
25
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I...
11
by: codebloatation | last post by:
I know how to use references but i DO not get WHY they exist other than to add to the language. Are they actually needed for anything?
28
by: Frederick Gotham | last post by:
When I was a beginner in C++, I struggled with the idea of references. Having learned how to use pointers first, I was hesitant to accept that references just "do their job" and that's it. Just...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.