Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
XML editing 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4155
Fixed in build
5191
Severity
0
  • Submitted by   Alexander Demidovich
    3 years ago (09 Mar 2006 11:56)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31626
    (history, comments)

IDEA-31626

edit XML files, having Schema

0
If the schema includes itself or through the another schema, Idea highlights the errors on some elements, as not defined in this schema.
Example:

<xs:element name="userrole">
<xs:complexType mixed="true">
<xs:sequence minOccurs="0">
<xs:any namespace="http://www.w3.org/1999/xhtml ##targetNamespace" minOccurs="0" maxOccurs="unbounded"></xs:any>
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name="label">
<xs:complexType>
<xs:attribute name="key" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType
</xs:element>

It's impossible to use the "label" element inside of the "userrole" element though it's defined by the schema. Oxygen XML Editor and Xalan XML Parser accepts this combination as valid, so I except the IntelliJ will do the same.

Can you release a quick fix for us, please? It's critical for our projet. We have to use now the external tools to edit our xml files.

Environment: WinXP

Issue was resolved
Comments (1)
 
History (1)
 
Links
 
Maxim Mossienko
  Maxim Mossienko
20 Mar 2006 16:51
(3 years ago)
#permalink
So following file (given "aaa" is targetNamespace for you schema) has 'label' erroneously highlighted by IDEA?
<userrole xmlns="aaa">
<label></label>
</userrole>