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 / 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
- StrokeDescriptor.cs
- TreeNodeStyle.cs
- DeploymentExceptionMapper.cs
- BindingExpression.cs
- PipelineModuleStepContainer.cs
- DBCommandBuilder.cs
- ParallelTimeline.cs
- DataGridViewColumnCollection.cs
- BinaryNode.cs
- PartialList.cs
- GroupBox.cs
- PropertyEmitter.cs
- BufferModeSettings.cs
- SByte.cs
- ProviderSettingsCollection.cs
- LinearQuaternionKeyFrame.cs
- CultureSpecificStringDictionary.cs
- ListViewGroupConverter.cs
- WeakReference.cs
- PointConverter.cs
- FieldAccessException.cs
- SourceChangedEventArgs.cs
- ThreadSafeList.cs
- ClientTarget.cs
- Switch.cs
- TextDecorationLocationValidation.cs
- Effect.cs
- CuspData.cs
- XsltArgumentList.cs
- DefinitionUpdate.cs
- DateTime.cs
- BeginGetFileNameFromUserRequest.cs
- DaylightTime.cs
- ObjectViewQueryResultData.cs
- EventWaitHandleSecurity.cs
- DataGridViewCheckBoxCell.cs
- QilScopedVisitor.cs
- MonitoringDescriptionAttribute.cs
- FacetDescription.cs
- mediaeventargs.cs
- Geometry3D.cs
- ChangePassword.cs
- LinkUtilities.cs
- HttpRawResponse.cs
- PointCollectionConverter.cs
- DashStyle.cs
- RangeBaseAutomationPeer.cs
- ClientApiGenerator.cs
- LinkUtilities.cs
- CompiledIdentityConstraint.cs
- objectresult_tresulttype.cs
- ThreadPool.cs
- WebReferencesBuildProvider.cs
- ReceiveMessageRecord.cs
- CompilerErrorCollection.cs
- SourceFileBuildProvider.cs
- TextEditorTyping.cs
- WebPartVerb.cs
- HtmlControlDesigner.cs
- ParameterCollectionEditorForm.cs
- ReadOnlyActivityGlyph.cs
- Errors.cs
- HttpModuleCollection.cs
- PrintEvent.cs
- TypeSystem.cs
- PerformanceCounterLib.cs
- StaticResourceExtension.cs
- EmbossBitmapEffect.cs
- Pen.cs
- WebConfigurationHost.cs
- DesignerView.Commands.cs
- SerializationFieldInfo.cs
- X509Certificate2.cs
- EndpointIdentityExtension.cs
- ProfessionalColorTable.cs
- CommentEmitter.cs
- DesignerActionKeyboardBehavior.cs
- TimelineCollection.cs
- GotoExpression.cs
- MultiViewDesigner.cs
- HttpDictionary.cs
- X509Extension.cs
- HMACSHA1.cs
- NativeMethods.cs
- WhitespaceRuleReader.cs
- PerformanceCounterCategory.cs
- PixelFormat.cs
- VectorCollection.cs
- PropertyValue.cs
- OleDbWrapper.cs
- GraphicsContext.cs
- ClientApiGenerator.cs
- XpsS0ValidatingLoader.cs
- Int32Rect.cs
- SaveFileDialog.cs
- WebPartCancelEventArgs.cs
- WindowsClaimSet.cs
- CqlLexerHelpers.cs
- ResourceProperty.cs
- WorkflowRuntimeServiceElementCollection.cs