473,888 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

relative import path in public schema

I'm using a public set of schemas for GML, avaiable at www.opengis.net/gml.
They all include or import each other but live in a folder hierarchy, so the
import statement includes schemaLocation= "../xlink/xlinks.xsd". I've written
a schema that imports the top level one using
schemaLocation= "http://schemas.opengis .net/gml/3.1.0/base/feature.xsd". I've
also tried downloading it and putting it in the schema cache but in both
cases the build fails with 'Cannot resolve the schemaLocation attribute'.

I'm using Visual C# 2005 Express and I'm new to all this, so I'd be very
grateful indeed if anyone knows what I should do to resolve this.

Thanks very much.

Lesley
Nov 12 '05 #1
2 3715
The schemaLocation attribute must specify a targetNamespace and a locaiton
separated by a whitespace. Your example below just has the location.

All the imports are resolved relative to the base path of the parent schema.
If you add your schema to the cache all imports within should be resolvable
relative to its path.

Zafar

"LesleyW" <Le*****@discus sions.microsoft .com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
I'm using a public set of schemas for GML, avaiable at www.opengis.net/gml. They all include or import each other but live in a folder hierarchy, so the import statement includes schemaLocation= "../xlink/xlinks.xsd". I've written a schema that imports the top level one using
schemaLocation= "http://schemas.opengis .net/gml/3.1.0/base/feature.xsd". I've also tried downloading it and putting it in the schema cache but in both
cases the build fails with 'Cannot resolve the schemaLocation attribute'.

I'm using Visual C# 2005 Express and I'm new to all this, so I'd be very
grateful indeed if anyone knows what I should do to resolve this.

Thanks very much.

Lesley

Nov 12 '05 #2
Thanks for your reply. The line does have the target namespace too. I just
didn't show it here. VS adds the schema to its cache (although I have also
tried including it manually) but still fails to resolve this path.

"Zafar Abbas" wrote:
The schemaLocation attribute must specify a targetNamespace and a locaiton
separated by a whitespace. Your example below just has the location.

All the imports are resolved relative to the base path of the parent schema.
If you add your schema to the cache all imports within should be resolvable
relative to its path.

Zafar

"LesleyW" <Le*****@discus sions.microsoft .com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
I'm using a public set of schemas for GML, avaiable at

www.opengis.net/gml.
They all include or import each other but live in a folder hierarchy, so

the
import statement includes schemaLocation= "../xlink/xlinks.xsd". I've

written
a schema that imports the top level one using
schemaLocation= "http://schemas.opengis .net/gml/3.1.0/base/feature.xsd".

I've
also tried downloading it and putting it in the schema cache but in both
cases the build fails with 'Cannot resolve the schemaLocation attribute'.

I'm using Visual C# 2005 Express and I'm new to all this, so I'd be very
grateful indeed if anyone knows what I should do to resolve this.

Thanks very much.

Lesley


Nov 12 '05 #3

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

Similar topics

2
1429
by: peter | last post by:
Hello all, I've read all the posts concerning relative imports of modules and I am glad I saw some consensus on a syntax. At this moment I am however bound to python 2.3. Does anyone know a good workaround (or a library) which can achieve a relative import for this python version kind regards
3
4861
by: Neter Smith | last post by:
I have run into a problem when trying to import a WSDL reference under VS 2003 and 1.1 of the framework. It appears as if it is in the generation of the proxy that things are failing. When I add the reference, I get the following error: C:\Inetpub\wwwroot\WebServices\samples\WSDL\dotnet\OblixSampleForDotNetWSDL\Web References\localhost\Reference.map(1): Custom tool error: Unable to import WebService/Schema. A schema with the namespace...
1
1889
by: ax | last post by:
Dear Experts, I really worry about the following problem.. There is one XML File on my PC located at C:\Test. Hence, there are 2 XSD files on the same path I make an absolut reference in the XML file to the 2 XSD files. xmlns:address="C:\Test\file_address.xsd"
1
8729
by: baling | last post by:
Hi.... Hi everybody, i have a code that i make in VBA and know I want to use this code in to VB6. But i don't know how to use that code in to VB 6.0 Please correct this code so i can use it in VB 6.0. Code: --- use in mainform ------- Option Compare Database Option Explicit
0
1348
by: Alan Isaac | last post by:
What is the recommended packaging of demo scripts or test scripts for a package that has modules that use relative imports? Example: Suppose I have the package structure: package/ __init__.py subpackage1/
10
194
by: test | last post by:
basic noob question here. i am trying to reference a package, i have the structure: mypack/ __init__.py test.py subdir1/ __init__.py mod1.py
4
1841
by: DG | last post by:
Alright, I have searched and searched and read many conversations on the topic of relative and absolute imports and am still not getting the whole thing through my skull. Highlights of what I've read: http://mail.python.org/pipermail/python-list/2007-January/422973.html http://groups.google.com/group/comp.lang.python/browse_thread/thread/b1e8dc93471a7079/8751c82cfe1ca3f2?lnk=gst&q=absolute+import#8751c82cfe1ca3f2...
0
1222
by: Stef Mientki | last post by:
hello, I'm running Python 2.5 and want my programs to run at least under Windows and Linux (preferable also Mac). So I guess I should always use relative paths. From most modules I can call a global function, that should import a dictionary from path deeper than the module itself. The import is done in the global function. In that global function, I get the modules path by
0
1514
by: Gabriel Genellina | last post by:
En Sat, 18 Oct 2008 05:52:04 -0300, Stef Mientki <stef.mientki@gmail.com> escribió: Why don't you let the caller tell you its own location, using __file__? The above code is too much magic for me. Yes.
0
9961
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10885
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10439
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9597
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5817
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6014
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4642
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 we have to send another system

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.