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 30833 - Please supply examples of how to map a url in a schema via the catalog
Summary: Please supply examples of how to map a url in a schema via the catalog
Status: RESOLVED INCOMPLETE
Alias: None
Product: usersguide
Classification: Unclassified
Component: XML (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: John Jullion-ceccarelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-07 16:14 UTC by mikeskells
Modified: 2010-02-16 11:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample catalog file (2.08 KB, text/xml)
2003-02-07 17:20 UTC, _ pkuzel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikeskells 2003-02-07 16:14:26 UTC
The help is generic, not task oriented, so examples as to 
the process that is used for the mapping would be useful, 
and some clues about how to fix a mapping etc
Comment 1 John Jullion-ceccarelli 2003-02-07 16:30:37 UTC
It's true that due to low staffing the help is focused on using the
tool rather than teaching the technology. But I'm currently working on
some NetBeans programming guides that will have code samples and
examples. I plan to cover XML in these guides as well.
Comment 2 _ pkuzel 2003-02-07 17:20:19 UTC
Created attachment 8848 [details]
Sample catalog file
Comment 3 _ pkuzel 2003-02-07 17:30:04 UTC
Mike wrote:

When I try to use the validate schema function on a schema which
references other schemas i get errors I have modified the catalog to 
use the URI form (I cant think of a way to see if I got it right)
The schemas validate OK with SMLSPY and SQC.
Lines 4,5,6 are import statements with the namespace only, refering to
other schemas to be referenced via the catalog

Petr's reply (1st attempt):

If I remember well you need to use <system> entries along with <uri>
catalog entries. Particular standards let a lot of freedom to
implementations. Xerces, the XML parser used in XML modules, uses for XML 
schema <include> and <import> well established (DTD) entity resolution
process.



2nd attempt:

Looking I catalog file I see possible cyclic dependency. The catalog
file itself uses name i.e. URN to reference schema location. It's
better to use address in this case. It's OK because catalogs are
intended to be private per host (they are not shared over network).

It tries to register several URI mappings but I think that there is
missing <system> mapping for completness (or implementation neutrality).

I hope it helps.
Comment 4 Irina Filippova 2010-02-16 11:45:24 UTC
Closing the issue and incomplete. The original request is too vague. In addition, help was provided.
Can be reopened if the request is still valid.