|Format of hrefs in serialised resource [message #596816]
||Thu, 06 October 2005 13:13
Originally posted by: alan.byrne.adaptive.com|
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
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/www.w3.org/2001/XMLSchema.xsd#//integer;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/www.w3.org/2001 inside the jar located at
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.
Powered by FUDForum
. Page generated in 0.02122 seconds