Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / DocumentScope.cs / 1305376 / 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 (Ref.Equal(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 (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 (Ref.Equal(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 (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
- Delegate.cs
- ObjectTag.cs
- EmptyControlCollection.cs
- FixedSOMTableCell.cs
- TextureBrush.cs
- PropertyTabAttribute.cs
- BasicDesignerLoader.cs
- InvalidDataContractException.cs
- QueryableFilterRepeater.cs
- RsaSecurityTokenAuthenticator.cs
- NotifyIcon.cs
- XmlQuerySequence.cs
- ErrorWrapper.cs
- ReferenceService.cs
- RoleGroup.cs
- DataGridAutoFormatDialog.cs
- EventLogPermissionEntryCollection.cs
- AppDomainFactory.cs
- NetworkInterface.cs
- Geometry3D.cs
- SystemThemeKey.cs
- PeerName.cs
- AnonymousIdentificationSection.cs
- DataSpaceManager.cs
- SymmetricKey.cs
- KoreanCalendar.cs
- LifetimeManager.cs
- ConnectionManagementElement.cs
- VisualProxy.cs
- XmlJsonWriter.cs
- DocumentReference.cs
- QilInvokeLateBound.cs
- ConnectionStringsExpressionBuilder.cs
- RequestNavigateEventArgs.cs
- CanonicalXml.cs
- LoginCancelEventArgs.cs
- SafeHandles.cs
- XmlIgnoreAttribute.cs
- DeviceContexts.cs
- HWStack.cs
- SmiRecordBuffer.cs
- PrintDialog.cs
- BooleanConverter.cs
- CompoundFileReference.cs
- WebConfigurationFileMap.cs
- ArrayTypeMismatchException.cs
- DefaultTextStoreTextComposition.cs
- RuntimeWrappedException.cs
- DataBoundControlDesigner.cs
- DeclarativeConditionsCollection.cs
- MouseCaptureWithinProperty.cs
- DateTimeParse.cs
- OleDbRowUpdatingEvent.cs
- UrlAuthorizationModule.cs
- ContentPlaceHolder.cs
- oledbmetadatacollectionnames.cs
- ScrollContentPresenter.cs
- DataGridViewTextBoxEditingControl.cs
- DatePickerDateValidationErrorEventArgs.cs
- HostedTcpTransportManager.cs
- MarshalByRefObject.cs
- IpcPort.cs
- Currency.cs
- FieldTemplateUserControl.cs
- ContentControl.cs
- UpdatePanelControlTrigger.cs
- PreservationFileWriter.cs
- SetIterators.cs
- HtmlMobileTextWriter.cs
- CollaborationHelperFunctions.cs
- OracleConnectionStringBuilder.cs
- SqlProfileProvider.cs
- EnumDataContract.cs
- ContentControl.cs
- PropertyChangedEventManager.cs
- FieldNameLookup.cs
- TabControl.cs
- CodeTypeParameter.cs
- CompositeDataBoundControl.cs
- AddInIpcChannel.cs
- GeometryGroup.cs
- StrokeDescriptor.cs
- RangeValuePattern.cs
- SplitterCancelEvent.cs
- DependencyPropertyAttribute.cs
- RadioButtonAutomationPeer.cs
- FrugalList.cs
- VisualBrush.cs
- CLSCompliantAttribute.cs
- IDQuery.cs
- VirtualPathProvider.cs
- PolyBezierSegment.cs
- DnsPermission.cs
- GlobalItem.cs
- ActivityStatusChangeEventArgs.cs
- TreeChangeInfo.cs
- SubqueryRules.cs
- IOException.cs
- TableItemProviderWrapper.cs
- SspiHelper.cs