Bug 19524 - XslCompiledTransform.Load(string stylesheetUri, XsltSettings settings, XmlResolver stylesheetResolver) doesn't use stylesheetResolver to load stylesheetUri
Summary: XslCompiledTransform.Load(string stylesheetUri, XsltSettings settings, XmlRes...
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.XML ()
Version: 3.2.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-05 10:42 UTC by f.lemaire
Modified: 2015-03-17 16:23 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Code to reproduce the issue (710 bytes, text/plain)
2014-05-05 10:42 UTC, f.lemaire
Details
Patch proposal (7.74 KB, patch)
2014-05-05 10:44 UTC, f.lemaire
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description f.lemaire 2014-05-05 10:42:56 UTC
Created attachment 6730 [details]
Code to reproduce the issue

In Microsoft's implementation, when you use the Load(string stylesheetUri, XsltSettings settings, XmlResolver stylesheetResolver) method of the XslCompiledTransform class, the main stylesheet, coming from stylesheetUri, is loaded using stylesheetResolver. In Mono's implementation, only the includes are loaded using stylesheetResolver. This bug is present in all versions I have tested (2.10, 3.0, 3.2). I have attached a sample code to reproduce, and a correction proposal.
Comment 1 f.lemaire 2014-05-05 10:44:13 UTC
Created attachment 6731 [details]
Patch proposal
Comment 2 Atsushi Eno 2015-03-17 16:23:47 UTC
Now we imported referencesource for System.Xml.Xsl, it works.