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 40338 - Catalog does not resolve urn:publicid:...
Summary: Catalog does not resolve urn:publicid:...
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 00:26 UTC by alexmilowski
Modified: 2007-09-25 01:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexmilowski 2004-02-21 00:26:57 UTC
If an instance has a namespace like:

  
urn:publicid:IDN+cde.berkeley.edu:milowski:schemas:example-form:event:200402

The resolver implementation from xml-commons in
apache will correctly map the URN to a public
identifier--which then maps to the schema.  This
does not work in Netbeans 3.6 beta.  It does work
fine in the current version of Xerces.
Comment 1 _ pkuzel 2004-02-25 14:49:07 UTC
Please could you provide sample document nad catalog snippet?

Thank you
Comment 2 alexmilowski 2004-02-25 16:35:08 UTC
<?xml version="1.0" encoding="UTF-8"?>

Here's the XML:

<event
xmlns="urn:publicid:IDN+cde.berkeley.edu:milowski:schemas:example-form:event:200402"
start-date="4/16/2004" >
<title>Practical RDF</title>
<location>Room 202, South Hall</location>
<presenter>Norm Walsh</presenter>
<description><p>Norm Walsh is coming to talk about pratical
RDF.</p></description>
</event>

Here's the catalog:

<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer='public'>                

    <uri
name="http://cde.berkeley.edu/~milowski/schemas/example-form/event/200402"
uri="event.xsd"/>

    <public publicId="IDN
cde.berkeley.edu//milowski//schemas//example-form//event//200402"
uri="event.xsd"/>

</catalog>

Here's the schema:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           
targetNamespace="urn:publicid:IDN+cde.berkeley.edu:milowski:schemas:example-form:event:200402"
           
xmlns="urn:publicid:IDN+cde.berkeley.edu:milowski:schemas:example-form:event:200402">

<xsd:element name="event">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="title" form='qualified' type="xsd:string"/>
<xsd:element name="location" form='qualified' type="xsd:string"/>
<xsd:element name="presenter" form='qualified' type="xsd:string"/>
<xsd:element name="description" form='qualified'>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="p" form='qualified' type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="start-date" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>

</xsd:schema>
Comment 3 _ pkuzel 2004-02-25 17:24:19 UTC
Thanks, I have not known

  urn:publicid:IDN+cde.berkeley.edu:milowski:sch...>

to

  <public publicId="IDN
 cde.berkeley.edu//milowski//schemas//example-form//event//200402"
   uri="event.xsd"/>

trick.

Definitelly eager to see specification URL.

The sad side is that it's not implemented in IDE. On the other hand if
Xerces supports it it should not be problem.
Comment 4 Petr Pisl 2004-02-27 13:35:18 UTC
So I mark this issue as enhacment. 
Comment 5 Milan Kuchtiak 2004-09-14 09:13:54 UTC
It's very similar to issue 40338 that was fixed yesterday.
urn:publicid: syntax is supported.