Author: atsushi
Date: 2005-03-14 01:07:05 -0500 (Mon, 14 Mar 2005)
New Revision: 41783

Modified:
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/alltest.cs
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ignore.lst
   trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/xslttest.cs
Log:
2005-03-14  Atsushi Enomoto <[EMAIL PROTECTED]>

        * xslttest.cs,
          alltest.cs : reduced some key exclusions (fixed some).
        * ignore.lst : updated ignored cases.



Modified: 
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog   
2005-03-14 06:04:47 UTC (rev 41782)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog   
2005-03-14 06:07:05 UTC (rev 41783)
@@ -1,3 +1,9 @@
+2005-03-14  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * xslttest.cs,
+         alltest.cs : reduced some key exclusions (fixed some).
+       * ignore.lst : updated ignored cases.
+
 2005-03-04  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * ignore.lst : still more ignored cases.

Modified: 
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/alltest.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/alltest.cs  
2005-03-14 06:04:47 UTC (rev 41782)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/alltest.cs  
2005-03-14 06:07:05 UTC (rev 41783)
@@ -11,9 +11,6 @@
        {
                static ArrayList excludedTests = new ArrayList (new string [] {
 "Keys_PerfRepro3",
-"Keys__91834",
-"Keys__91835",
-"Keys__91836",
 });
 
                static void Process (string id, string path, string data,
@@ -31,14 +28,22 @@
                        else
                                Directory.SetCurrentDirectory (Path.Combine 
("MSFT_Conformance_Tests", path));
 
+#if NET_2_0
+                       XslCompiledTransform xslt = new XslCompiledTransform();
+#else
                        XslTransform xslt = new XslTransform();
+#endif
                        StreamWriter strWr = new StreamWriter (resFileName, 
false, System.Text.Encoding.UTF8);
                        XmlTextWriter wr = new XmlTextWriter (strWr);
                        try {
                                XmlDocument xml = new XmlDocument();
                                xml.Load (data);
                                xslt.Load (stylesheet);
+#if NET_2_0
+                               xslt.Transform (xml, null, wr);
+#else
                                xslt.Transform (xml, null, wr, null);
+#endif
                        } catch(Exception x) {
                                strWr.Close();
                                strWr = new StreamWriter (resFileName, false, 
System.Text.Encoding.UTF8);

Modified: 
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ignore.lst
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ignore.lst  
2005-03-14 06:04:47 UTC (rev 41782)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ignore.lst  
2005-03-14 06:07:05 UTC (rev 41783)
@@ -42,6 +42,9 @@
 
 namespace_namespace20
 
+Output__84432
+Output__84433
+
 output_output03
 output_output06
 output_output08
@@ -98,8 +101,15 @@
 Text_modified78311
 Text_DoeWithCdataInText
 
-XSLTFunctions_84049
-XSLTFunctions_84050
+XSLTFunctions__84049
+XSLTFunctions__84050
+XSLTFunctions_Bug76054
+XSLTFunctions_Bug76984
 XSLTFunctions_BooleanFunction
-XSLTFunctions_ElementAvailFunctionTrue
+XSLTFunctions_DocumentFuncWithEmptyArg
+XSLTFunctions_DocumentInUnion
+XSLTFunctions_DocumentInUnionWithDuplicateNodes
+XSLTFunctions_DocumentFunctionNoArg
+XSLTFunctions_ElementAvailFunctionTrueTest
+XSLTFunctions_specialCharInPattern
 

Modified: 
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/xslttest.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/xslttest.cs 
2005-03-14 06:04:47 UTC (rev 41782)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/xslttest.cs 
2005-03-14 06:07:05 UTC (rev 41783)
@@ -29,11 +29,10 @@
                static XsltTest ()
                {
                        skipTargets = new ArrayList (new string [] {
-"Keys__91834",
-"Keys__91835",
 "Keys__91836",
 "Keys__91859",
-"Keys_PerfRepro3"
+"Keys_PerfRepro2",
+"Keys_PerfRepro3",
                        }); 
                }
 
@@ -204,6 +203,7 @@
                static void RunTest (XmlElement scenario, string path, string 
stylesheetBase)
                {
                        stylesheetBase = scenario.SelectSingleNode ("[EMAIL 
PROTECTED]'principal-stylesheet']").InnerText;
+                       string id = scenario.ParentNode.Attributes ["id"].Value;
                        string stylesheet = path + stylesheetBase;
                        string srcxml = path + scenario.SelectSingleNode 
("[EMAIL PROTECTED]'principal-data']").InnerText;
                        XmlNode outputNode = scenario.SelectSingleNode ("[EMAIL 
PROTECTED]'principal']");
@@ -217,7 +217,7 @@
 
                        XslTransform trans = new XslTransform ();
 
-                       if (explicitTarget != null && stylesheetBase.IndexOf 
(explicitTarget) < 0)
+                       if (explicitTarget != null && id.IndexOf 
(explicitTarget) < 0)
                                return;
                        if (skipTargets.Contains (stylesheetBase))
                                return;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to