[Mono-dev] [PATCH] fix for bug in XmlSchema

Atsushi Eno atsushi at ximian.com
Sun May 18 15:10:55 EDT 2008


Cool, thanks for the fix :) Can you please also attach the new file
"resolveUriSchema.xsd" ?

Atsushi Eno

James Fitzsimons wrote:
> Hi all,
> 
> While porting Spring.NET to run on Mono on linux I have discovered a 
> small bug in the GetResolvedUri method of the XmlSchema class.
> 
> I have a custom XmlResolver which was getting passed an incorrectly 
> formatted Uri by the XmlSchema class. My uri was of the form 
> asembly://Spring.Core/Spring.Objects.Factory.Xml/spring-objects-1.1.xsd, 
> and was returned to me as 
> asembly://spring.core/Spring.Objects.Factory.Xml/spring-objects-1.1.xsd 
> by the GetResolvedUri method. The casing is a problem as Spring.Core is 
> the assembly name and mono won't find an assembly called 
> spring.core.dll. The one line patch changes the GetResolvedUri to return 
> the OriginalString under the .NET 2.0 profile which solves this problem. 
> This is the same behaviour as the Microsoft.NET framework.
> 
> I've included a test case as well, the attached schema file is needed 
> for the test.
> 
> Cheers,
> James Fitzsimons
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list