[ http://jira.codehaus.org/browse/MOJO-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Wiedmann closed MOJO-1470. --------------------------------- Resolution: Fixed Fix Version/s: xml-maven-plugin 1.0-beta-4 Applied, thank you! > Subsequent schemas can not be resolved, if their location is defined in an > apache-catalog > ----------------------------------------------------------------------------------------- > > Key: MOJO-1470 > URL: http://jira.codehaus.org/browse/MOJO-1470 > Project: Mojo > Issue Type: Bug > Components: xml > Environment: I try to validate xml-files against a catalog. > The catalog contains two public-entries, a main-namespace and an > included-namespace. > The schema for the main-namespace includes the included-namespace. > Reporter: Andreas Eternach > Assignee: Jochen Wiedmann > Fix For: xml-maven-plugin 1.0-beta-4 > > Attachments: Resolver.java > > > The schema for the included-namespace can not be resolved. > Problem is caused by wrong handling of namespaces in method > public LSInput org.codehaus.mojo.xml.Resolver.resolveResource(final String > pType, final String pNamespaceURI, final String pPublicId, > final String pSystemId, final String pBaseURI) > This method is called by the xml-parser with an empty pPublicId and a > meaningfull pNamespaceURI. > The method internally calles > isource = resolver.resolveEntity(pPublicId, pSystemId); with to > null-parameters. > Additionaly it should check whether namespace is non null and also try > isource = resolver.resolveEntity(pNamespaceURI, pSystemId); > Attached a working version -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email