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.
Reproduced in build 061204_17 (JDK 1.6.0-beta2). To reproduce the bug: - create a new schema; - in column view add a new global element of a build-in type (e.g. xsd:decimal) - validate the schema. The schema becomes invalid because of a prefix that is not added to "decimal". src-resolve.4.1: Error resolving component 'decimal'. It was detected that 'decimal' has no namespace, but components with no target namespace are not referenceable from schema document 'file:/D:/Src/XMLJavaApp/src/pkg4/newXmlSchema.xsd'. If 'decimal' is intended to have a namespace, perhaps a prefix needs to be provided...
Seems to be a side-effect of the change to schema factory usage of createElementNS AND change to more agressive namespace consolidation.
The problem is, the agressive namespace consolidation just skipped attribute values of QName kind and went on with the refactoring. This cause the namespace part of the QName value unresolvable. The fix is, for domain model to declare list of QName-valued attributes and the consolidation just go ahead with refactoring the value, if known, or just leave the in-doubt prefix declaration untouched.
Created attachment 36703 [details] patch in xam
Created attachment 36704 [details] patch in xdm
Created attachment 36705 [details] patch in schema/api
Created attachment 36707 [details] patch in wsdl/api
Reviewed by Chris, and committed to release551.
closed
Verified in build 20061224 (release551).
*** Issue 92271 has been marked as a duplicate of this issue. ***