XSD doc: issue with local element definitions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
axpxsx
Posts: 1
Joined: Fri May 29, 2015 12:40 pm

XSD doc: issue with local element definitions

Post by axpxsx »

Hello,

I have noticed some strange inconsistancies when using the WSDL documentation generator on XSD models. We have a number of parameter types externally defined in other XSD files. However the elements are defined locally in the message structure. The problem is that for locally defined parameters there is no link to the type definition. However if the parameter is globally declared the link to the type definition will be generated in the "model" and "children" section of the HTML document.

Here is an example. The definition of the complex "MessageParameterType" of the locally declared "Parameter" element will not show up in the generated HTML documentation:

Code: Select all


...
<xs:include schemaLocation="message_parameters.xsd"/>
<xs:complexType name="MessageRequestType">
<xs:complexContent>
<xs:sequence>
<xs:element name="Parameter" type="MessageParameterType"/>
</xs:sequence>
</xs:complexContent>
</xs:complexType>
<xs:element name="MessageRequest" type="MessageRequestType"/>
</xs:schema>
However if I declare the parameter globally with a reference it will appear as a link to the type definition diagram in the model/children section:

Code: Select all


...
<xs:include schemaLocation="message_parameters.xsd"/>
<xs:complexType name="MessageRequestType">
<xs:complexContent>
<xs:sequence>
<xs:element ref="Parameter"/>
</xs:sequence>
</xs:complexContent>
</xs:complexType>
<xs:element name="MessageRequest" type="MessageRequestType"/>
<xs:element name="Parameter" type="MessageParameterType"/>
</xs:schema>
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: XSD doc: issue with local element definitions

Post by radu_pisoi »

Hello,

I managed to reproduce your problem. Thus, I will add an entry on our issue tracking system to fix it in a future oXygen version.

Unfortunately, it seems that the WSDL documentation does not contain entries for local elements or attributes.

However, I'm happy to know that you already found an workaround for this problem.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply