Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
XML editing
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Sergei Ivanov
    2 years ago (20 May 2009 15:32)
  • Updated by   root
    2 years ago (17 Jan 2010 21:15)
  • Jira: IDEADEV-36922
    (history, comments)
 
IDEA-48971 XSD editing: good code is red (referring to ##other in the imported namespace)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
3 Attachments
test1.xml   (383 B) test1.xsd   (1 KB) test2.xsd   (679 B)
Please see the attached files.
test1.xml validates successfully, but the nested element <simple/> is highlighted in red as "Element simple is not allowed here". In fact, it should be allowed, because it matches ##other in the test2 namespace.
If I uncomment one of the lines in test1:simpleType definition, IDEA editor becomes happier and is able to resolve the nested <simple/> declaration, but validation fails with e.g. the following error:
cos-nonambig: WC["http://test/xsd/test1/test1"] and WC[##other:"http://test/xsd/test1/test2"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments