diff options
author | Martin Baulig <mabaul@microsoft.com> | 2019-05-10 11:17:00 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-05-10 11:17:00 +0300 |
commit | 0e5e464cff103f104bee6beb22461ea7332fe102 (patch) | |
tree | 983684cd9d5ced4321082cfd7d2d2652ad5ffba8 /mcs/class/System.XML | |
parent | 0c70519707010ff63bfbc5f5eca6fc7e3c181d4f (diff) |
Add a few `DISABLE_SECURITY` conditionals. (#14300)
* Add a few `DISABLE_SECURITY` conditionals.
* [csproj] Update project files
* Fix tests.
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs index 9b29638f37a..e69eb5be953 100644 --- a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs @@ -115,7 +115,7 @@ xmlns:msxsl=""urn:schemas-microsoft-com:xslt"" xmlns:stringutils=""urn:schemas-s XslTransform transform = new XslTransform(); XmlTextReader reader = new XmlTextReader(stringReader); - transform.Load(reader, new XmlUrlResolver(), AppDomain.CurrentDomain.Evidence); + transform.Load(reader, new XmlUrlResolver()); StringBuilder sb = new StringBuilder(); StringWriter writer = new StringWriter(sb, CultureInfo.InvariantCulture); @@ -429,7 +429,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros XmlTextReader xsltRdr = new XmlTextReader (new StringReader (xsltFragment)); XslTransform stylesheet = new XslTransform (); - stylesheet.Load (xsltRdr, new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + stylesheet.Load (xsltRdr, new XmlUrlResolver ()); StringWriter sw = new StringWriter (); @@ -467,7 +467,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); StringWriter sw = new StringWriter (); @@ -499,7 +499,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format(xsltFragment, "standalone=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -509,7 +509,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "standalone=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -519,7 +519,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -537,7 +537,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -560,7 +560,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros // standalone is "Yes" xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "Yes"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -571,7 +571,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -589,7 +589,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -613,7 +613,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "omit-xml-declaration=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ("<root />", sw.ToString (), "#1"); @@ -621,7 +621,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "omit-xml-declaration=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -639,7 +639,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -652,7 +652,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -675,7 +675,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros // omit-xml-declaration is "Yes" xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "Yes"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -686,7 +686,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -718,7 +718,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -740,7 +740,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -762,7 +762,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -785,7 +785,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -808,7 +808,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -829,7 +829,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -864,7 +864,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -887,7 +887,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -910,7 +910,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -933,7 +933,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -956,7 +956,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -979,7 +979,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1015,7 +1015,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format(CultureInfo.InvariantCulture, @@ -1031,7 +1031,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1044,7 +1044,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1083,7 +1083,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1099,7 +1099,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1111,7 +1111,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1150,7 +1150,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1165,7 +1165,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1177,7 +1177,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1222,7 +1222,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"yes\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1246,7 +1246,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "indent=\"no\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1258,7 +1258,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1289,7 +1289,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -1302,7 +1302,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -1325,7 +1325,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros // indent is "Yes" xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "Yes"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1336,7 +1336,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, ""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1364,7 +1364,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1394,7 +1394,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, string.Empty))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1405,7 +1405,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format(xsltFragment, "encoding=\"iso-8859-1\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1416,7 +1416,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "encoding=\"doesnotexist\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1427,7 +1427,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "encoding=\"\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1458,7 +1458,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, string.Empty))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1473,7 +1473,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "encoding=\"iso-8859-1\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1488,7 +1488,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "encoding=\"doesnotexist\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1503,7 +1503,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "encoding=\"\""))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1537,7 +1537,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "1.0"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1548,7 +1548,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "2.0"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1559,7 +1559,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, "BLABLA"))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1597,7 +1597,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw = new StringWriter (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, string.Empty))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format(CultureInfo.InvariantCulture, @@ -1616,7 +1616,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, options))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1636,7 +1636,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros sw.GetStringBuilder ().Length = 0; xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, options))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, @@ -1682,7 +1682,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, string.Empty))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1705,7 +1705,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, options))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1729,7 +1729,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros ms = new MemoryStream (); xsltProcessor.Load (new XmlTextReader (new StringReader ( string.Format (xsltFragment, options))), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, ms, new XmlUrlResolver ()); ms.Position = 0; using (StreamReader sr = new StreamReader (ms, true)) { @@ -1758,7 +1758,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } [Test] @@ -1779,7 +1779,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, xsltArgs, sw, new XmlUrlResolver ()); Assert.AreEqual ( @@ -1796,7 +1796,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros </xsl:stylesheet>"; XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); } // http://support.microsoft.com/kb/832757/en-us @@ -1822,7 +1822,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, new XsltArgumentList (), sw, new XmlUrlResolver ()); @@ -1861,7 +1861,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros StringWriter sw = new StringWriter (); XslTransform xsltProcessor = new XslTransform (); xsltProcessor.Load (new XmlTextReader (new StringReader (xsltFragment)), - new XmlUrlResolver (), AppDomain.CurrentDomain.Evidence); + new XmlUrlResolver ()); xsltProcessor.Transform (xmlDoc, new XsltArgumentList (), sw, new XmlUrlResolver ()); |