Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » URIConverter question.
URIConverter question. [message #599193] Fri, 01 December 2006 16:16
Eclipse UserFriend
Originally posted by: ashish.deshpande.cc

Hi,
I am having trouble understanding URIConverter. I have a serialized
(XMI) file from a colleague with the following content (a string
XSDSimpleTypeDefinition):
------------------------------------------------------------ --
<typeDefinition xsi:type="xsd:XSDSimpleTypeDefinition"
href=" jar:file:/D:/Projects/eclipse-projects/frevvo/workspace/com. gauss.forms/lib/org.eclipse.xsd_2.2.0.v200606271057.jar!/cac he/www.w3.org/2001/XMLSchema.xsd#//string;XSDSimpleTypeDefin ition=7 "/>
------------------------------------------------------------ --
As you can see, the href points to a specific file (D:/....). That path
does not exist on my machine making this file non-portable. So,
1) Can I make this portable? I can put the jar file in a common relative
directory (say ../../lib, which will work on all machines for my
application). Can I force the href to point to
jar:file:../../lib/org.eclipse etc.
instead of the D:/Projects?

2) How can I use a URIConverter to affect this? I know what the
URIConverter should do but I am unable to attach my custom URIConverter
to handle this URI. Specifically, MyCustomConverter.normalize(uri) is
never called for this URI even though I have done:
------------------------------------------------------------ --
resourceSet.setURIConverter (new MyCustomConverter());
------------------------------------------------------------ --
Is it that this particular URI is loaded using a Resource from a
different ResourceSet but I don't understand how to affect that.

Thx,
-Ashish
Previous Topic:Referenced attributes
Next Topic:URIConverter question.
Goto Forum:
  


Current Time: Tue Apr 23 12:18:03 GMT 2024

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

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

Back to the top