Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » URI converting - set resource base
URI converting - set resource base [message #585257] Fri, 09 April 2004 10:49
Christian Stein is currently offline Christian SteinFriend
Messages: 29
Registered: July 2009
Junior Member
Hello NewsGroup (aka Ed...)!

is it possible to set a resource base which is prepended
to all *relative* schemaLocation tag values that *do not*
start with "./"?

The simple solution

map.put(URI.createURI("./"), URI.createURI("./my/folder/"));

does not always work here, as some schemaLocations just
contain the simple file name. A possible solution could be a
directory change to where the root schema is located. But,
AFAIK, you can't change users' current directory "user.dir"...



Current directory: /

Green example "/my/folder/main1.xsd":

<xs:schema targetNamespace="MAINSPACE" ...>

<xs:import namespace="IMPORTSPACE" schemaLocation="./import.xsd"/>


Not working example "/my/folder/main2.xsd":

<xs:schema targetNamespace="MAINSPACE" ...>

<xs:import namespace="IMPORTSPACE" schemaLocation="import.xsd"/>

Previous Topic:[xsd.resources.jar] Cache listing
Next Topic:Settable properties for XSDSimpleTypeDefinition
Goto Forum:

Current Time: Thu Oct 29 01:08:12 GMT 2020

Powered by FUDForum. Page generated in 0.02025 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top