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
- WebPartManager.cs
- IdentitySection.cs
- ZipIOExtraFieldElement.cs
- ByteStreamMessageUtility.cs
- ListViewInsertionMark.cs
- TimeSpanStorage.cs
- ExponentialEase.cs
- ThicknessAnimation.cs
- EntityTypeEmitter.cs
- XmlSchemaType.cs
- SpotLight.cs
- ResXResourceSet.cs
- ListViewEditEventArgs.cs
- StrokeNodeOperations.cs
- PolicyStatement.cs
- BooleanExpr.cs
- DefaultPrintController.cs
- HwndAppCommandInputProvider.cs
- ResourcesGenerator.cs
- ByteStreamBufferedMessageData.cs
- TextPatternIdentifiers.cs
- DCSafeHandle.cs
- FrameworkContentElement.cs
- PropertyGrid.cs
- AttachmentCollection.cs
- OnOperation.cs
- Events.cs
- LoginName.cs
- HttpsChannelFactory.cs
- SoapIncludeAttribute.cs
- ExternalException.cs
- StylusDownEventArgs.cs
- TableLayoutSettingsTypeConverter.cs
- TraceSwitch.cs
- WindowsGraphics.cs
- VisualProxy.cs
- Stylus.cs
- EventProperty.cs
- Clock.cs
- namescope.cs
- ProfileParameter.cs
- FormViewUpdatedEventArgs.cs
- QueueProcessor.cs
- PropertyOverridesDialog.cs
- ErrorProvider.cs
- CustomAttribute.cs
- DBConnection.cs
- CompilerGeneratedAttribute.cs
- HorizontalAlignConverter.cs
- ScrollBarRenderer.cs
- DateTimeValueSerializer.cs
- XmlNode.cs
- SamlDoNotCacheCondition.cs
- RequestCache.cs
- DbInsertCommandTree.cs
- XdrBuilder.cs
- TraceData.cs
- TreeView.cs
- ButtonBase.cs
- newitemfactory.cs
- SchemaImporterExtensionsSection.cs
- HighlightVisual.cs
- EnumUnknown.cs
- FixedPage.cs
- TextRangeProviderWrapper.cs
- SchemaExporter.cs
- SiteMapPath.cs
- SoapServerMethod.cs
- ActiveXHost.cs
- NotFiniteNumberException.cs
- _ShellExpression.cs
- RequestQueue.cs
- ColumnReorderedEventArgs.cs
- KoreanLunisolarCalendar.cs
- MarkupProperty.cs
- Object.cs
- TabRenderer.cs
- RowBinding.cs
- ParserContext.cs
- DomNameTable.cs
- CannotUnloadAppDomainException.cs
- WorkflowApplicationUnloadedException.cs
- Profiler.cs
- SystemDiagnosticsSection.cs
- OdbcConnectionPoolProviderInfo.cs
- InvariantComparer.cs
- PartialArray.cs
- ReadOnlyDictionary.cs
- IResourceProvider.cs
- BitmapPalettes.cs
- SHA384.cs
- XmlILAnnotation.cs
- ObjectSet.cs
- QilTernary.cs
- CatalogPartCollection.cs
- AlignmentXValidation.cs
- Dictionary.cs
- ObjectParameterCollection.cs
- DataGridViewUtilities.cs
- ModuleElement.cs