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.
Problem: Some attributes such as name="" or value="" are not suggested for nested tags. Even if the word is started (it has syntax coloring correctly) and manual invokation of CC, still there is no suggestion. Steps (for this example creating new enumeration): 1. Begin a new enumeration tag in the code below after the last one 2. CC can be used to complete xsd:enumeration but then space gives attribute fixed="" and nothing else 3. This is just one example, in other circumstances, thevalue name is never suggested <xsd:attribute name="myattrib"> <xsd:simpleType> <xsd:restriction base="xsd:String"> <xsd:enumeration value="First"/> <xsd:enumeration value="Second"/> <xsd:enumeration value="Third"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute>
Not clear what you're trying to do here. If you're using the following snippet in your schema, the xml tag will show attr value completion for "myattrib" and not "name". For example <hello myattrib="|"> and you should get First, Second, Third as the completion items at cursor.
Just an example showing that not all properties of tags are shown as suggestions and CC does not work for them, In the example snippet, try and add another enumeration value to the attribute. The only suggestion is 'fixed=""', shouldn't there be more such as value="".
You can also just add an new element. CC offers suggestion of name, form, maxOccurs, minOccurs, and ref but the properties for element go beyond those like, abstract and Nillable that are available via the properties window.
I think we discussed about this in a separate bug. See issue 129112. *** This issue has been marked as a duplicate of 129112 ***
Verified as duplicate