This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When using the autocomplete feature (ALT+SPACE) within the source view of the XML Schema Editor, some optional attributes do not appear for the Sequence field. Autocomplete under Sequence should include minOccurs and maxOccurs. See screenshot for further clarification. Please check that all optional attributes are available for autocompletion in the XML Schema Editor.
Created attachment 57717 [details] XSD missing code completion suggestions in places
I'll try to fix this for 6.5.
Briefly looking into the meta schema reveals that element inside a sequence is of type "localElement" and has only four attributes which are currently being offered. OTOH, attributes such as name, min/maxOccurs should also appear, but not based on the model from meta-schema. So I guess, there is something more to the spec that our model is not aware of. Will look into it.
*** Issue 138863 has been marked as a duplicate of this issue. ***
Will look into it again...
It seems like the problem with complex types inheritance via restriction mechanism and prohibited attributes. For example, there are complex types 1. element - abstract with attributes a) type b) abstract c) minOccurs etc. 2. topLevelElement - restriction of element, which prohibits usage of attribute "minOccurs" and some other 3. localElement - restriction of element, which prohibits usage of attribute "abstract" and some other But in attached screenshoots you can see that code assistant suggests only prohibited attributes instead of inherited attributes excluding prohibited. So on we can make conclusion that there are problems with inheritance and "use" option of attributes --------------------- Working environment: Ubuntu 10.04 NetBeans 7.0.1 java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.2) OpenJDK Server VM (build 19.0-b09, mixed mode)
Created attachment 113450 [details] example of topLevelElement attributes
Created attachment 113451 [details] example of localElement attributes
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss