//\r
\r
using System;\r
-using System.Xml.XPath;\r
+using System.Collections;\r
using System.IO;\r
using System.Text;\r
using System.Runtime.InteropServices;\r
+using System.Xml.XPath;\r
\r
using BF = System.Reflection.BindingFlags;\r
\r
}\r
}\r
\r
- IntPtr ApplyStylesheet (IntPtr doc, string[] argArr, System.Collections.Hashtable extobjects)\r
+ IntPtr ApplyStylesheet (IntPtr doc, string[] argArr, Hashtable extobjects)\r
{\r
if (stylesheet == IntPtr.Zero)\r
throw new XmlException ("No style sheet!");\r
methods = type.GetMethods();\r
}\r
\r
- System.Collections.Hashtable alreadyadded = new System.Collections.Hashtable();\r
+ Hashtable alreadyadded = new Hashtable ();\r
foreach (System.Reflection.MethodInfo mi in methods) {\r
if (alreadyadded.ContainsKey(mi.Name)) continue; // don't add twice\r
alreadyadded[mi.Name] = 1;\r
return result.ReadToEnd ();\r
}\r
\r
- string ApplyStylesheetAndGetString (IntPtr doc, string[] argArr, System.Collections.Hashtable extobjects)\r
+ string ApplyStylesheetAndGetString (IntPtr doc, string[] argArr, Hashtable extobjects)\r
{\r
IntPtr xmlOutput = ApplyStylesheet (doc, argArr, extobjects);\r
string strOutput = GetStringFromDocument (xmlOutput);\r
{\r
IntPtr xmlInput = GetDocumentFromNavigator (input);\r
string[] argArr = null;\r
+ Hashtable extensionObjects = null;\r
if (args != null) {\r
+ extensionObjects = args.extensionObjects;\r
argArr = new string[args.parameters.Count * 2 + 1];\r
int index = 0;\r
foreach (object key in args.parameters.Keys) {\r
}\r
argArr[index] = null;\r
}\r
- string xslOutputString = ApplyStylesheetAndGetString (xmlInput, argArr, args.extensionObjects);\r
+ string xslOutputString = ApplyStylesheetAndGetString (xmlInput, argArr, extensionObjects);\r
xmlFreeDoc (xmlInput);\r
Cleanup ();\r
\r
\r
IntPtr inputDoc = GetDocumentFromNavigator (input);\r
string[] argArr = null;\r
+ Hashtable extensionObjects = null;\r
if (args != null) {\r
+ extensionObjects = args.extensionObjects;\r
argArr = new string[args.parameters.Count * 2 + 1];\r
int index = 0;\r
foreach (object key in args.parameters.Keys) {\r
}\r
argArr[index] = null;\r
}\r
- string transform = ApplyStylesheetAndGetString (inputDoc, argArr, args.extensionObjects);\r
+ string transform = ApplyStylesheetAndGetString (inputDoc, argArr, extensionObjects);\r
xmlFreeDoc (inputDoc);\r
Cleanup ();\r
output.Write (transform);\r