Bug 190584 - For an added OASIS XML catalog system entries do not appear in DTD and XML schemas view
For an added OASIS XML catalog system entries do not appear in DTD and XML sc...
Status: NEW
Product: xml
Classification: Unclassified
Component: Catalog Support
6.x
PC Windows XP
: P3 with 2 votes (vote)
: TBD
Assigned To: Svata Dedic
issues@xml
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-24 13:06 UTC by frcdw
Modified: 2011-09-15 13:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo