Author: andrews
Date: 2005-05-09 05:36:50 -0400 (Mon, 09 May 2005)
New Revision: 44258
Removed:
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/prepare.cs
Modified:
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog
Log:
Delete the obsolete prepare.cs
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-05-09 09:34:29 UTC (rev 44257)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/ChangeLog
2005-05-09 09:36:50 UTC (rev 44258)
@@ -1,3 +1,7 @@
+2005-05-09 Andrew Skiba <[EMAIL PROTECTED]>
+
+ * prepare.cs : delete an obsolete file
+
2005-05-08 Andrew Skiba <[EMAIL PROTECTED]>
* catalog.sed : fix a bad dirname for Value-of tests
Deleted:
trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/prepare.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/prepare.cs
2005-05-09 09:34:29 UTC (rev 44257)
+++ trunk/mcs/class/System.XML/Test/System.Xml.Xsl/standalone_tests/prepare.cs
2005-05-09 09:36:50 UTC (rev 44258)
@@ -1,55 +0,0 @@
-using System;
-using System.Collections;
-using System.IO;
-using System.Text;
-using System.Xml;
-using System.Xml.Xsl;
-
-namespace XsltTest
-{
- public class XsltTest
- {
- public static void Main ()
- {
- XmlDocument whole = new XmlDocument ();
- string xalan =
@"testsuite/TESTS/Xalan_Conformance_Tests/";
- whole.Load (xalan + "catalog.xml");
- foreach (XmlElement testCase in whole.SelectNodes
("test-suite/test-catalog/test-case")) {
- string stylesheetBase = null;
- try {
- string filePath =
testCase.SelectSingleNode ("file-path").InnerText;
- string path = xalan + filePath + "/";
- foreach (XmlElement scenario in
testCase.SelectNodes ("scenario")) {
- XslTransform trans = new
XslTransform ();
- stylesheetBase =
scenario.SelectSingleNode ("[EMAIL
PROTECTED]'principal-stylesheet']").InnerText;
- string stylesheet = path +
stylesheetBase;
- string srcxml = path +
scenario.SelectSingleNode ("[EMAIL PROTECTED]'principal-data']").InnerText;
- string outfile = path +
scenario.SelectSingleNode ("[EMAIL PROTECTED]'principal']").InnerText;
- XmlTextReader stylextr = new
XmlTextReader (stylesheet);
- XmlValidatingReader stylexvr =
new XmlValidatingReader (stylextr);
- XmlDocument styledoc = new
XmlDocument ();
- styledoc.Load (stylesheet);
- trans.Load (stylesheet);
-// trans.Load (styledoc);
- XmlTextReader xtr = new
XmlTextReader (srcxml);
- XmlValidatingReader xvr = new
XmlValidatingReader (xtr);
- xvr.ValidationType =
ValidationType.None;
- XmlDocument input = new
XmlDocument ();
- input.Load (xvr);
-// input.Load (xtr);
-// XPathDocument input = new
XPathDocument (xtr);
-
- StringWriter sw = new
StringWriter ();
- trans.Transform (input, null,
sw);
- sw.Close ();
- StreamWriter fw = new
StreamWriter (outfile);
- fw.Write (sw.ToString ());
- fw.Close ();
- }
- } catch (Exception ex) {
- Console.WriteLine ("\n\n\nException: " +
testCase.GetAttribute ("id") + ": " + ex);
- }
- }
- }
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches