mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* IXmlCompilerInclude.cs, QueryEventArgs.cs, QuertEventHandler.cs, XmlArgumentList.cs, XsltCommand.cs : added. * XmlQueryArgumentList.cs, XsltProcessor.cs : removed (only in .NET 1.2). * XmlCommand.cs, XmlQueryCompileException.cs, XmlQueryException.cs : updated API to that of .NET 2.0. svn path=/trunk/mcs/; revision=27882
125 lines
2.5 KiB
C#
Executable File
125 lines
2.5 KiB
C#
Executable File
//
|
|
// System.Xml.Query.XsltCommand
|
|
//
|
|
// Author:
|
|
// Tim Coleman ([email protected])
|
|
// Atsushi Enomoto ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2003
|
|
// Copyright (C) Atsushi Enomoto, 2004
|
|
//
|
|
|
|
#if NET_2_0
|
|
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.Xml.XPath;
|
|
|
|
namespace System.Xml.Query
|
|
{
|
|
public class XsltCommand
|
|
{
|
|
[MonoTODO]
|
|
public XsltCommand ()
|
|
{
|
|
}
|
|
|
|
public event QueryEventHandler OnProcessingEvent;
|
|
|
|
// Compile
|
|
|
|
[MonoTODO]
|
|
public void Compile (string stylesheetUri, XmlResolver resolver)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Compile (string stylesheetUri)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
// Execute
|
|
|
|
[MonoTODO ("Null args allowed?")]
|
|
public void Execute (
|
|
IXPathNavigable contextDocument,
|
|
XmlWriter results)
|
|
{
|
|
Execute (contextDocument, null, null, results);
|
|
}
|
|
|
|
public void Execute (string contextDocumentUri, string resultDocumentUri)
|
|
{
|
|
XmlTextWriter xw = new XmlTextWriter (resultDocumentUri, null);
|
|
try {
|
|
Execute (new XPathDocument (contextDocumentUri), xw);
|
|
} finally {
|
|
xw.Close ();
|
|
}
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Execute (
|
|
IXPathNavigable contextDocument,
|
|
XmlArgumentList argList,
|
|
XmlWriter results)
|
|
{
|
|
Execute (contextDocument, null, argList, results);
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Execute (
|
|
XmlResolver dataSources,
|
|
XmlArgumentList argList,
|
|
XmlWriter results)
|
|
{
|
|
Execute (dataSources, argList, results);
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Execute (
|
|
IXPathNavigable contextDocument,
|
|
XmlResolver dataSources,
|
|
XmlArgumentList argList,
|
|
XmlWriter results)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public void Execute (
|
|
string contextDocumentUri,
|
|
XmlResolver dataSources,
|
|
XmlArgumentList argList,
|
|
Stream results)
|
|
{
|
|
XmlTextWriter w = new XmlTextWriter (results, null);
|
|
Execute (contextDocumentUri, dataSources, argList, w);
|
|
}
|
|
|
|
public void Execute (
|
|
string contextDocumentUri,
|
|
XmlResolver dataSources,
|
|
XmlArgumentList argList,
|
|
TextWriter results)
|
|
{
|
|
XmlTextWriter w = new XmlTextWriter (results);
|
|
Execute (contextDocumentUri, dataSources, argList, w);
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Execute (
|
|
string contextDocumentUri,
|
|
XmlResolver dataSources,
|
|
XmlArgumentList argList,
|
|
XmlWriter results)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif // NET_2_0
|