Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Xslt / XsltContext.cs / 1 / XsltContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Collections; using System.Xml.XPath; namespace System.Xml.Xsl { public interface IXsltContextFunction { int Minargs { get; } int Maxargs { get; } XPathResultType ReturnType { get; } XPathResultType[] ArgTypes { get; } object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext); } public interface IXsltContextVariable { bool IsLocal { get; } bool IsParam { get; } XPathResultType VariableType { get; } object Evaluate(XsltContext xsltContext); } public abstract class XsltContext : XmlNamespaceManager { protected XsltContext(NameTable table) : base(table) {} protected XsltContext() : base(new NameTable()) {} // This dummy XsltContext that doesn't actualy initialize XmlNamespaceManager // is used by XsltCompileContext internal XsltContext(bool dummy) : base() {} public abstract IXsltContextVariable ResolveVariable(string prefix, string name); public abstract IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes); public abstract bool Whitespace { get; } public abstract bool PreserveWhitespace(XPathNavigator node); public abstract int CompareDocument (string baseUri, string nextbaseUri); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Collections; using System.Xml.XPath; namespace System.Xml.Xsl { public interface IXsltContextFunction { int Minargs { get; } int Maxargs { get; } XPathResultType ReturnType { get; } XPathResultType[] ArgTypes { get; } object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext); } public interface IXsltContextVariable { bool IsLocal { get; } bool IsParam { get; } XPathResultType VariableType { get; } object Evaluate(XsltContext xsltContext); } public abstract class XsltContext : XmlNamespaceManager { protected XsltContext(NameTable table) : base(table) {} protected XsltContext() : base(new NameTable()) {} // This dummy XsltContext that doesn't actualy initialize XmlNamespaceManager // is used by XsltCompileContext internal XsltContext(bool dummy) : base() {} public abstract IXsltContextVariable ResolveVariable(string prefix, string name); public abstract IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes); public abstract bool Whitespace { get; } public abstract bool PreserveWhitespace(XPathNavigator node); public abstract int CompareDocument (string baseUri, string nextbaseUri); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypedTableHandler.cs
- URLMembershipCondition.cs
- ipaddressinformationcollection.cs
- SettingsBindableAttribute.cs
- PasswordPropertyTextAttribute.cs
- SelectorAutomationPeer.cs
- RankException.cs
- TextRangeBase.cs
- userdatakeys.cs
- HttpCacheVaryByContentEncodings.cs
- ReturnType.cs
- Cursors.cs
- GeometryDrawing.cs
- DirtyTextRange.cs
- TypeElement.cs
- ProcessHostServerConfig.cs
- OrderablePartitioner.cs
- CheckBoxStandardAdapter.cs
- TextTreeNode.cs
- CodeTypeReferenceExpression.cs
- SqlDataSourceWizardForm.cs
- Accessors.cs
- WindowInteractionStateTracker.cs
- DataGridViewCellParsingEventArgs.cs
- ResourceSetExpression.cs
- TimeoutException.cs
- KnownBoxes.cs
- DatagridviewDisplayedBandsData.cs
- DropTarget.cs
- TTSEngineProxy.cs
- EmptyEnumerator.cs
- Page.cs
- TextServicesCompartment.cs
- _HelperAsyncResults.cs
- DataGridLinkButton.cs
- AlignmentXValidation.cs
- ContextQuery.cs
- WindowsBrush.cs
- DictionaryBase.cs
- ControlAdapter.cs
- ISCIIEncoding.cs
- XmlElementAttributes.cs
- StylusPoint.cs
- InputMethodStateTypeInfo.cs
- FileUpload.cs
- UnderstoodHeaders.cs
- DisposableCollectionWrapper.cs
- ClonableStack.cs
- FileCodeGroup.cs
- Crypto.cs
- AccessibleObject.cs
- ParameterToken.cs
- CodePageUtils.cs
- StrokeCollection2.cs
- ObjectToIdCache.cs
- SwitchElementsCollection.cs
- WpfMemberInvoker.cs
- SqlDataSourceCommandEventArgs.cs
- webclient.cs
- DependencyPropertyHelper.cs
- SafeTimerHandle.cs
- validationstate.cs
- AppendHelper.cs
- UnsafeNetInfoNativeMethods.cs
- Action.cs
- SqlClientPermission.cs
- HttpApplication.cs
- ReverseInheritProperty.cs
- TransportationConfigurationTypeInstallComponent.cs
- XsltSettings.cs
- EdmRelationshipRoleAttribute.cs
- AsyncOperationManager.cs
- GetReadStreamResult.cs
- SmiEventSink.cs
- ControlPaint.cs
- LocalValueEnumerator.cs
- TextCompositionEventArgs.cs
- ComponentResourceKey.cs
- PolicyValidationException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XPathNavigator.cs
- PlatformNotSupportedException.cs
- PositiveTimeSpanValidator.cs
- ActivatedMessageQueue.cs
- HttpApplication.cs
- ThaiBuddhistCalendar.cs
- userdatakeys.cs
- EditorPartCollection.cs
- Resources.Designer.cs
- XamlInt32CollectionSerializer.cs
- X509CertificateStore.cs
- Context.cs
- OptimizedTemplateContent.cs
- XmlnsCache.cs
- PrivilegedConfigurationManager.cs
- BaseCollection.cs
- NamespaceListProperty.cs
- BasePropertyDescriptor.cs
- ParameterModifier.cs
- ModelService.cs