Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / NameSpaceEvent.cs / 1305376 / NameSpaceEvent.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 NamespaceEvent : Event { private string namespaceUri; private string name; public NamespaceEvent(NavigatorInput input) { Debug.Assert(input != null); Debug.Assert(input.NodeType == XPathNodeType.Namespace); this.namespaceUri = input.Value; this.name = input.LocalName; } public override void ReplaceNamespaceAlias(Compiler compiler){ if (this.namespaceUri.Length != 0) { // Do we need to check this for namespace? NamespaceInfo ResultURIInfo = compiler.FindNamespaceAlias(this.namespaceUri); if (ResultURIInfo != null) { this.namespaceUri = ResultURIInfo.nameSpace; if (ResultURIInfo.prefix != null) { this.name = ResultURIInfo.prefix; } } } } public override bool Output(Processor processor, ActionFrame frame) { bool res; res = processor.BeginEvent(XPathNodeType.Namespace, /*prefix:*/null, this.name, this.namespaceUri, /*empty:*/false); Debug.Assert(res); // Namespace node as any other attribute can't fail because it doesn't signal record change res = processor.EndEvent(XPathNodeType.Namespace); Debug.Assert(res); return true; } } } // 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
- BitmapMetadataBlob.cs
- InputLangChangeRequestEvent.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ExpressionBinding.cs
- ContextStack.cs
- DelegatingTypeDescriptionProvider.cs
- HyperLink.cs
- SiteMapHierarchicalDataSourceView.cs
- DataGridViewToolTip.cs
- AccessKeyManager.cs
- UnsafeNetInfoNativeMethods.cs
- AtlasWeb.Designer.cs
- DataGridItemEventArgs.cs
- ReadOnlyNameValueCollection.cs
- TableLayoutStyle.cs
- PixelShader.cs
- WhitespaceRuleReader.cs
- GradientBrush.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- XamlInterfaces.cs
- HtmlTextViewAdapter.cs
- TableLayoutRowStyleCollection.cs
- NullableDecimalAverageAggregationOperator.cs
- FixedElement.cs
- ProjectionPathBuilder.cs
- ChoiceConverter.cs
- Exception.cs
- MaskInputRejectedEventArgs.cs
- RegexMatchCollection.cs
- RedistVersionInfo.cs
- ButtonField.cs
- SEHException.cs
- BindingManagerDataErrorEventArgs.cs
- DataGridViewBand.cs
- HelloOperationAsyncResult.cs
- ResourceDisplayNameAttribute.cs
- Gdiplus.cs
- TimeSpanStorage.cs
- Substitution.cs
- PrintController.cs
- sqlinternaltransaction.cs
- WebDescriptionAttribute.cs
- SystemDiagnosticsSection.cs
- ADConnectionHelper.cs
- QuaternionConverter.cs
- SQLDoubleStorage.cs
- EntityViewContainer.cs
- StringDictionary.cs
- HostDesigntimeLicenseContext.cs
- CompoundFileDeflateTransform.cs
- RectAnimationClockResource.cs
- EventToken.cs
- HttpCapabilitiesSectionHandler.cs
- Visual3DCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- WebMessageEncoderFactory.cs
- AspNetRouteServiceHttpHandler.cs
- JsonUriDataContract.cs
- OdbcCommand.cs
- ColumnClickEvent.cs
- Attributes.cs
- SchemaDeclBase.cs
- LogStore.cs
- TrackingWorkflowEventArgs.cs
- TileBrush.cs
- OuterGlowBitmapEffect.cs
- FixedPosition.cs
- Missing.cs
- DataTablePropertyDescriptor.cs
- SmtpReplyReaderFactory.cs
- _ConnectStream.cs
- HtmlMeta.cs
- CodeGenerator.cs
- ThaiBuddhistCalendar.cs
- UserPersonalizationStateInfo.cs
- TimerEventSubscriptionCollection.cs
- PackWebRequest.cs
- SafeFileMappingHandle.cs
- UrlPropertyAttribute.cs
- ComIntegrationManifestGenerator.cs
- CollectionBuilder.cs
- AuthorizationRuleCollection.cs
- NameScopePropertyAttribute.cs
- AccessKeyManager.cs
- EventRoute.cs
- AppDomainUnloadedException.cs
- StyleBamlTreeBuilder.cs
- XmlSerializationGeneratedCode.cs
- AssemblyResourceLoader.cs
- addressfiltermode.cs
- Span.cs
- MessageSecurityVersion.cs
- TypedReference.cs
- Random.cs
- WpfSharedBamlSchemaContext.cs
- Gdiplus.cs
- Rect.cs
- MessageTransmitTraceRecord.cs
- IISMapPath.cs
- DataStreams.cs