Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / ApplyImportsAction.cs / 1 / 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
- DataListAutoFormat.cs
- TextRange.cs
- PopupEventArgs.cs
- XmlException.cs
- ExpressionBindingCollection.cs
- WebPartDisplayMode.cs
- VerificationException.cs
- PixelFormatConverter.cs
- TextTreeText.cs
- CodeDomSerializationProvider.cs
- ASCIIEncoding.cs
- PrimarySelectionGlyph.cs
- SiteMapDataSource.cs
- OledbConnectionStringbuilder.cs
- ITreeGenerator.cs
- RangeBaseAutomationPeer.cs
- TreeView.cs
- WebPartMenu.cs
- FileCodeGroup.cs
- FontDriver.cs
- ThumbButtonInfoCollection.cs
- SafeFindHandle.cs
- MailDefinition.cs
- DataGridColumnsPage.cs
- Configuration.cs
- SafeReversePInvokeHandle.cs
- _emptywebproxy.cs
- AdornerPresentationContext.cs
- XpsSerializerWriter.cs
- TableCellAutomationPeer.cs
- DeferredReference.cs
- CopyNodeSetAction.cs
- TrackBarRenderer.cs
- ActiveXHelper.cs
- ISCIIEncoding.cs
- InputScopeNameConverter.cs
- ParallelTimeline.cs
- WebPartCatalogAddVerb.cs
- PersianCalendar.cs
- FormsAuthenticationUserCollection.cs
- EntityClassGenerator.cs
- ContextStack.cs
- DataKey.cs
- GenerateTemporaryTargetAssembly.cs
- HistoryEventArgs.cs
- TextBoxAutomationPeer.cs
- ZipIOModeEnforcingStream.cs
- XmlSortKeyAccumulator.cs
- StandardTransformFactory.cs
- SID.cs
- CatalogPartChrome.cs
- EnumerableValidator.cs
- RequiredFieldValidator.cs
- DataDocumentXPathNavigator.cs
- CqlParser.cs
- SubtreeProcessor.cs
- ExceptionTranslationTable.cs
- ClientSideQueueItem.cs
- GeneratedCodeAttribute.cs
- RuntimeConfigLKG.cs
- CompilerCollection.cs
- BuildProviderUtils.cs
- DesignerActionList.cs
- XmlDocumentFragment.cs
- DefaultValidator.cs
- OpCopier.cs
- UserControl.cs
- BoundColumn.cs
- securitycriticaldata.cs
- CompiledAction.cs
- PeerServiceMessageContracts.cs
- MonitoringDescriptionAttribute.cs
- SequentialOutput.cs
- DataException.cs
- DirectoryObjectSecurity.cs
- EventsTab.cs
- ToolStripSettings.cs
- HttpRawResponse.cs
- ReferenceConverter.cs
- PolyBezierSegment.cs
- CodeTypeReference.cs
- RightsManagementEncryptedStream.cs
- NullRuntimeConfig.cs
- NameValueCollection.cs
- TcpWorkerProcess.cs
- CodeEventReferenceExpression.cs
- CompilerScopeManager.cs
- SamlDoNotCacheCondition.cs
- ProfilePropertyMetadata.cs
- XmlNamespaceMappingCollection.cs
- Size.cs
- BaseAsyncResult.cs
- CharAnimationUsingKeyFrames.cs
- SynchronizedDispatch.cs
- OleDbConnection.cs
- indexingfiltermarshaler.cs
- MediaContext.cs
- PeerInputChannelListener.cs
- LocationInfo.cs
- FileLogRecord.cs