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
- XmlTextReaderImpl.cs
- SegmentTree.cs
- XpsInterleavingPolicy.cs
- UnsafeNativeMethods.cs
- Point3DAnimationUsingKeyFrames.cs
- AudioStateChangedEventArgs.cs
- EditBehavior.cs
- ThemeDictionaryExtension.cs
- Pair.cs
- ToolStripTextBox.cs
- SafeRightsManagementPubHandle.cs
- MediaTimeline.cs
- Border.cs
- DoubleAnimation.cs
- GetChildSubtree.cs
- HasCopySemanticsAttribute.cs
- WindowsTab.cs
- BamlBinaryReader.cs
- AccessedThroughPropertyAttribute.cs
- XamlStackWriter.cs
- ThaiBuddhistCalendar.cs
- _RequestCacheProtocol.cs
- DropTarget.cs
- XmlArrayItemAttribute.cs
- UniqueConstraint.cs
- TypefaceMap.cs
- CustomAttribute.cs
- ObjectPersistData.cs
- BuilderElements.cs
- TemplateControlBuildProvider.cs
- TargetInvocationException.cs
- IndicCharClassifier.cs
- UnsafeNativeMethods.cs
- BindingCollection.cs
- TypeGenericEnumerableViewSchema.cs
- DataGridItemEventArgs.cs
- DataGridAddNewRow.cs
- DrawingContextDrawingContextWalker.cs
- WhitespaceRuleLookup.cs
- Duration.cs
- FamilyMap.cs
- MenuAutomationPeer.cs
- LocationInfo.cs
- Stopwatch.cs
- TraceLog.cs
- ToolStripMenuItemDesigner.cs
- RequestCachePolicy.cs
- Gdiplus.cs
- ActiveXContainer.cs
- CatalogZoneBase.cs
- HTMLTextWriter.cs
- VisemeEventArgs.cs
- ScrollViewerAutomationPeer.cs
- EventHandlersStore.cs
- Int32CollectionValueSerializer.cs
- DynamicPropertyHolder.cs
- SelectionChangedEventArgs.cs
- FileNotFoundException.cs
- SqlWebEventProvider.cs
- TableCellCollection.cs
- IUnknownConstantAttribute.cs
- ToggleProviderWrapper.cs
- XmlHelper.cs
- AgileSafeNativeMemoryHandle.cs
- Point.cs
- DataReceivedEventArgs.cs
- PathParser.cs
- CapabilitiesPattern.cs
- EastAsianLunisolarCalendar.cs
- PathTooLongException.cs
- UnionCqlBlock.cs
- ListMarkerLine.cs
- DiscardableAttribute.cs
- ReachPageContentSerializer.cs
- XmlNamedNodeMap.cs
- DeploymentSectionCache.cs
- MergeFailedEvent.cs
- CalendarItem.cs
- DisableDpiAwarenessAttribute.cs
- HiddenField.cs
- HeaderLabel.cs
- Content.cs
- MILUtilities.cs
- TreePrinter.cs
- ChildTable.cs
- DescendantOverDescendantQuery.cs
- XmlDataProvider.cs
- URLMembershipCondition.cs
- Symbol.cs
- BitmapImage.cs
- ArrayMergeHelper.cs
- TextDecoration.cs
- Line.cs
- TypeConverterHelper.cs
- DataGridPagingPage.cs
- XmlQualifiedName.cs
- SimpleMailWebEventProvider.cs
- PropertyDescriptorComparer.cs
- PropertyInformationCollection.cs
- DiscoveryDocument.cs