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 80292

Summary: Applying Russian Doll Design Pattern makes schema invalid
Product: xml Reporter: Andrei Chistiakov <ca-nb>
Component: Schema ToolsAssignee: Ayub Khan <ayubskhan>
Status: VERIFIED FIXED    
Severity: blocker CC: cwebster, htt, ivansidorkin, kozlov
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Andrei Chistiakov 2006-07-14 12:50:04 UTC
Reproduced in build 060712.

To reproduce the bug:

- open PO schema;
- switch to source view;
- invoke 'Apply Design Pattern...';
- set pattern type to Russian Doll (only 'Create a Single Global Element' checked);
- press Finish;
- validate the schema. It results in:
XML validation started.
src-simple-type.2.b: A <restriction> element was found that has neither a base
[attribute] nor a <simpleType> element among its [children]. One is required. [55] 
XML validation finished.
Comment 1 Ayub Khan 2006-07-15 03:52:49 UTC
Fix checked in, please verify in todays nightly
Comment 2 Andrei Chistiakov 2006-07-19 13:30:18 UTC
Verified in build 060718_1.