|
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 |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03155 seconds