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 - schema based code completion does not list enumeration from other namespace
Summary: schema based code completion does not list enumeration from other namespace
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 15:40 UTC by kumm
Modified: 2016-07-07 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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