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 190584

Summary: For an added OASIS XML catalog system entries do not appear in DTD and XML schemas view
Product: xml Reporter: frcdw
Component: Catalog SupportAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal CC: pjiricka
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description frcdw 2010-09-24 13:06:14 UTC
Let's take the following OASIS catalog TestXMLCatalog.xml :
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

    <system systemId="http://www.website.com/schema.xsd"
            uri="file:/C:/schema.xsd" />

</catalog>

Add it to netbeans catalog with Tools> DTD and XML schemas then "add Catalog"
and selecting "Oasis catalog resolver" an browsing to the file above (TestXMLCatalog.xml).

As a result a new node appears as "Resolver at TestXMLCatalog.xml" but it has no child.

Add the following line to TestXMLCatalog.xml
<public publicId="Schema public Id"
            uri="file:/C:/schema.xsd" />

add anew the modified catalog, in the catalog view the node "Resolver at TestXMLCatalog.xml" has only one child : the one corresponding to the public entry.
Comment 1 Petr Jiricka 2011-01-11 16:22:29 UTC
Sounds like a bug - not sure if this ever worked. I don't think this is considered a primary IDE feature, lowering priority to P3. 

Just to confirm - what is the main reason for adding the catalog to the registry? To provide code completion based on the schema? That should normally work even without adding a catalog.
Comment 2 frcdw 2011-01-11 16:42:00 UTC
A catalog is very handy when you work with no internet access.
You can manage to avoid validating processes (e.g. in a build step of a build suite) to fail when facing network failures.
Please note that Netbeans off the self catalogs are not comprehensive.
Comment 3 Martin Balin 2015-09-17 13:17:00 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.