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
- MenuCommands.cs
- ToolboxComponentsCreatedEventArgs.cs
- OrCondition.cs
- SelectiveScrollingGrid.cs
- BevelBitmapEffect.cs
- ToolZone.cs
- FixedSOMPageConstructor.cs
- PolyLineSegment.cs
- XsltException.cs
- SoapObjectInfo.cs
- RegionIterator.cs
- DocumentViewer.cs
- DesignerMetadata.cs
- XPathPatternParser.cs
- XmlBindingWorker.cs
- ProfileSettingsCollection.cs
- JsonWriter.cs
- Missing.cs
- OleDbErrorCollection.cs
- DbConnectionOptions.cs
- InternalEnumValidator.cs
- XamlInt32CollectionSerializer.cs
- MultipleViewPatternIdentifiers.cs
- ContainerUtilities.cs
- SamlAdvice.cs
- StringOutput.cs
- Bidi.cs
- SqlVisitor.cs
- GridViewRowPresenter.cs
- storepermissionattribute.cs
- SelectionRangeConverter.cs
- FormattedTextSymbols.cs
- FileInfo.cs
- CompositeControl.cs
- SynchronizationContext.cs
- InternalBufferOverflowException.cs
- ReplyAdapterChannelListener.cs
- HyperlinkAutomationPeer.cs
- WebConfigurationHostFileChange.cs
- AdapterSwitches.cs
- PolyLineSegmentFigureLogic.cs
- AjaxFrameworkAssemblyAttribute.cs
- KerberosReceiverSecurityToken.cs
- WebDescriptionAttribute.cs
- ValidationSummary.cs
- AsymmetricKeyExchangeFormatter.cs
- Image.cs
- URLAttribute.cs
- ExpressionTable.cs
- WinFormsUtils.cs
- UnsafeNativeMethods.cs
- TileBrush.cs
- FullTextLine.cs
- ThreadStaticAttribute.cs
- TrackingServices.cs
- CompilationUtil.cs
- EventWaitHandleSecurity.cs
- SecurityTokenRequirement.cs
- ComponentManagerBroker.cs
- BufferedGraphics.cs
- HtmlSelect.cs
- HwndHostAutomationPeer.cs
- RoleManagerModule.cs
- TerminateSequence.cs
- TypeResolvingOptions.cs
- ChildDocumentBlock.cs
- Package.cs
- OdbcTransaction.cs
- SqlCacheDependency.cs
- SafeHandle.cs
- DefaultHttpHandler.cs
- DataGridViewAccessibleObject.cs
- PauseStoryboard.cs
- TriggerBase.cs
- LinkAreaEditor.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FacetEnabledSchemaElement.cs
- BaseValidator.cs
- StyleSheetDesigner.cs
- MouseButton.cs
- Missing.cs
- ToolStripItemClickedEventArgs.cs
- DesignerCapabilities.cs
- TypeInitializationException.cs
- PropertyCollection.cs
- RowVisual.cs
- SafeNativeMethods.cs
- KeyboardDevice.cs
- ResourceSet.cs
- EdmRelationshipRoleAttribute.cs
- Canvas.cs
- _LoggingObject.cs
- DefaultSerializationProviderAttribute.cs
- PropertyDescriptorGridEntry.cs
- BaseTypeViewSchema.cs
- Compensate.cs
- CodeBlockBuilder.cs
- CodeActivityMetadata.cs
- PasswordRecovery.cs
- RootDesignerSerializerAttribute.cs