Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / ApplyImportsAction.cs / 1305376 / ApplyImportsAction.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 ApplyImportsAction : CompiledAction { private XmlQualifiedName mode; private Stylesheet stylesheet; private const int TemplateProcessed = 2; internal override void Compile(Compiler compiler) { CheckEmpty(compiler); if (! compiler.CanHaveApplyImports) { throw XsltException.Create(Res.Xslt_ApplyImports); } this.mode = compiler.CurrentMode; this.stylesheet = compiler.CompiledStylesheet; } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: processor.PushTemplateLookup(frame.NodeSet, this.mode, /*importsOf:*/this.stylesheet); frame.State = TemplateProcessed; break; case TemplateProcessed: frame.Finished(); 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 ApplyImportsAction : CompiledAction { private XmlQualifiedName mode; private Stylesheet stylesheet; private const int TemplateProcessed = 2; internal override void Compile(Compiler compiler) { CheckEmpty(compiler); if (! compiler.CanHaveApplyImports) { throw XsltException.Create(Res.Xslt_ApplyImports); } this.mode = compiler.CurrentMode; this.stylesheet = compiler.CompiledStylesheet; } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: processor.PushTemplateLookup(frame.NodeSet, this.mode, /*importsOf:*/this.stylesheet); frame.State = TemplateProcessed; break; case TemplateProcessed: frame.Finished(); 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
- InputLanguage.cs
- PanningMessageFilter.cs
- InputDevice.cs
- PopupEventArgs.cs
- shaperfactoryquerycacheentry.cs
- StorageMappingItemLoader.cs
- DataGridAddNewRow.cs
- BufferedGraphicsManager.cs
- NetTcpSectionData.cs
- diagnosticsswitches.cs
- SqlException.cs
- URI.cs
- BrushValueSerializer.cs
- FreezableDefaultValueFactory.cs
- nulltextnavigator.cs
- XmlDownloadManager.cs
- ClientSideQueueItem.cs
- DataGridPagerStyle.cs
- Compilation.cs
- ConfigurationManager.cs
- SafeEventHandle.cs
- DebuggerAttributes.cs
- SimpleMailWebEventProvider.cs
- DataGridViewCellCollection.cs
- DelegateCompletionCallbackWrapper.cs
- LogSwitch.cs
- SqlInfoMessageEvent.cs
- XmlEntityReference.cs
- ImageMap.cs
- SoapFormatter.cs
- BuildManagerHost.cs
- Maps.cs
- CultureInfo.cs
- Cursors.cs
- NestedContainer.cs
- ClosableStream.cs
- GenerateScriptTypeAttribute.cs
- CatalogPartCollection.cs
- SecureUICommand.cs
- CodeGeneratorOptions.cs
- ValueType.cs
- ToolStripKeyboardHandlingService.cs
- _BufferOffsetSize.cs
- TileModeValidation.cs
- BrushValueSerializer.cs
- ExpressionVisitor.cs
- TokenBasedSetEnumerator.cs
- CompositeCollection.cs
- ImageBrush.cs
- StreamGeometry.cs
- ConnectionOrientedTransportManager.cs
- DispatchChannelSink.cs
- _TLSstream.cs
- InvalidDataContractException.cs
- UserNamePasswordValidator.cs
- AspNetRouteServiceHttpHandler.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- RecognizedPhrase.cs
- DataServiceCollectionOfT.cs
- SqlDataSourceEnumerator.cs
- MouseDevice.cs
- MenuItemBinding.cs
- ListViewSelectEventArgs.cs
- WindowsListBox.cs
- AnimationException.cs
- ReadOnlyTernaryTree.cs
- XamlTypeWithExplicitNamespace.cs
- DataListItemCollection.cs
- SpellCheck.cs
- DataServiceQueryException.cs
- SoapDocumentServiceAttribute.cs
- Token.cs
- ETagAttribute.cs
- OuterGlowBitmapEffect.cs
- PropertyChangedEventArgs.cs
- AlgoModule.cs
- ZipArchive.cs
- InkCollectionBehavior.cs
- CurrencyWrapper.cs
- SearchExpression.cs
- CalendarDay.cs
- DesignerAttributeInfo.cs
- DataColumnPropertyDescriptor.cs
- CompilerCollection.cs
- NativeMethods.cs
- UInt32.cs
- _NestedMultipleAsyncResult.cs
- HotSpot.cs
- WeakReferenceEnumerator.cs
- RenderData.cs
- PrimitiveXmlSerializers.cs
- activationcontext.cs
- MachineKeyConverter.cs
- OleDbInfoMessageEvent.cs
- WebBrowserContainer.cs
- TextMessageEncoder.cs
- ObjectQuery_EntitySqlExtensions.cs
- AccessDataSourceView.cs
- DataGridViewCellFormattingEventArgs.cs
- CompilerHelpers.cs