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
- ByteStack.cs
- Accessible.cs
- NumberAction.cs
- _ListenerAsyncResult.cs
- HotSpotCollection.cs
- TextPatternIdentifiers.cs
- PrintDialogException.cs
- FrameworkElementFactoryMarkupObject.cs
- FloatUtil.cs
- CreateUserWizardStep.cs
- IItemContainerGenerator.cs
- namescope.cs
- DataGridLength.cs
- _Events.cs
- PackageRelationshipSelector.cs
- DataBinder.cs
- PreviewPrintController.cs
- XXXInfos.cs
- HttpServerVarsCollection.cs
- DescriptionAttribute.cs
- SeekableReadStream.cs
- ProfileInfo.cs
- DeviceFilterEditorDialog.cs
- WebProxyScriptElement.cs
- Substitution.cs
- SoapEnumAttribute.cs
- CurrentChangedEventManager.cs
- KeyGesture.cs
- DbConnectionOptions.cs
- SystemNetHelpers.cs
- DataServiceQueryException.cs
- OracleColumn.cs
- SourceFilter.cs
- MeasureData.cs
- HTTPNotFoundHandler.cs
- Convert.cs
- FileFormatException.cs
- OrderedDictionary.cs
- ClientOptions.cs
- ParameterCollection.cs
- DataGridViewRow.cs
- HttpChannelHelper.cs
- ListChunk.cs
- ProfessionalColors.cs
- SafeReversePInvokeHandle.cs
- CollectionView.cs
- CssClassPropertyAttribute.cs
- ActionMessageFilter.cs
- ObjectCloneHelper.cs
- ArglessEventHandlerProxy.cs
- EntityContainer.cs
- OracleConnectionString.cs
- ImageList.cs
- CodeTypeParameterCollection.cs
- TypeListConverter.cs
- PerfCounters.cs
- OleDbSchemaGuid.cs
- MessageLogTraceRecord.cs
- BindingMAnagerBase.cs
- MouseGestureConverter.cs
- SuppressIldasmAttribute.cs
- Type.cs
- RegionIterator.cs
- EventMap.cs
- SqlMethodCallConverter.cs
- CombinedGeometry.cs
- MaterialGroup.cs
- CompositionTarget.cs
- FontNamesConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- HttpCacheParams.cs
- EmissiveMaterial.cs
- BaseValidator.cs
- DoubleConverter.cs
- XPathDocumentIterator.cs
- ChangeNode.cs
- TailCallAnalyzer.cs
- ValidationEventArgs.cs
- CalendarDesigner.cs
- ConfigurationElementProperty.cs
- UpDownEvent.cs
- PerfService.cs
- SrgsElement.cs
- AsyncCompletedEventArgs.cs
- Application.cs
- DataGridViewTopRowAccessibleObject.cs
- Rotation3D.cs
- PropertyGrid.cs
- DBDataPermissionAttribute.cs
- hresults.cs
- SettingsSection.cs
- MetadataFile.cs
- DataGridViewRowCollection.cs
- ConfigsHelper.cs
- SchemaNamespaceManager.cs
- LOSFormatter.cs
- TextDecoration.cs
- UIElementParagraph.cs
- SystemIPAddressInformation.cs
- DependencyObjectPropertyDescriptor.cs