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 164571 - XML validation fails on import schemas
Summary: XML validation fails on import schemas
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Validation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 7 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 10:38 UTC by Vladimir Yaroslavskiy
Modified: 2012-02-09 14:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (26.74 KB, application/x-compressed)
2009-05-06 10:39 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yaroslavskiy 2009-05-06 10:38:56 UTC
Steps to reproduce:

1. Open attached project
2. Open schema ean.ucc/deliver/DespatchAdvice.xsd
3. Validate it, see errors:

XML validation started.
C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/DespatchAdvice.xsd:32,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:LineItemType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/DespatchAdvice.xsd:60,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:DocumentType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/DespatchAdvice.xsd:96,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:document' to a(n) 'element declaration' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:47,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:MultiMeasurementValueType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:59,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:MeasurementType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:65,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:TradeItemIdentificationType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:67,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:DetailLevelReferenceType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:69,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:DetailLevelReferenceType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:71,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:DetailLevelReferenceType' to a(n) 'type definition' component.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/SchemaProject/src/ean.ucc/deliver/TradeItemUnit.xsd:73,6
ERROR: src-resolve: Cannot resolve the name 'eanucc:DetailLevelReferenceType' to a(n) 'type definition' component.

10 Error(s),  0 Warning(s).
XML validation finished.
Comment 1 Vladimir Yaroslavskiy 2009-05-06 10:39:26 UTC
Created attachment 81625 [details]
Test project
Comment 2 Svata Dedic 2012-02-09 14:30:08 UTC
The schema XML-validates fine in 7.2 dev build, but the error you experienced seems to come from schema analysis, which is not done by 'Validate XML' action. What validation did you run ?