Show Definition cannot find definition

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Laurent CAPRANII
Posts: 2
Joined: Wed Feb 01, 2012 9:52 pm
Contact:

Show Definition cannot find definition

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Show Definition cannot find definition

Post 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
George Cristian Bina
Laurent CAPRANII
Posts: 2
Joined: Wed Feb 01, 2012 9:52 pm
Contact:

Re: Show Definition cannot find definition

Post 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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Show Definition cannot find definition

Post 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
George Cristian Bina
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Show Definition cannot find definition

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply