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
- CollectionContainer.cs
- ProxyWebPartManager.cs
- RtfNavigator.cs
- Context.cs
- AccessText.cs
- ComplexTypeEmitter.cs
- OpenFileDialog.cs
- ViewLoader.cs
- Int32RectValueSerializer.cs
- SamlSerializer.cs
- EventToken.cs
- ConnectionProviderAttribute.cs
- WindowsStartMenu.cs
- ServerProtocol.cs
- CodeNamespaceCollection.cs
- MarkupCompiler.cs
- SqlRemoveConstantOrderBy.cs
- activationcontext.cs
- VirtualizingStackPanel.cs
- DispatcherSynchronizationContext.cs
- ExtensionWindow.cs
- HttpDebugHandler.cs
- WebPartDisplayModeCollection.cs
- BaseWebProxyFinder.cs
- RootBuilder.cs
- UriPrefixTable.cs
- PieceNameHelper.cs
- CqlQuery.cs
- Evaluator.cs
- UriSchemeKeyedCollection.cs
- TypedElement.cs
- TextTreePropertyUndoUnit.cs
- PackageRelationship.cs
- Code.cs
- Int64.cs
- CommandID.cs
- CfgParser.cs
- TextElement.cs
- PropertyValueUIItem.cs
- SqlHelper.cs
- RadialGradientBrush.cs
- WebPartDisplayModeCollection.cs
- ScriptControlManager.cs
- UpDownEvent.cs
- DBProviderConfigurationHandler.cs
- MappingItemCollection.cs
- ClientSettingsSection.cs
- WindowsSolidBrush.cs
- TemplateControlParser.cs
- XmlSchemaDocumentation.cs
- ContentFileHelper.cs
- ClientConfigurationSystem.cs
- SessionEndingEventArgs.cs
- HtmlInputText.cs
- AutomationElement.cs
- HttpRuntimeSection.cs
- TdsRecordBufferSetter.cs
- MessageSecurityTokenVersion.cs
- AlgoModule.cs
- MeasureData.cs
- DataSourceControlBuilder.cs
- ResourceContainer.cs
- Win32PrintDialog.cs
- PropertyNames.cs
- GridViewRow.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ColumnMapVisitor.cs
- ConfigurationConverterBase.cs
- Size3DValueSerializer.cs
- ButtonStandardAdapter.cs
- SqlUserDefinedAggregateAttribute.cs
- StylusDevice.cs
- _IPv6Address.cs
- Sequence.cs
- PassportAuthentication.cs
- XamlPathDataSerializer.cs
- DataGridCellInfo.cs
- Rotation3DAnimation.cs
- PeerTransportCredentialType.cs
- UTF32Encoding.cs
- MailSettingsSection.cs
- NavigationHelper.cs
- RegexNode.cs
- ContextStack.cs
- Sentence.cs
- Wildcard.cs
- ListItemCollection.cs
- ClockController.cs
- InfoCardHelper.cs
- Stroke2.cs
- MatrixTransform3D.cs
- Bits.cs
- XPathEmptyIterator.cs
- M3DUtil.cs
- SqlServices.cs
- TextElementEditingBehaviorAttribute.cs
- Geometry.cs
- ForeignKeyConstraint.cs
- AmbiguousMatchException.cs
- MatrixValueSerializer.cs