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.
After I tried to add a global element that is not bound to a namespace in the Text veiw and switched to Schema Columns, Columns View shows global element even though the element is invalid for this given schema. See For eg:- <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:po="http://www.example.com/PO1" targetNamespace="http://www.example.com/PO1" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xsd:element name=something"/> </schema> here <xsd:element name=something"/> is not bound. Ideally schema model should not add this as a valid element.
The targetNamespace applies to all global elements and attributes regardless of whether formDefault is qualified or unqualified. The formDefault is applied to locally defined elements and attributes which may not require qualification depending on the value of the form default. The schema below requires that something be defined in the targetNamespace. Local elements do not require qualification.
I agree this is not a valid issue.