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 - Duplicate namespace import should not be allowed.
Summary: Duplicate namespace import should not be allowed.
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog Support (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-22 01:12 UTC by htt
Modified: 2007-09-25 01:34 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.