Skip to main content

Eclipse Community Forums
Forum Search:

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

I am having trouble understanding URIConverter. I have a serialized
(XMI) file from a colleague with the following content (a string
------------------------------------------------------------ --
<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/;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.

Previous Topic:Referenced attributes
Next Topic:URIConverter question.
Goto Forum:

Current Time: Mon Jun 25 04:41:32 GMT 2018

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

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

Back to the top