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
- Help.cs
- SQLMoneyStorage.cs
- TableLayoutRowStyleCollection.cs
- ListChunk.cs
- FilterQuery.cs
- sortedlist.cs
- BitmapEffectGeneralTransform.cs
- SafeReadContext.cs
- FixedSOMPageConstructor.cs
- SmtpNegotiateAuthenticationModule.cs
- XomlCompilerError.cs
- BitmapPalettes.cs
- SchemaAttDef.cs
- IconEditor.cs
- WebPartActionVerb.cs
- SelectedGridItemChangedEvent.cs
- ProcessProtocolHandler.cs
- FileLevelControlBuilderAttribute.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CompiledRegexRunnerFactory.cs
- NavigationHelper.cs
- MULTI_QI.cs
- AutomationProperty.cs
- TextElementEnumerator.cs
- counter.cs
- Parameter.cs
- ObjectSecurity.cs
- ClientTargetCollection.cs
- CodeSnippetStatement.cs
- SingleResultAttribute.cs
- BooleanAnimationBase.cs
- OleDbTransaction.cs
- HttpCapabilitiesSectionHandler.cs
- XDRSchema.cs
- TextViewSelectionProcessor.cs
- SQLCharsStorage.cs
- SchemaAttDef.cs
- ReadOnlyDictionary.cs
- _SecureChannel.cs
- Part.cs
- SqlCacheDependencyDatabase.cs
- ExpressionNormalizer.cs
- SqlDataSourceRefreshSchemaForm.cs
- ChangeToolStripParentVerb.cs
- XmlNamespaceMappingCollection.cs
- WindowsTokenRoleProvider.cs
- ViewBox.cs
- SimpleTableProvider.cs
- MatrixAnimationUsingKeyFrames.cs
- RegularExpressionValidator.cs
- WSHttpBinding.cs
- MouseGestureValueSerializer.cs
- FontEmbeddingManager.cs
- ObservableCollection.cs
- PipeException.cs
- BoundField.cs
- SoapFault.cs
- FieldAccessException.cs
- XmlEntity.cs
- CommandDevice.cs
- WebPartManagerInternals.cs
- WmpBitmapEncoder.cs
- AssertFilter.cs
- Queue.cs
- CriticalHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- GiveFeedbackEvent.cs
- DataGridAddNewRow.cs
- PropertyValidationContext.cs
- Stack.cs
- configsystem.cs
- HttpCachePolicyElement.cs
- X509CertificateClaimSet.cs
- MatrixStack.cs
- OrderedDictionary.cs
- RowSpanVector.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- DynamicFilterExpression.cs
- ListViewInsertedEventArgs.cs
- ButtonFieldBase.cs
- CreateDataSourceDialog.cs
- CrossSiteScriptingValidation.cs
- WindowPattern.cs
- AutomationElementCollection.cs
- DataObjectFieldAttribute.cs
- BuiltInPermissionSets.cs
- ICspAsymmetricAlgorithm.cs
- AnnouncementInnerClient11.cs
- WindowsImpersonationContext.cs
- EventEntry.cs
- UiaCoreTypesApi.cs
- ToolTipService.cs
- SoapEnumAttribute.cs
- ResourcePool.cs
- LassoHelper.cs
- BaseDataListActionList.cs
- EntitySqlQueryBuilder.cs
- __ComObject.cs
- TextBreakpoint.cs
- FunctionParameter.cs