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
- DetailsViewInsertEventArgs.cs
- XmlParserContext.cs
- DataProviderNameConverter.cs
- DateTimeFormatInfo.cs
- DBParameter.cs
- AssociativeAggregationOperator.cs
- DocumentAutomationPeer.cs
- XXXOnTypeBuilderInstantiation.cs
- AnimationTimeline.cs
- altserialization.cs
- XmlSchemaNotation.cs
- DataGridColumnReorderingEventArgs.cs
- CompilerCollection.cs
- TextBreakpoint.cs
- OleDbEnumerator.cs
- XmlReader.cs
- WindowClosedEventArgs.cs
- EventLogEntryCollection.cs
- _Connection.cs
- SafeMILHandle.cs
- XamlPathDataSerializer.cs
- CurrentChangedEventManager.cs
- MimeMultiPart.cs
- LinearKeyFrames.cs
- GenericIdentity.cs
- CanExecuteRoutedEventArgs.cs
- StructuredTypeEmitter.cs
- Line.cs
- BindingSource.cs
- ByteBufferPool.cs
- CodeGotoStatement.cs
- _NTAuthentication.cs
- ListDesigner.cs
- FormsAuthenticationConfiguration.cs
- DeferredElementTreeState.cs
- TextSelectionHelper.cs
- ValidatedControlConverter.cs
- StringValidator.cs
- BindingElementCollection.cs
- DependencyPropertyKey.cs
- Animatable.cs
- serverconfig.cs
- RegexParser.cs
- COM2TypeInfoProcessor.cs
- DefaultBindingPropertyAttribute.cs
- VirtualPath.cs
- GuidelineCollection.cs
- LinkedResource.cs
- MainMenu.cs
- MouseActionValueSerializer.cs
- SizeChangedEventArgs.cs
- RangeBaseAutomationPeer.cs
- ListViewDeletedEventArgs.cs
- BitmapEffectInputData.cs
- ValueConversionAttribute.cs
- ObjectAssociationEndMapping.cs
- DBDataPermission.cs
- SignerInfo.cs
- WebPartConnectVerb.cs
- ParagraphResult.cs
- Wizard.cs
- PeerApplication.cs
- DataGridViewCellCollection.cs
- TabletDevice.cs
- Line.cs
- EventRecordWrittenEventArgs.cs
- DefaultMergeHelper.cs
- UrlPath.cs
- HttpCookiesSection.cs
- ClusterSafeNativeMethods.cs
- DynamicObjectAccessor.cs
- SchemaEntity.cs
- DataRecordInternal.cs
- SafeNativeMethods.cs
- WebBrowserPermission.cs
- SerializationAttributes.cs
- KerberosSecurityTokenAuthenticator.cs
- HttpCapabilitiesEvaluator.cs
- Margins.cs
- CloseCollectionAsyncResult.cs
- KeyEvent.cs
- TextEditorCopyPaste.cs
- DateTimeFormatInfo.cs
- RIPEMD160Managed.cs
- ProviderUtil.cs
- DbConnectionFactory.cs
- BinaryParser.cs
- ErrorEventArgs.cs
- ECDiffieHellman.cs
- SqlMethodAttribute.cs
- StylusPoint.cs
- TemplateXamlTreeBuilder.cs
- DataTableTypeConverter.cs
- HttpCapabilitiesSectionHandler.cs
- WebPartConnectionCollection.cs
- NamedPipeTransportManager.cs
- ComplexBindingPropertiesAttribute.cs
- DesignerTransaction.cs
- X509IssuerSerialKeyIdentifierClause.cs
- AdapterDictionary.cs