473,394 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 3687
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*****@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.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*****@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.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
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...
3
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...
1
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...
1
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...
0
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/...
10
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
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...
0
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.