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 141858 - Design doesn't show refered element
Summary: Design doesn't show refered element
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 11:54 UTC by faramir2
Modified: 2016-07-07 09:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
xsd schema file (657 bytes, text/xml)
2008-07-28 11:55 UTC, faramir2
Details
screenshot of design tab (10.87 KB, image/jpeg)
2008-07-28 11:56 UTC, faramir2
Details
screenshot of schema tab (39.90 KB, image/jpeg)
2008-07-28 11:56 UTC, faramir2
Details
column view (20.01 KB, text/plain)
2008-07-29 17:43 UTC, Samaresh Panda
Details
design view (17.12 KB, image/png)
2008-07-29 17:43 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description faramir2 2008-07-28 11:54:17 UTC
I have written newXmlSchema.xsd file:

--- CUT ---
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xi="http://www.w3.org/2001/XInclude"
            targetNamespace="newXmlSchema.xsd"
            xmlns:tns="newXmlSchema.xsd"
            elementFormDefault="qualified">
    <xsd:import namespace="http://www.w3.org/2001/XInclude" schemaLocation="http://www.w3.org/2001/XInclude.xsd"/>
    <xsd:element name="includes">
        <xsd:complexType>
            <xsd:sequence maxOccurs="unbounded" minOccurs="0">
                <xsd:element ref="xi:include"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>
--- CUT ---

When I switch tab to "Design", it shows only "includes" and after expand it "Sequence" but without any element with 
"references to" label. In schema tab that element is showed.

Additionaly in "Referenced Schemas/import {http://...}" NetBeans display: "Broken reference", but xsd is validated:

--- cut ---
XML validation started.

0 Error(s),  0 Warning(s).
XML validation finished.
--- cut ---
Comment 1 faramir2 2008-07-28 11:55:13 UTC
Created attachment 65781 [details]
xsd schema file
Comment 2 faramir2 2008-07-28 11:56:12 UTC
Created attachment 65782 [details]
screenshot of design tab
Comment 3 faramir2 2008-07-28 11:56:45 UTC
Created attachment 65783 [details]
screenshot of schema tab
Comment 4 Sonali Kochar 2008-07-28 17:22:23 UTC
Tony,

Can you test this with the latest build?

thx
Comment 5 Sonali Kochar 2008-07-28 18:05:07 UTC
oops, updated wrong bug. Pls. ignore last evaluation.
Comment 6 Samaresh Panda 2008-07-28 21:08:14 UTC
Are you trying this using 6.1? Do you want to try this with a 6.5 build? Seems to be working for me.
Comment 7 faramir2 2008-07-28 21:22:27 UTC
Yes, I'm using NetBeans 6.1 with all patches installed today.
I think that 6.5 Milestone 1 is pre-beta version, that shouldn't be used for production.
Comment 8 tonybeckham 2008-07-28 22:17:06 UTC
I am able to see all the behaviors with latest daily build.

Product Version: NetBeans IDE Dev (Build 200807281401)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)
Comment 9 Samaresh Panda 2008-07-29 17:42:39 UTC
Product Version: NetBeans IDE Dev (Build 200807290201)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Userdir: C:\Users\Samaresh\.netbeans\dev

See images of how they look like:

Comment 10 Samaresh Panda 2008-07-29 17:43:23 UTC
Created attachment 65969 [details]
column view
Comment 11 Samaresh Panda 2008-07-29 17:43:57 UTC
Created attachment 65970 [details]
design view
Comment 12 Samaresh Panda 2008-07-29 18:10:30 UTC
Somehow, I do see this issue on Solaris. Let me investigate...
Comment 13 Martin Balin 2016-07-07 09:56:08 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