Skip to main content



      Home
Home » Modeling » EMF » Documentation annotation for element in XSD
Documentation annotation for element in XSD [message #1506400] Wed, 10 December 2014 15:49 Go to next message
Eclipse UserFriend
Hello,

XSD from which I generate my model has annotation element with documentation in both element and compexType. When I generate the model I can get documentation via EcoreUtil.getDocumentation method for objects that were derived from complexType, but not for those that were derived from element. Is element annotation not supported? As far as I can see from w3.org having annotation documentation in element is legal.

Thanks,
Alex
Re: Documentation annotation for element in XSD [message #1506839 is a reply to message #1506400] Thu, 11 December 2014 00:29 Go to previous messageGo to next message
Eclipse UserFriend
Alex,

Comments below.

On 10/12/2014 9:49 PM, Alex Kravets wrote:
> Hello,
>
> XSD from which I generate my model has annotation element with
> documentation in both element and compexType. When I generate the
> model I can get documentation via EcoreUtil.getDocumentation method
> for objects that were derived from complexType,
Not sure about this terminology "object derived from complex type".
Each complex types maps to an EClass so I guess that's what you mean by
an object derived from a complex type...
> but not for those that were derived from element.
And where specifically are you looking for that documentation? People
have a bad tendency to assume that elements map to EClasses, but they don't.
> Is element annotation not supported? As far as I can see from
> http://www.w3.org/TR/xmlschema-0/#CommVers having annotation
> documentation in element is legal.

You might start by looking at your entire Ecore model as text to see all
the annotations with source="http://www.eclipse.org/emf/2002/GenModel"
and with a detail for key "documentation".
>
> Thanks,
> Alex
Re: Documentation annotation for element in XSD [message #1507390 is a reply to message #1506839] Thu, 11 December 2014 10:40 Go to previous message
Eclipse UserFriend
Thanks Ed.
Previous Topic:Unable to create diagrams
Next Topic:Moving class to a sub-package and synchronizing
Goto Forum:
  


Current Time: Fri Jul 04 20:49:52 EDT 2025

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

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

Back to the top