xsd schema files inside jar file [message #135741] |
Tue, 30 August 2005 18:03 |
Eclipse User |
|
|
|
Originally posted by: brian.bonner.nospam.paraware.com
I have an XSD file with "noSchemaLocation" specified. This is actually
the schema that came with JT/Open (for the 400). I'd like to use this
schema to validate and help develop .xpcml documents. However, the xsd
is in a JAR file.
1. Is there an easy way to access a schema in a JAR without extracting
it if there is not a URI?
2. Is there a way to reference the schema in the JAR for inclusion in
the XML catalog?
Thanks.
|
|
|
Re: xsd schema files inside jar file [message #136233 is a reply to message #135741] |
Thu, 01 September 2005 11:56 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Brian,
Probably you can use jar:<url-of-jar>!/<path-to-xsd-in-jar>. E.g.,
jar:file://c:/temp/My.jar!/org/example/my.xsd. Some JVMs may not
support "jar" scheme and use "zip" or even "wsjar". (Note that EMF
supports an "archive" scheme that can be registered as a real live URL
scheme for the JVM using org.eclipse.emf.common.archive.Handler.register
and this scheme can access jars within jars and so on recursively.) I
think you should be able to use this same type of "jar" URL in the XML
catalog, but I'm not up on all the details about that...
Brian Bonner wrote:
> I have an XSD file with "noSchemaLocation" specified. This is
> actually the schema that came with JT/Open (for the 400). I'd like to
> use this schema to validate and help develop .xpcml documents.
> However, the xsd is in a JAR file.
>
> 1. Is there an easy way to access a schema in a JAR without
> extracting it if there is not a URI?
>
> 2. Is there a way to reference the schema in the JAR for inclusion in
> the XML catalog?
>
> Thanks.
|
|
|
Re: xsd schema files inside jar file [message #153388 is a reply to message #136233] |
Thu, 22 December 2005 21:59 |
Eclipse User |
|
|
|
Originally posted by: brian.bonner.nospam.paraware.com
Hi Ed,
thanks for the reply. is there a way to use jar with a variable path?
I'm using maven which is including the jar file on my classpath using
the m2_repo (repository) variable.
thanks for the other tip.
Brian
Ed Merks wrote:
> Brian,
>
> Probably you can use jar:<url-of-jar>!/<path-to-xsd-in-jar>. E.g.,
> jar:file://c:/temp/My.jar!/org/example/my.xsd. Some JVMs may not
> support "jar" scheme and use "zip" or even "wsjar". (Note that EMF
> supports an "archive" scheme that can be registered as a real live URL
> scheme for the JVM using org.eclipse.emf.common.archive.Handler.register
> and this scheme can access jars within jars and so on recursively.) I
> think you should be able to use this same type of "jar" URL in the XML
> catalog, but I'm not up on all the details about that...
>
>
> Brian Bonner wrote:
>
>> I have an XSD file with "noSchemaLocation" specified. This is
>> actually the schema that came with JT/Open (for the 400). I'd like to
>> use this schema to validate and help develop .xpcml documents.
>> However, the xsd is in a JAR file.
>>
>> 1. Is there an easy way to access a schema in a JAR without
>> extracting it if there is not a URI?
>>
>> 2. Is there a way to reference the schema in the JAR for inclusion in
>> the XML catalog?
>>
>> Thanks.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02199 seconds