Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Format of hrefs in serialised resource
Format of hrefs in serialised resource [message #596816] Thu, 06 October 2005 13:13
Eclipse UserFriend
Originally posted by:

I am attempting to use the XSDResourceImpl class to read an XSD and then
use an XMIResource to write it back out in XMI format.

This on the whole works, but in the XMI output, where there are references
to remote objects (e.g. a simpleType declaration that is imported from
another file), the output contains an href with an unknown format.

An example is

<facets xmi:type="xsd:XSDPatternFacet"
href=" jar:file:/C:/views/byrne_EAM_3.1.x/Solutions/Adaptive%20Arch itectures/webApplication/WEB-INF/lib/xsd.resources.jar!/org/ eclipse/xsd/cache/;XS DSimpleTypeDefinition=38/XSDPatternFacet=1 "/>

Now I am guessing that this means we are looking for a XSDPatternFacet
defined in the XSDSimpleTypeDefinition named 'integer', which can be
located in the XMLSchema.xsd file at the path
/org/eclipse/xsd/cache/ inside the jar located at
/C:/views/byrne_EAM_3.1.x/Solutions/Adaptive%20Architectures /webApplication/WEB-INF/lib/xsd.resources.jar

This is okay, but what do the equals (=) mean towards the end. I thought
it meant the 38th SimpleType and the 1st PatternFacet. Althtough I guess
it is probably the 39th and 2nd as its zero indexed.

Is there any documentation that anyone can point me to which describes
this format and how to interpret it. I believe my interpretation is
probably correct (ish), but I have found an example which does not seem to
comply with these rules.

Any help would be greatfully received.
Previous Topic:plug in for XSD
Next Topic:Format of hrefs in serialised resource
Goto Forum:

Current Time: Tue Jan 19 13:01:27 GMT 2021

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

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

Back to the top