Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Can't Reproduce
Assignee
Maxim Mossienko
Subsystem
XML editing
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Rob Harrop
    5 years ago (22 Mar 2006 18:09)
  • Updated by   Rob Harrop
    5 years ago (13 Sep 2006 16:36)
  • Jira: IDEA-7155
    (history, comments)
 
IDEA-7155 XML Code Completion does not work for XSD type used cross-schema
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
You can see this in Spring by trying to edit the 'testUtilNamespace.xml' file. It uses the <util:namespace/> tag which extends 'mapType' in the 'beans' schema. This results in completely unpredictable validation in the IDE and no code completion. When running the XML file through Xerces with validation it works as expected.

Issue was resolved
Comments (3)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
22 Mar 2006 18:25
5 years ago
Do you try it with following code:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:util="http://www.springframework.org/schema/util"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

    <util:properties id="myProperties"
                     location="classpath:org/springframework/beans/factory/config/util.properties"/>

    <util:constant id="min" staticField="java.lang.Integer.MIN_VALUE"/>
</beans>
Maxim Mossienko
  Maxim Mossienko
22 Mar 2006 18:34
5 years ago
What is wrongly highlighted and where completion does not work? All seems fine with 5.1.1 (build 4171) after fetching schemas.
Maxim Mossienko
  Maxim Mossienko
22 Mar 2006 20:30
5 years ago
In 4172 it works as expected (probably the issue is the same as IDEA-31626)