Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

Modular schemas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doug Eller - 23 Oct 2003 15:52 GMT
I'm working with the w3c's "Modular Xhtml schema". The problem I have is
that when I try to add the Schema Driver File to my schema collection, I get
the following error:

"Cannot resolve schemaLocation attribute."

The error occurs on the first <xs:include schemaLocation="xxxxx.xsd" />. The
only way I have been able to fix the problem is to use a fully qualified
file path i.e.:

<xs:include schemaLocation="file://D:\\myFolder\mySchema.xsd" />

There HAS to be a better way. If any of you have looked at modular schemas,
or even used ANY sort of schema or xslt includes, you will know that it
would be a real pain to go through EVERY file and change all the paths. This
would be especially bad if you were to distribute the collection of schemas
to multiple locations. (which I am.)

The actual real world application of what I am doing involves pulling these
schema files from a webservice, so I have a sneaking suspicion that the best
way to handle this would be to cache all the files (including the driver
file) and somehow manage/alter the include references virtually. Does anyone
know how to do this? Should I be looking more into XmlResolver?

One thing that occurs to me is, "Should I even be relying on the driver file
at all? Can I just load up all the included schemas and do what I mentioned
earlier and create a virtual connection between all of them with no actual
file defining the including?"

AAAAGGGGHHHHH!!!

help?
Dare Obasanjo [MSFT] - 23 Oct 2003 18:17 GMT
Are the files relative to the current directory the application is launched
from or the directory were the file was loaded from?

--
This posting is provided "AS IS" with no warranties, and confers no rights.

> I'm working with the w3c's "Modular Xhtml schema". The problem I have is
> that when I try to add the Schema Driver File to my schema collection, I get
[quoted text clipped - 28 lines]
>
> help?
Doug Eller - 23 Oct 2003 18:49 GMT
The paths to the included files are relative to the including file, not to
the application.

> Are the files relative to the current directory the application is launched
> from or the directory were the file was loaded from?
[quoted text clipped - 44 lines]
> >
> > help?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.