| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- //
- // 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
|