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

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

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

Incorrect error highlighting and no completion when schema has substitutes

Created: 28 May 08 23:35   Updated: 07 Nov 08 20:39
Component/s: XML editing
Fix Version/s: Diana 8445, Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Relates
This issue relates to:
IDEADEV-32773 No XML autocompletion for child elements Normal Resolved
 

Fixed in build: 8,421


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

<!--
When typed in full, xml auto-completion for attributes kicks in.
-->
<management:jmx-server

<!--
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.



 All   Comments   Work Log   Change History      Sort Order:
Andrew Perepelytsya - 03 Jun 08 18:00
Max, thanks for the fix! It brought the pleasure part back into development

Ross Mason - 12 Jun 08 10:29
Thanks for the fix guys. this makes a huge difference for IDEA/Mule users

Ross Mason - 12 Jun 08 11:17
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!