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
- HttpRawResponse.cs
- OverflowException.cs
- RegistryConfigurationProvider.cs
- DbProviderSpecificTypePropertyAttribute.cs
- AdornedElementPlaceholder.cs
- XmlName.cs
- PerformanceCounter.cs
- DesignBindingValueUIHandler.cs
- SymbolDocumentInfo.cs
- XpsFontSubsetter.cs
- ContractNamespaceAttribute.cs
- ImageList.cs
- webeventbuffer.cs
- DateTimeFormatInfo.cs
- MergeExecutor.cs
- DaylightTime.cs
- TraceContextRecord.cs
- SqlServer2KCompatibilityCheck.cs
- DelegatedStream.cs
- GlobalEventManager.cs
- RequiredFieldValidator.cs
- HtmlInputReset.cs
- QueryTaskGroupState.cs
- ImplicitInputBrush.cs
- AuthenticationModuleElementCollection.cs
- SymbolEqualComparer.cs
- LogExtent.cs
- PropertyCollection.cs
- xdrvalidator.cs
- GridItemPattern.cs
- MimeWriter.cs
- RadioButtonRenderer.cs
- ResolvedKeyFrameEntry.cs
- ToolStripMenuItem.cs
- TransactionChannelListener.cs
- CollectionViewGroupInternal.cs
- ExtensionSimplifierMarkupObject.cs
- XmlDictionary.cs
- EncryptedPackage.cs
- WebPartCatalogCloseVerb.cs
- DataContractJsonSerializerOperationFormatter.cs
- FocusTracker.cs
- Size3DConverter.cs
- WriterOutput.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- TabControlCancelEvent.cs
- TreeViewHitTestInfo.cs
- TextServicesLoader.cs
- HtmlToClrEventProxy.cs
- SqlConnectionString.cs
- WizardForm.cs
- IPEndPointCollection.cs
- CallSiteHelpers.cs
- X509RecipientCertificateClientElement.cs
- SQLResource.cs
- LateBoundChannelParameterCollection.cs
- XslCompiledTransform.cs
- ProfileEventArgs.cs
- InheritanceRules.cs
- IncrementalCompileAnalyzer.cs
- TypeBuilderInstantiation.cs
- RectangleHotSpot.cs
- Operand.cs
- ThrowHelper.cs
- StreamInfo.cs
- WebPartConnectVerb.cs
- SrgsDocument.cs
- PeerMessageDispatcher.cs
- ToggleButtonAutomationPeer.cs
- StrokeFIndices.cs
- DataGridItemCollection.cs
- LiteralText.cs
- ApplicationSecurityManager.cs
- ConstructorExpr.cs
- UIElementHelper.cs
- QuadraticBezierSegment.cs
- CodeGen.cs
- MarkupObject.cs
- Rotation3DKeyFrameCollection.cs
- WindowsTokenRoleProvider.cs
- WorkflowDesigner.cs
- SrgsOneOf.cs
- ErasingStroke.cs
- ScaleTransform3D.cs
- TraceContextRecord.cs
- ComponentResourceKeyConverter.cs
- Exceptions.cs
- PersistenceTypeAttribute.cs
- PeerNameRecordCollection.cs
- KerberosSecurityTokenProvider.cs
- ExecutionEngineException.cs
- SemanticTag.cs
- DynamicILGenerator.cs
- TransformGroup.cs
- DataGridItem.cs
- PublishLicense.cs
- CodeParameterDeclarationExpression.cs
- Boolean.cs
- WSFederationHttpBinding.cs
- XamlTemplateSerializer.cs