Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1 / DocumentScope.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class DocumentScope { protected NamespaceDecl scopes; internal NamespaceDecl Scopes { get { return this.scopes; } } internal NamespaceDecl AddNamespace(string prefix, string uri, string prevDefaultNsUri) { this.scopes = new NamespaceDecl(prefix, uri, prevDefaultNsUri, this.scopes); return this.scopes; } internal string ResolveAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Equals(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } internal string ResolveNonAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Compare(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class DocumentScope { protected NamespaceDecl scopes; internal NamespaceDecl Scopes { get { return this.scopes; } } internal NamespaceDecl AddNamespace(string prefix, string uri, string prevDefaultNsUri) { this.scopes = new NamespaceDecl(prefix, uri, prevDefaultNsUri, this.scopes); return this.scopes; } internal string ResolveAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Equals(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } internal string ResolveNonAtom(string prefix) { Debug.Assert(prefix != null && prefix.Length > 0); for (NamespaceDecl scope = this.scopes; scope != null; scope = scope.Next) { if (Keywords.Compare(scope.Prefix, prefix)) { Debug.Assert(scope.Uri != null); return scope.Uri; } } return null; } } } // 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
- MSHTMLHost.cs
- DeclaredTypeElementCollection.cs
- basecomparevalidator.cs
- ScaleTransform3D.cs
- ObjectStateFormatter.cs
- _DisconnectOverlappedAsyncResult.cs
- ThousandthOfEmRealPoints.cs
- _TimerThread.cs
- ExpressionEditorAttribute.cs
- ObjectStateManager.cs
- IntegrationExceptionEventArgs.cs
- Tuple.cs
- XPathConvert.cs
- BufferedWebEventProvider.cs
- OdbcHandle.cs
- XamlFilter.cs
- StrokeCollectionConverter.cs
- NumericUpDownAccelerationCollection.cs
- ToolboxItemFilterAttribute.cs
- ValidationEventArgs.cs
- RequestQueue.cs
- Compilation.cs
- OutOfMemoryException.cs
- ServiceHostingEnvironment.cs
- BindingSourceDesigner.cs
- Marshal.cs
- __ComObject.cs
- WebBrowserUriTypeConverter.cs
- CharAnimationBase.cs
- ParameterCollection.cs
- PersonalizationProviderHelper.cs
- ConfigurationErrorsException.cs
- Ticks.cs
- DataSpaceManager.cs
- BamlResourceDeserializer.cs
- TreeIterator.cs
- hwndwrapper.cs
- CheckBoxRenderer.cs
- DomainUpDown.cs
- RequestCacheValidator.cs
- MarkupWriter.cs
- CredentialCache.cs
- ConfigurationCollectionAttribute.cs
- BrowserDefinitionCollection.cs
- Win32.cs
- BoundField.cs
- TextElementEditingBehaviorAttribute.cs
- CheckBox.cs
- Peer.cs
- X509CertificateValidator.cs
- RadioButton.cs
- DispatcherProcessingDisabled.cs
- Unit.cs
- DeploymentSection.cs
- SID.cs
- ElementNotEnabledException.cs
- ThemeDirectoryCompiler.cs
- SendMailErrorEventArgs.cs
- SerializationObjectManager.cs
- HtmlObjectListAdapter.cs
- TransportConfigurationTypeElement.cs
- Package.cs
- Accessible.cs
- RightsManagementInformation.cs
- XmlSchemaAll.cs
- EventSinkActivityDesigner.cs
- DeobfuscatingStream.cs
- SocketAddress.cs
- SectionXmlInfo.cs
- WebServicesInteroperability.cs
- SelectionPattern.cs
- CharAnimationBase.cs
- KeySplineConverter.cs
- HighlightComponent.cs
- Ipv6Element.cs
- WebPartConnectionsCloseVerb.cs
- DesignerActionUIService.cs
- ResourceDictionaryCollection.cs
- QueryContinueDragEvent.cs
- AmbientProperties.cs
- FaultPropagationRecord.cs
- ProgressChangedEventArgs.cs
- NamespaceQuery.cs
- TableLayoutRowStyleCollection.cs
- ClickablePoint.cs
- xamlnodes.cs
- MetafileHeader.cs
- TypeDescriptionProvider.cs
- DictionaryGlobals.cs
- DataGridViewRowPrePaintEventArgs.cs
- _LoggingObject.cs
- ResourcesBuildProvider.cs
- SelectorItemAutomationPeer.cs
- SymmetricAlgorithm.cs
- PermissionListSet.cs
- ListenerPerfCounters.cs
- _Win32.cs
- StandardCommandToolStripMenuItem.cs
- ToolStripPanelDesigner.cs
- SecurityChannelFactory.cs