Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / BeginEvent.cs / 1305376 / BeginEvent.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 BeginEvent : Event { private XPathNodeType nodeType; private string namespaceUri; private string name; private string prefix; private bool empty; private object htmlProps; #if DEBUG private bool replaceNSAliasesDone; #endif public BeginEvent(Compiler compiler) { NavigatorInput input = compiler.Input; Debug.Assert(input != null); Debug.Assert(input.NodeType != XPathNodeType.Namespace); this.nodeType = input.NodeType; this.namespaceUri = input.NamespaceURI; this.name = input.LocalName; this.prefix = input.Prefix; this.empty = input.IsEmptyTag; if (nodeType == XPathNodeType.Element) { this.htmlProps = HtmlElementProps.GetProps(this.name); } else if (nodeType == XPathNodeType.Attribute) { this.htmlProps = HtmlAttributeProps.GetProps(this.name); } } public override void ReplaceNamespaceAlias(Compiler compiler){ #if DEBUG Debug.Assert(! replaceNSAliasesDone, "Second attempt to replace NS aliases!. This bad."); replaceNSAliasesDone = true; #endif if (this.nodeType == XPathNodeType.Attribute && this.namespaceUri.Length == 0) { return ; // '#default' aren't apply to attributes. } NamespaceInfo ResultURIInfo = compiler.FindNamespaceAlias(this.namespaceUri); if (ResultURIInfo != null) { this.namespaceUri = ResultURIInfo.nameSpace; if (ResultURIInfo.prefix != null) { this.prefix = ResultURIInfo.prefix; } } } public override bool Output(Processor processor, ActionFrame frame) { return processor.BeginEvent(this.nodeType, this.prefix, this.name, this.namespaceUri, this.empty, this.htmlProps, false); } } } // 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
- NotImplementedException.cs
- TextClipboardData.cs
- EllipticalNodeOperations.cs
- WsiProfilesElementCollection.cs
- WorkflowOwnerAsyncResult.cs
- TableLayoutPanelCodeDomSerializer.cs
- BuilderPropertyEntry.cs
- UIElement.cs
- CompilationUnit.cs
- Select.cs
- PropertyChangeTracker.cs
- FactoryRecord.cs
- WindowShowOrOpenTracker.cs
- CodeTypeConstructor.cs
- IdentitySection.cs
- PreparingEnlistment.cs
- ComplexObject.cs
- MediaElement.cs
- CompressedStack.cs
- CompModSwitches.cs
- Bits.cs
- DetailsViewCommandEventArgs.cs
- OdbcRowUpdatingEvent.cs
- X509Utils.cs
- ObjectDataSourceMethodEventArgs.cs
- MemberPathMap.cs
- DataChangedEventManager.cs
- InvalidateEvent.cs
- FieldAccessException.cs
- ClientEventManager.cs
- Errors.cs
- StopStoryboard.cs
- EditingScope.cs
- CallbackWrapper.cs
- DeferrableContentConverter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataBindingList.cs
- XmlNotation.cs
- StylusPointProperty.cs
- Border.cs
- MetafileHeader.cs
- SystemIcmpV4Statistics.cs
- WindowsListViewScroll.cs
- ParameterRetriever.cs
- StyleCollection.cs
- NavigationFailedEventArgs.cs
- NotifyIcon.cs
- DesigntimeLicenseContextSerializer.cs
- PageStatePersister.cs
- DataServices.cs
- TraceShell.cs
- RemoteWebConfigurationHostServer.cs
- AsymmetricAlgorithm.cs
- PeerNameResolver.cs
- PageParserFilter.cs
- Base64Encoding.cs
- StorageEntityTypeMapping.cs
- GridViewSortEventArgs.cs
- _KerberosClient.cs
- TraceListener.cs
- SoapClientProtocol.cs
- BinaryNode.cs
- _ListenerRequestStream.cs
- ImageSource.cs
- TableRowGroupCollection.cs
- PerformanceCounter.cs
- ClientBuildManagerCallback.cs
- LinearGradientBrush.cs
- ToolboxItemCollection.cs
- Profiler.cs
- wgx_sdk_version.cs
- HandoffBehavior.cs
- EventData.cs
- MSAANativeProvider.cs
- ImportDesigner.xaml.cs
- AutomationProperties.cs
- PinnedBufferMemoryStream.cs
- XPathScanner.cs
- Accessible.cs
- WebPartZoneCollection.cs
- RenderDataDrawingContext.cs
- DbMetaDataFactory.cs
- XmlMapping.cs
- StateDesigner.TransitionInfo.cs
- StatusBarItem.cs
- AggregationMinMaxHelpers.cs
- OutputCacheSection.cs
- LassoSelectionBehavior.cs
- DynamicArgumentDesigner.xaml.cs
- UrlAuthFailedErrorFormatter.cs
- MsmqHostedTransportManager.cs
- AccessViolationException.cs
- BulletChrome.cs
- BaseHashHelper.cs
- Image.cs
- CompiledAction.cs
- MouseButtonEventArgs.cs
- PropertyInfoSet.cs
- WebRequestModuleElementCollection.cs
- PersonalizationStateQuery.cs