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
- TransactionChannelFactory.cs
- WindowsSlider.cs
- rsa.cs
- XmlSchemaProviderAttribute.cs
- IImplicitResourceProvider.cs
- WebPartConnectVerb.cs
- ExpandCollapseProviderWrapper.cs
- BoolExpressionVisitors.cs
- MutexSecurity.cs
- OleDragDropHandler.cs
- MultiSelector.cs
- VolatileResourceManager.cs
- GACIdentityPermission.cs
- FileSystemInfo.cs
- ParallelActivityDesigner.cs
- ResourceSet.cs
- GuidelineCollection.cs
- MetadataArtifactLoaderCompositeResource.cs
- Ray3DHitTestResult.cs
- TimeSpanValidatorAttribute.cs
- PackageDigitalSignature.cs
- ListViewItemCollectionEditor.cs
- HashAlgorithm.cs
- DataControlLinkButton.cs
- StyleXamlTreeBuilder.cs
- ScalarConstant.cs
- ServiceManager.cs
- SnapshotChangeTrackingStrategy.cs
- EncoderBestFitFallback.cs
- FileSystemInfo.cs
- _FtpControlStream.cs
- FormViewUpdatedEventArgs.cs
- Point3DConverter.cs
- UpdatePanel.cs
- TextTreeInsertUndoUnit.cs
- OdbcConnectionHandle.cs
- DataGridPagerStyle.cs
- _AcceptOverlappedAsyncResult.cs
- AddInServer.cs
- CultureInfo.cs
- ListItemDetailViewAttribute.cs
- ProfilePropertyMetadata.cs
- ReliableOutputSessionChannel.cs
- PropertyValueUIItem.cs
- LinkButton.cs
- DefaultHttpHandler.cs
- HtmlInputPassword.cs
- NotFiniteNumberException.cs
- XmlRawWriter.cs
- UserPersonalizationStateInfo.cs
- InvalidComObjectException.cs
- ExpressionBindingCollection.cs
- AdornedElementPlaceholder.cs
- ValueQuery.cs
- X509Utils.cs
- userdatakeys.cs
- RegionData.cs
- ExpressionDumper.cs
- ErrorWebPart.cs
- FormViewInsertedEventArgs.cs
- IDispatchConstantAttribute.cs
- ElapsedEventArgs.cs
- Pair.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- StaticExtensionConverter.cs
- OdbcTransaction.cs
- HtmlFormWrapper.cs
- PrimarySelectionGlyph.cs
- WebConfigurationHost.cs
- Expression.cs
- NetworkInterface.cs
- Reference.cs
- SignatureTargetIdManager.cs
- SafeCryptoHandles.cs
- IList.cs
- KeyPullup.cs
- DataStorage.cs
- CornerRadiusConverter.cs
- WebPartDisplayModeCollection.cs
- ExecutionContext.cs
- Filter.cs
- XmlSchemaAnnotation.cs
- ListViewAutomationPeer.cs
- SqlNotificationRequest.cs
- XmlSchemaCollection.cs
- ZipIOLocalFileHeader.cs
- Transform3DGroup.cs
- PropertyEmitter.cs
- FrameworkElementFactoryMarkupObject.cs
- TraceHandler.cs
- ListItemParagraph.cs
- Parallel.cs
- MetadataPropertyvalue.cs
- xsdvalidator.cs
- TableCellCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlDataSource.cs
- NetTcpSection.cs
- LambdaCompiler.Expressions.cs
- ImageCodecInfoPrivate.cs