DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25043>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25043 load-external-dtd feature broken in 2.6 Summary: load-external-dtd feature broken in 2.6 Product: Xerces2-J Version: 2.6.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] before upgrading to 2.6, the code: builderFactory.setAttribute( "http://apache.org/xml/features/nonvalidating/load-external- dtd", new Boolean(false)); successfully kept the parser from attempting to resolve external dtd references in the absense of an internet connection. We cannot use a catalog solution because of licensing issues. Using DOMParser parser = new DOMParser(); parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external- dtd", false); only works if no other feature is set. In our case we need to also set http://xml.org/sax/features/namespaces to false which causes the external-dtd setting to be ignored, apparently no matter in which order the features are set. Rolling back to 2.5 fixes the problem. This is happening in XConfToolTask.java in Cocoon's cvs: http://cvs.apache.org/viewcvs.cgi/cocoon- 2.1/tools/src/anttasks/XConfToolTask.java?rev=1.10&content- type=text/vnd.viewcvs-markup (current revision with no attempt at modification). Thanks, Geoff --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
