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.

Bug 96246

Summary: Duplicate namespace import should not be allowed.
Product: xml Reporter: htt <htt>
Component: Catalog SupportAssignee: issues@xml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description htt 2007-02-22 01:12:30 UTC
Create sample blueprint1
  File > New Project > Samples > SOA > BPEL BluePrints > BluePrint1
Create sample blueprint2
  File > New Project > Samples > SOA > BPEL BluePrints > BluePrint2
Create a Bpel module:
  File > New Project > SOA > BPEL Module
In Projects,
  expand all of BluePrint1 & BluePrint2
  => Notice they both include inventory.xsd and purchaseORder.xsd.
  right-click BpelModule1 > Properties
  select Project References; Add Project BluePrint1 & BluePrint2; OK
  expand BpelModule1
  right-click Process Files > New > File/Folder > XML > XML Schema; Finish
Open newXmlSchema.  In the source editor,
  right-click Referenced Schemas > Add > Imports
  expand all of By File and By Namespace
  select all available .xsd files; OK

==> Issue: with duplicate copies of inventory.xsd and purchaseORder.xsd, things
get rather disorganized and prone to errors: simply observe the association b/
namespace and prefix in the Add Import dialog box, source in the Source view
(xmlns), and Property sheet for each of the imports (open Window > Properties;
in the source editor, expand Referenced Schemas and click on each of the import).
Comment 1 htt 2007-02-22 01:13:25 UTC
Comments by nnguyen (07/02/21), "We should not allow duplicate namespace import
eventhough pointing to 2 different files.  So, I think its best to have the
checkboxes under one namespace be mutual exclusive (checking one will uncheck
others, or checking one would disable/strikeout others).
Comment 2 htt 2007-02-22 01:21:14 UTC
Also see issue 96249.