URI converting - set resource base [message #585257] |
Fri, 09 April 2004 10:49 |
Christian Stein 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"...
Regards,
Christian
--
Current directory: /
Green example "/my/folder/main1.xsd":
<xs:schema targetNamespace="MAINSPACE" ...>
<xs:import namespace="IMPORTSPACE" schemaLocation="./import.xsd"/>
</xs:schema>
Not working example "/my/folder/main2.xsd":
<xs:schema targetNamespace="MAINSPACE" ...>
<xs:import namespace="IMPORTSPACE" schemaLocation="import.xsd"/>
</xs:schema>
|
|
|
Powered by
FUDForum. Page generated in 0.02985 seconds