Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XML Catalog - reference to an XSD placed in a zip file
XML Catalog - reference to an XSD placed in a zip file [message #211041] Wed, 26 March 2008 13:33 Go to next message
Istvan is currently offline IstvanFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,

Is it possible to add a zipped XSD file to the XML catalog? Without
unzipping, of course :). For example, the URI would be
zip:///c:/some.zip/thing.xsd

Thanks,

Istvan
Re: XML Catalog - reference to an XSD placed in a zip file [message #211059 is a reply to message #211041] Wed, 26 March 2008 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------040006050104020307040704
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Istvan,

That should be possible, but you need to use a protocol/scheme that the
JVM knows about. Some JVMs use zip: while others use jar:. I'd expect
jar:file://c:/some.zip!/thing.xsd to work on most JVMs (and for zip to
work in place of jar for some). Note some important things. The form
is jar:<absoluteURI>!/path, so no "/" after the jar:. The absolute URI
will be something like file:/... or http://... Also note the !/
separating the absolute URI from the path within the jar/zip. I'm not
sure if WTP has EMF's URI converter hooked up and therefore would
support archive: as the scheme which supports access to jars within jars
nested to any level:
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=84327>

https://bugs.eclipse.org/bugs/show_bug.cgi?id=84327

Note that org.eclipse.emf.common.archive.Hander.register() can be called
to register "archive" as a real live protocol such that new
URL("archive:...").openStream would work properly.


Istvan wrote:
> Hi,
>
> Is it possible to add a zipped XSD file to the XML catalog? Without
> unzipping, of course :). For example, the URI would be
> zip:///c:/some.zip/thing.xsd
>
> Thanks,
> Istvan
>


--------------040006050104020307040704
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Istvan,<br>
<br>
That should be possible, but you need to use a protocol/scheme that the
JVM knows about.
Re: XML Catalog - reference to an XSD placed in a zip file [message #211075 is a reply to message #211059] Wed, 26 March 2008 14:09 Go to previous message
Istvan is currently offline IstvanFriend
Messages: 15
Registered: July 2009
Junior Member
Ed,

Thanks for the quick answer and for the additional information also!
For me, jar protocol works.

Istvan
Previous Topic:trinidad-api & trinidad-impl
Next Topic:Dependent Projects
Goto Forum:
  


Current Time: Sat Nov 29 10:08:48 GMT 2014

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

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