Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / newinstructionaction.cs / 1305376 / newinstructionaction.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 NewInstructionAction : ContainerAction { string name; string parent; bool fallback; internal override void Compile(Compiler compiler) { XPathNavigator nav = compiler.Input.Navigator.Clone(); name = nav.Name; nav.MoveToParent(); parent = nav.Name; if (compiler.Recurse()) { CompileSelectiveTemplate(compiler); compiler.ToParent(); } } internal void CompileSelectiveTemplate(Compiler compiler){ NavigatorInput input = compiler.Input; do{ if (Ref.Equal(input.NamespaceURI, input.Atoms.UriXsl) && Ref.Equal(input.LocalName, input.Atoms.Fallback)){ fallback = true; if (compiler.Recurse()){ CompileTemplate(compiler); compiler.ToParent(); } } } while (compiler.Advance()); } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (!fallback) { throw XsltException.Create(Res.Xslt_UnknownExtensionElement, this.name); } if (this.containedActions != null && this.containedActions.Count > 0) { processor.PushActionFrame(frame); frame.State = ProcessingChildren; break; } else goto case ProcessingChildren; case ProcessingChildren: frame.Finished(); break; default: Debug.Fail("Invalid Container action execution state"); break; } } } } // 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
- XmlExtensionFunction.cs
- ControlValuePropertyAttribute.cs
- AutoSizeToolBoxItem.cs
- Int64Storage.cs
- DesignerAdRotatorAdapter.cs
- CharEntityEncoderFallback.cs
- NamedPermissionSet.cs
- CodeCompileUnit.cs
- DataKey.cs
- VisualTreeHelper.cs
- ObjectDataSourceView.cs
- UnknownWrapper.cs
- DataRowChangeEvent.cs
- PagePropertiesChangingEventArgs.cs
- VisualProxy.cs
- Stylus.cs
- ResolvedKeyFrameEntry.cs
- DataControlHelper.cs
- Memoizer.cs
- ArgumentValue.cs
- CompiledRegexRunnerFactory.cs
- EventWaitHandleSecurity.cs
- ObjectDataSourceFilteringEventArgs.cs
- PinnedBufferMemoryStream.cs
- AssociationType.cs
- DesigntimeLicenseContext.cs
- TabControlCancelEvent.cs
- Binding.cs
- StateRuntime.cs
- FileDialogCustomPlace.cs
- SqlInternalConnectionTds.cs
- PanelStyle.cs
- CornerRadiusConverter.cs
- AggregatePushdown.cs
- RectangleHotSpot.cs
- NumericExpr.cs
- SharedStatics.cs
- DetailsViewActionList.cs
- TcpChannelFactory.cs
- DataChangedEventManager.cs
- webproxy.cs
- ComNativeDescriptor.cs
- VirtualizingStackPanel.cs
- CultureMapper.cs
- ContainerAction.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RefreshResponseInfo.cs
- XmlCodeExporter.cs
- SystemIPInterfaceProperties.cs
- MatrixValueSerializer.cs
- EditorPartChrome.cs
- FileUtil.cs
- ArrayConverter.cs
- PieceNameHelper.cs
- DragDeltaEventArgs.cs
- ConfigXmlAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- CollectionView.cs
- wmiutil.cs
- ServiceOperationParameter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ProviderCommandInfoUtils.cs
- LinkedResourceCollection.cs
- DesignerHierarchicalDataSourceView.cs
- TableLayoutCellPaintEventArgs.cs
- PersonalizationDictionary.cs
- ScriptResourceInfo.cs
- IgnoreFileBuildProvider.cs
- MDIWindowDialog.cs
- MaterializeFromAtom.cs
- ArgumentValue.cs
- SerTrace.cs
- DataGridViewRowsAddedEventArgs.cs
- formatter.cs
- SourceCollection.cs
- SlipBehavior.cs
- ClientRoleProvider.cs
- DataServiceQueryProvider.cs
- ConditionCollection.cs
- SrgsSubset.cs
- WpfXamlMember.cs
- CodeTypeReferenceExpression.cs
- InternalUserCancelledException.cs
- VoiceSynthesis.cs
- RadioButtonRenderer.cs
- TypedElement.cs
- SmiEventSink_Default.cs
- DynamicEndpointElement.cs
- Table.cs
- DecimalMinMaxAggregationOperator.cs
- DataRelationPropertyDescriptor.cs
- ProfilePropertySettings.cs
- SqlNodeAnnotations.cs
- WinCategoryAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- Point3DValueSerializer.cs
- SystemBrushes.cs
- TemplateBaseAction.cs
- Part.cs
- Transform3D.cs