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
- StatusBarPanel.cs
- CompressedStack.cs
- DefaultEventAttribute.cs
- WebPartConnectionsCancelVerb.cs
- RenderContext.cs
- MetadataPropertyAttribute.cs
- TrackingProfile.cs
- List.cs
- CompoundFileStreamReference.cs
- CultureMapper.cs
- OutputCacheProviderCollection.cs
- DataComponentGenerator.cs
- GridViewCommandEventArgs.cs
- NetworkInformationPermission.cs
- SkipQueryOptionExpression.cs
- InstanceKeyCompleteException.cs
- SQLChars.cs
- ChtmlPhoneCallAdapter.cs
- SeekStoryboard.cs
- XmlUtf8RawTextWriter.cs
- SafeHandles.cs
- SQLBytesStorage.cs
- SecurityKeyIdentifierClause.cs
- EmptyReadOnlyDictionaryInternal.cs
- AccessDataSource.cs
- ConfigXmlSignificantWhitespace.cs
- Collection.cs
- Task.cs
- MDIWindowDialog.cs
- DragStartedEventArgs.cs
- SoapServerProtocol.cs
- Expressions.cs
- MasterPageBuildProvider.cs
- HttpClientCertificate.cs
- DurableOperationContext.cs
- SharedStatics.cs
- MimeAnyImporter.cs
- ConnectionPointCookie.cs
- DocumentReference.cs
- GatewayDefinition.cs
- DataGridCellClipboardEventArgs.cs
- sqlstateclientmanager.cs
- HeaderedItemsControl.cs
- IRCollection.cs
- OrderedDictionaryStateHelper.cs
- ConfigurationSettings.cs
- FormViewCommandEventArgs.cs
- WindowsNonControl.cs
- GridProviderWrapper.cs
- InvalidCommandTreeException.cs
- WmlPageAdapter.cs
- PropertyConverter.cs
- SqlClientPermission.cs
- RecordsAffectedEventArgs.cs
- TypeLoadException.cs
- XmlObjectSerializer.cs
- SerializationAttributes.cs
- TextRunCacheImp.cs
- FileAccessException.cs
- BasePattern.cs
- CodeSnippetExpression.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SharedDp.cs
- columnmapkeybuilder.cs
- AnimationClock.cs
- SecurityTokenResolver.cs
- MDIWindowDialog.cs
- SettingsBase.cs
- ProxyElement.cs
- ModelPropertyImpl.cs
- TagMapInfo.cs
- DbMetaDataFactory.cs
- MetadataArtifactLoaderFile.cs
- TemplatePropertyEntry.cs
- VisualStyleElement.cs
- SdlChannelSink.cs
- EventPropertyMap.cs
- HMACSHA256.cs
- Console.cs
- CryptoStream.cs
- MethodInfo.cs
- Int32CollectionValueSerializer.cs
- AutoResetEvent.cs
- Volatile.cs
- StylusEventArgs.cs
- AlignmentYValidation.cs
- DataPagerFieldItem.cs
- GetPageNumberCompletedEventArgs.cs
- PersonalizableTypeEntry.cs
- WorkItem.cs
- ReachFixedPageSerializerAsync.cs
- EventDescriptorCollection.cs
- BitmapVisualManager.cs
- precedingquery.cs
- VersionUtil.cs
- ClipboardProcessor.cs
- DriveInfo.cs
- DataSourceProvider.cs
- SqlConnectionString.cs
- SQLBytes.cs