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.
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.
Please could you provide sample document nad catalog snippet? Thank you
<?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>
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.
So I mark this issue as enhacment.
It's very similar to issue 40338 that was fixed yesterday. urn:publicid: syntax is supported.