Page 1 of 1

Show Definition cannot find definition

Posted: Wed Feb 01, 2012 10:36 pm
by Laurent CAPRANII
The "Show Definition" function is not always capable to locate element definition, even on a valid document.

My document contains these elements (this is ISO TC/211 stuff):

Code: Select all


<gfc:FC_FeatureCatalogue ...>
<gmx:name xsi:type="gmd:PT_FreeText_PropertyType">...</gmx:name>
...
</gfc:FC_FeatureCatalogue>
"Show Definition" says
Cannot find definition for element: gmx:name
"Show Definition" is able to locate gfc:FC_FeatureCatalogue. Below is gfc:

Code: Select all

<xs:complexType name="FC_FeatureCatalogue_Type">
<xs:complexContent>
<xs:extension base="gmx:AbstractCT_Catalogue_Type">
...
</xs:extension>
</xs:complexContent>
</xs:complexType>
And this is gmx, where I expected "Show Definition" to reach:

Code: Select all

<xs:complexType name="AbstractCT_Catalogue_Type" abstract="true">
<xs:complexContent>
<xs:extension base="gco:AbstractObject_Type">
<xs:sequence>
<xs:element name="name" type="gco:CharacterString_PropertyType"/>
...
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
I don’t get why oXygen can’t do it. Other tools do.

Re: Show Definition cannot find definition

Posted: Wed Feb 01, 2012 10:56 pm
by george
Thanks for letting us know about this issue. We have a very recent similar report and we have this logged as EXM-23127 in our issue tracking system. This is planned to be solved in our next release. We will update this forum entry as soon as we have progress on this.
The problem is related with the presence of xsi:type on the element from the instance document, in that case the detection of the element definition fails.
As a workaround you may try to use the action on a parent or child element that do not have xsi:type set and then locate the actual element definition from there.

Best Regards,
George

Re: Show Definition cannot find definition

Posted: Wed Feb 08, 2012 5:34 am
by Laurent CAPRANII
george wrote:The problem is related with the presence of xsi:type on the element from the instance document, in that case the detection of the element definition fails.
Speaking of xsi:type, it would be nice to have Show Definition operate on that value too.

Re: Show Definition cannot find definition

Posted: Fri Feb 17, 2012 5:06 pm
by george
The initial issue was already solved, and the presence of xsi:type does not break the support for locating the element definition in the schema. This will be available in our next release.

I also logged an issue to identify a type in the schema if the Show Definition action is triggered having the caret inside an xsi:type value.

Best Regards,
George

Re: Show Definition cannot find definition

Posted: Tue Jul 10, 2012 4:50 pm
by Radu
Hi,

Oxygen 14.0 which was released a couple of weeks ago should have this issue fixed.

Regards,
Radu