XsltContext.cs 1000 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // System.Xml.Xsl.XsltContext
  2. //
  3. // Author: Tim Coleman <[email protected]>
  4. // (C) Copyright 2002 Tim Coleman
  5. using System;
  6. using System.Xml;
  7. using System.Xml.XPath;
  8. namespace System.Xml.Xsl
  9. {
  10. public abstract class XsltContext : XmlNamespaceManager
  11. {
  12. #region Constructors
  13. // should this really be calling new NameTable() in the
  14. // base() call?
  15. public XsltContext ()
  16. : base (new NameTable ())
  17. {
  18. }
  19. public XsltContext (NameTable table)
  20. : base (table)
  21. {
  22. }
  23. #endregion
  24. #region Properties
  25. public abstract bool Whitespace { get; }
  26. public abstract bool PreserveWhitespace (XPathNavigator nav);
  27. #endregion
  28. #region Methods
  29. public abstract int CompareDocument (string baseUri, string nextbaseUri);
  30. public abstract IXsltContextFunction ResolveFunction (string prefix, string name, XPathResultType [] ArgTypes);
  31. public abstract IXsltContextVariable ResolveVariable (string prefix, string name);
  32. #endregion
  33. }
  34. }