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
- FieldBuilder.cs
- ExceptionUtil.cs
- webproxy.cs
- _TLSstream.cs
- ZipIOBlockManager.cs
- MemberProjectedSlot.cs
- GridViewUpdatedEventArgs.cs
- Operator.cs
- DataGridViewControlCollection.cs
- ReflectTypeDescriptionProvider.cs
- GridViewCommandEventArgs.cs
- MailAddressCollection.cs
- dbdatarecord.cs
- ObjectHelper.cs
- LogLogRecordHeader.cs
- FrameworkTemplate.cs
- DecimalAnimation.cs
- SignatureToken.cs
- QuaternionAnimationBase.cs
- StateChangeEvent.cs
- SqlTransaction.cs
- PackageStore.cs
- panel.cs
- PngBitmapEncoder.cs
- regiisutil.cs
- CursorConverter.cs
- TextContainerHelper.cs
- WebPartRestoreVerb.cs
- ThreadStaticAttribute.cs
- IntSecurity.cs
- StrongNameHelpers.cs
- SchemaImporterExtensionElement.cs
- SkewTransform.cs
- IFlowDocumentViewer.cs
- HtmlFormWrapper.cs
- TextEditorTyping.cs
- SrgsOneOf.cs
- PersonalizationProviderCollection.cs
- TimerElapsedEvenArgs.cs
- ThemeConfigurationDialog.cs
- Style.cs
- FormViewCommandEventArgs.cs
- MenuItemStyle.cs
- AutomationTextAttribute.cs
- SymbolEqualComparer.cs
- SymbolUsageManager.cs
- TableCellCollection.cs
- EntityDataSource.cs
- CallInfo.cs
- WebPartUserCapability.cs
- _UriSyntax.cs
- PageParser.cs
- Window.cs
- ViewBox.cs
- ColumnWidthChangingEvent.cs
- SQLChars.cs
- CTreeGenerator.cs
- Expander.cs
- InputGestureCollection.cs
- HwndSource.cs
- ContentType.cs
- SafeLibraryHandle.cs
- ZipIOLocalFileDataDescriptor.cs
- ExtensionQuery.cs
- InnerItemCollectionView.cs
- AppDomainManager.cs
- DependencyObjectCodeDomSerializer.cs
- LineBreak.cs
- Gdiplus.cs
- RemoteDebugger.cs
- TouchFrameEventArgs.cs
- SmiEventSink.cs
- ControlCollection.cs
- ContainerControl.cs
- Transform3DGroup.cs
- CqlParserHelpers.cs
- ImmComposition.cs
- Graph.cs
- mediaclock.cs
- XLinq.cs
- SiteMapNodeItem.cs
- DataObject.cs
- Typography.cs
- BitmapData.cs
- DesignerCategoryAttribute.cs
- AccessKeyManager.cs
- TextParagraphView.cs
- CompositeDataBoundControl.cs
- SqlFormatter.cs
- ToolStripItemImageRenderEventArgs.cs
- HtmlValidationSummaryAdapter.cs
- OdbcError.cs
- BitmapEffectInput.cs
- HScrollBar.cs
- ProviderException.cs
- ArrangedElementCollection.cs
- DBConnection.cs
- FixedSOMGroup.cs
- HybridDictionary.cs
- XmlHierarchyData.cs