XsltCommand.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //
  2. // System.Xml.Query.XsltCommand
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. // Atsushi Enomoto ([email protected])
  7. //
  8. // Copyright (C) Tim Coleman, 2003
  9. // Copyright (C) Atsushi Enomoto, 2004
  10. //
  11. #if NET_2_0
  12. using System.IO;
  13. using System.Text;
  14. using System.Xml;
  15. using System.Xml.XPath;
  16. namespace System.Xml.Query
  17. {
  18. public class XsltCommand
  19. {
  20. [MonoTODO]
  21. public XsltCommand ()
  22. {
  23. }
  24. public event QueryEventHandler OnProcessingEvent;
  25. // Compile
  26. [MonoTODO]
  27. public void Compile (string stylesheetUri, XmlResolver resolver)
  28. {
  29. throw new NotImplementedException ();
  30. }
  31. [MonoTODO]
  32. public void Compile (string stylesheetUri)
  33. {
  34. throw new NotImplementedException ();
  35. }
  36. // Execute
  37. [MonoTODO ("Null args allowed?")]
  38. public void Execute (
  39. IXPathNavigable contextDocument,
  40. XmlWriter results)
  41. {
  42. Execute (contextDocument, null, null, results);
  43. }
  44. public void Execute (string contextDocumentUri, string resultDocumentUri)
  45. {
  46. XmlTextWriter xw = new XmlTextWriter (resultDocumentUri, null);
  47. try {
  48. Execute (new XPathDocument (contextDocumentUri), xw);
  49. } finally {
  50. xw.Close ();
  51. }
  52. }
  53. [MonoTODO]
  54. public void Execute (
  55. IXPathNavigable contextDocument,
  56. XmlArgumentList argList,
  57. XmlWriter results)
  58. {
  59. Execute (contextDocument, null, argList, results);
  60. }
  61. [MonoTODO]
  62. public void Execute (
  63. XmlResolver dataSources,
  64. XmlArgumentList argList,
  65. XmlWriter results)
  66. {
  67. Execute (dataSources, argList, results);
  68. }
  69. [MonoTODO]
  70. public void Execute (
  71. IXPathNavigable contextDocument,
  72. XmlResolver dataSources,
  73. XmlArgumentList argList,
  74. XmlWriter results)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. public void Execute (
  79. string contextDocumentUri,
  80. XmlResolver dataSources,
  81. XmlArgumentList argList,
  82. Stream results)
  83. {
  84. XmlTextWriter w = new XmlTextWriter (results, null);
  85. Execute (contextDocumentUri, dataSources, argList, w);
  86. }
  87. public void Execute (
  88. string contextDocumentUri,
  89. XmlResolver dataSources,
  90. XmlArgumentList argList,
  91. TextWriter results)
  92. {
  93. XmlTextWriter w = new XmlTextWriter (results);
  94. Execute (contextDocumentUri, dataSources, argList, w);
  95. }
  96. [MonoTODO]
  97. public void Execute (
  98. string contextDocumentUri,
  99. XmlResolver dataSources,
  100. XmlArgumentList argList,
  101. XmlWriter results)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. }
  106. }
  107. #endif // NET_2_0