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
- Icon.cs
- ImageDrawing.cs
- InsufficientExecutionStackException.cs
- TraceSource.cs
- DataTableReader.cs
- SamlSecurityTokenAuthenticator.cs
- CodeStatementCollection.cs
- DeclarativeCatalogPart.cs
- EntityCommandExecutionException.cs
- PropertyMappingExceptionEventArgs.cs
- GridViewCommandEventArgs.cs
- TextFormatterHost.cs
- odbcmetadatacolumnnames.cs
- CodeTypeDeclaration.cs
- WriteableBitmap.cs
- RadioButtonBaseAdapter.cs
- recordstate.cs
- Fx.cs
- SID.cs
- RuntimeConfigurationRecord.cs
- DocumentOrderQuery.cs
- EventData.cs
- Substitution.cs
- PropertyEmitter.cs
- ImageClickEventArgs.cs
- MouseOverProperty.cs
- TransformPatternIdentifiers.cs
- FixedSOMContainer.cs
- BuildProvidersCompiler.cs
- CompilerCollection.cs
- LinkTarget.cs
- WebBrowserHelper.cs
- CodeDomLocalizationProvider.cs
- BrowserCapabilitiesCompiler.cs
- HybridDictionary.cs
- SelectiveScrollingGrid.cs
- SqlDataSourceQueryEditor.cs
- WebPartCatalogCloseVerb.cs
- ToolStripSplitButton.cs
- CounterSetInstanceCounterDataSet.cs
- LocationInfo.cs
- XmlArrayItemAttribute.cs
- TextEffect.cs
- XamlReader.cs
- TryCatchDesigner.xaml.cs
- EncodingInfo.cs
- MasterPageCodeDomTreeGenerator.cs
- MiniCustomAttributeInfo.cs
- WorkflowApplicationAbortedException.cs
- ZipIOModeEnforcingStream.cs
- WmiPutTraceRecord.cs
- VisualTreeHelper.cs
- DataControlField.cs
- IgnoreSectionHandler.cs
- PriorityItem.cs
- EntityDataSourceSelectingEventArgs.cs
- XmlText.cs
- Event.cs
- VisemeEventArgs.cs
- DataSysAttribute.cs
- RootBrowserWindowProxy.cs
- IntSecurity.cs
- DiscoveryClientOutputChannel.cs
- EventBindingService.cs
- SchemaImporter.cs
- OleDbPermission.cs
- DefaultValueAttribute.cs
- NamespaceEmitter.cs
- WCFBuildProvider.cs
- PointAnimationBase.cs
- JsonSerializer.cs
- PaintValueEventArgs.cs
- EntityCommandDefinition.cs
- WindowsFormsHelpers.cs
- Bold.cs
- EmptyElement.cs
- DirectoryNotFoundException.cs
- SecurityUtils.cs
- FixUp.cs
- WithStatement.cs
- StringAnimationUsingKeyFrames.cs
- FixedSchema.cs
- SqlPersonalizationProvider.cs
- _NestedMultipleAsyncResult.cs
- Repeater.cs
- DeliveryStrategy.cs
- QilTernary.cs
- SystemWebSectionGroup.cs
- Point.cs
- AuthStoreRoleProvider.cs
- ReferenceSchema.cs
- PhysicalOps.cs
- ItemsChangedEventArgs.cs
- SizeAnimationUsingKeyFrames.cs
- LinkConverter.cs
- IdentifierService.cs
- WebServiceMethodData.cs
- ReachNamespaceInfo.cs
- UIElementParagraph.cs
- CompilerInfo.cs