History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5076
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Alexander Demidovich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

edit XML files, having Schema

Created: 09 Mar 06 11:56   Updated: 20 Mar 06 17:50
Component/s: XML editing
Fix Version/s: Demetra 5201, 5.1.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: WinXP

Build: 4,155
Fixed in build: 5,191
Severity: High


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 20 Mar 06 16:51
So following file (given "aaa" is targetNamespace for you schema) has 'label' erroneously highlighted by IDEA?
<userrole xmlns="aaa">
<label></label>
</userrole>