Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
XML editing 
Affected versions
Fixed in
Fixed in build
Next build 
Fixed in build
8421
  • Submitted by   Maxim Mossienko
    20 months ago (28 May 2008 23:35)
  • Updated by   root
    3 weeks ago (17 Jan 2010 20:01)
  • Jira: IDEA-44134
    (history, comments)

IDEA-44134

Incorrect error highlighting and no completion when schema has substitutes

0
I'm not sure if it's a new issue or related, but the real problem is as follows. Consider the following xml:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
xmlns:management="http://www.mulesource.org/schema/mule/management/2.0"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
http://www.mulesource.org/schema/mule/management/2.0 http://www.mulesource.org/schema/mule/management/2.0/mule-management.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<--
However, auto-completion for element names doesn't work.
-->
<!<management:>

</mule>

Check the comments for 2 scenarios. This is a demo with substitution groups in XML schemas, which are valid schemas btw. E.g. other commercial xml-dedicated editors like Oxygen XML work perfectly with them and provide auto-completion.

Issue was resolved
Comments (3)
 
History (1)
 
Links
 
Andrew Perepelytsya
  Andrew Perepelytsya
03 Jun 2008 18:00
(20 months ago)
#permalink
Max, thanks for the fix! It brought the pleasure part back into development ;)
Ross Mason
  Ross Mason
12 Jun 2008 10:29
(19 months ago)
#permalink
Thanks for the fix guys. this makes a huge difference for IDEA/Mule users
Ross Mason
  Ross Mason
12 Jun 2008 11:17
(19 months ago)
#permalink
I'm so happy about this fix I just blogged about what it means for Mule users: http://rossmason.blogspot.com/2008/06/mule-and-intellij-idea.html
Thanks again!