This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243786

Summary: schema based code completion does not list enumeration from other namespace
Product: xml Reporter: kumm
Component: Schema ToolsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description kumm 2014-04-12 15:40:10 UTC
I have an xsd, where i define an element:
---el.xsd---
<schema version="1.0"
           xmlns="http://www.w3.org/2001/XMLSchema"
           xmlns:a="urn:attributes"
           targetNamespace="urn:elements"
           elementFormDefault="qualified">
    <import namespace="urn:attributes" schemaLocation="attr.xsd"/>
    <element name="el">
        <complexType>
            <attribute ref="a:attr"/>
        </complexType>
    </element>
</schema>

In an other namespace i define the 'attr' enumeration attribute.
---attr.xsd---
<schema version="1.0"
           xmlns="http://www.w3.org/2001/XMLSchema"
           targetNamespace="urn:attributes"
           attributeFormDefault="qualified">
    <attribute name="attr">
        <simpleType>
            <restriction base="string">
                <enumeration value="ONE"/>
                <enumeration value="TWO"/>
            </restriction>
        </simpleType>
    </attribute>
</schema>

Using theese schemas code completion can't list my enumeration.
<el
    xmlns="urn:elements"
    xmlns:a="urn:attributes"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:elements el.xsd" 
    a:attr="[CTRL_SPACE]"/>
Comment 1 Martin Balin 2016-07-07 09:56:36 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss