Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / newinstructionaction.cs / 1 / 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 (Keywords.Equals(input.NamespaceURI, input.Atoms.XsltNamespace) && Keywords.Equals(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. //------------------------------------------------------------------------------ //// 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 (Keywords.Equals(input.NamespaceURI, input.Atoms.XsltNamespace) && Keywords.Equals(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
- WebRequestModuleElement.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CommonXSendMessage.cs
- StringCollectionMarkupSerializer.cs
- CqlErrorHelper.cs
- HitTestParameters3D.cs
- QilGenerator.cs
- BitStream.cs
- PropertyGridDesigner.cs
- QilInvokeLateBound.cs
- WebPartMenu.cs
- LongValidatorAttribute.cs
- PeerChannelFactory.cs
- MailHeaderInfo.cs
- HttpsHostedTransportConfiguration.cs
- ZipIOFileItemStream.cs
- PackWebResponse.cs
- PointHitTestParameters.cs
- WebServiceHandlerFactory.cs
- SchemaUtility.cs
- BulletedList.cs
- ToolBarTray.cs
- Ops.cs
- ConcurrencyMode.cs
- PowerEase.cs
- SqlDataSourceCommandEventArgs.cs
- LogEntryUtils.cs
- ServiceObjectContainer.cs
- ScrollEvent.cs
- _FixedSizeReader.cs
- TrackPointCollection.cs
- DocumentViewerConstants.cs
- MethodExpr.cs
- GPRECTF.cs
- ChooseAction.cs
- GrowingArray.cs
- InputScopeNameConverter.cs
- ContentElementCollection.cs
- EntityContainerEmitter.cs
- XmlSchemaDocumentation.cs
- _SingleItemRequestCache.cs
- CodeGenerator.cs
- TypedTableBaseExtensions.cs
- TimelineCollection.cs
- PropertyCondition.cs
- WmlFormAdapter.cs
- RuleProcessor.cs
- PermissionListSet.cs
- LoginUtil.cs
- Events.cs
- EventMappingSettingsCollection.cs
- ComplusTypeValidator.cs
- DeclaredTypeValidator.cs
- _ScatterGatherBuffers.cs
- CorrelationValidator.cs
- DateTimeOffset.cs
- SafeFileMappingHandle.cs
- WebBrowserEvent.cs
- SafeHandle.cs
- ChannelBinding.cs
- SourceInterpreter.cs
- RunClient.cs
- thaishape.cs
- WebZone.cs
- DbConnectionOptions.cs
- CancelRequestedRecord.cs
- XmlTextReader.cs
- PassportPrincipal.cs
- XmlCharType.cs
- HyperLink.cs
- ObjectStateFormatter.cs
- BufferAllocator.cs
- GcHandle.cs
- WebBrowserNavigatingEventHandler.cs
- EntityDataSourceWizardForm.cs
- ExtendedPropertyDescriptor.cs
- FileSystemInfo.cs
- KeyGestureValueSerializer.cs
- SQLRoleProvider.cs
- RemotingService.cs
- LeafCellTreeNode.cs
- WebPartDescription.cs
- QilXmlWriter.cs
- DocumentReference.cs
- TextSerializer.cs
- MetadataExporter.cs
- SpeechAudioFormatInfo.cs
- mediaeventshelper.cs
- HwndAppCommandInputProvider.cs
- ThemeConfigurationDialog.cs
- SymbolMethod.cs
- TagMapCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- _CommandStream.cs
- VisualStyleElement.cs
- FilteredAttributeCollection.cs
- HttpRequestBase.cs
- ClientRoleProvider.cs
- DbExpressionRules.cs
- HtmlInputText.cs