You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by bu...@apache.org on 2006/02/08 04:45:15 UTC

DO NOT REPLY [Bug 38562] New: - [resolver] patch making XCatalog support actually functional plus other minor cleanup

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38562

           Summary: [resolver] patch making XCatalog support actually
                    functional plus other minor cleanup
           Product: XmlCommons
           Version: 1.x
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Resolver
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: hoju@visi.com


When I attempted to use XCatalog support, I found it was totally broken.  I've
patched it so that it works properly.  I'm attempting to move XMLC (
http://xmlc.enhydra.org/ ) to using Xerces2.  This means I lose the XCatalog
support that Xerces1 had.  If Resolver XCatalog support doesn't work, that puts
the kabosh on my attempt at Xerces2 support.

I've listed the problems with the current version [1] and Michael Glavassevich
mentioned that he would ship the updated version of resolver.jar in Xerces-2.8.0
if it got released sometime this month.  I hope that can be accomplished.

Patch coming up!....


[1] http://marc.theaimsgroup.com/?t=113869084200001&r=1&w=2

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 38562] - [resolver] patch making XCatalog support actually functional plus other minor cleanup

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38562





------- Additional Comments From hoju@visi.com  2006-02-08 05:19 -------
Created an attachment (id=17620)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17620&action=view)
Fixes broken XCatalog support

This patch provides the following...

1. "xcatalog.dtd" from the Xerces1 distribution

2. Fixes to XCatalogReader.java such as adding a default constructor allowing
for instantiation via reflection and support for the properly cased elements
defined by the DTD

3. Changed non-default constructor in XCatalog.java to also take a Catalog. 
Added the same to OASISXMLCatalogReader.java.  This allows for direct
instantiation of both of these catalogs and makes sure that they are "good
citizens" at creation.	This avoids users forgetting to call setCatalog()
leading to a NullPointerException when th catalog doesn't exist.  Also synched
up these to readers where applicable

4. Added "xcatalog.dtd" support to the BootstrapResolver.

5. Modified Catalog and Resolver to reference the root element for XCatalogs as
"XCatalog", not "XMLCatalog".

6. Modified SAXCatalogReader.java to normalize get/setCatlogParser methods to
treat nulls and empty strings the same way as well as provide just one "key"
strategy for the map.  Also added a setClassLoader() method so that
user-defined readers in a child classloader can be instantiated by the resolver
in a parent classloader.  Otherwise, it would be a guaranteed
ClassNotFoundException in, for instance, a J2EE environment.  There are other
cases of Class.forName(String), but I left those alone.  Didn't want to tread
on too much code.

7. Updated "resolver.xml" Ant build file to set debug, optimize, and
deprecation to true on <javac> as well as index to true on <jar>


Jake


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 38562] - [resolver] patch making XCatalog support actually functional plus other minor cleanup

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38562


apache-bugzilla@nwalsh.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From apache-bugzilla@nwalsh.com  2006-04-14 13:00 -------
I applied the patch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.