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
- ResXFileRef.cs
- SystemException.cs
- Rotation3DAnimationBase.cs
- HandledMouseEvent.cs
- LogEntryUtils.cs
- EntitySqlQueryCacheKey.cs
- InitializingNewItemEventArgs.cs
- ButtonFieldBase.cs
- PartialList.cs
- RTLAwareMessageBox.cs
- Help.cs
- IndexedSelectQueryOperator.cs
- PageParserFilter.cs
- MenuItemAutomationPeer.cs
- ComponentResourceKeyConverter.cs
- _ContextAwareResult.cs
- DataObjectAttribute.cs
- ActivationServices.cs
- DataGridViewRowsRemovedEventArgs.cs
- LexicalChunk.cs
- AudioFileOut.cs
- CodeComment.cs
- CharacterBufferReference.cs
- AddInServer.cs
- ClientOptions.cs
- TemplateColumn.cs
- ToolboxItemSnapLineBehavior.cs
- PropertyPathConverter.cs
- InstanceCreationEditor.cs
- WebEvents.cs
- ParserStack.cs
- RawStylusInputCustomData.cs
- AmbientEnvironment.cs
- SerializationStore.cs
- TextSpan.cs
- GlyphInfoList.cs
- ListView.cs
- Validator.cs
- WebSysDescriptionAttribute.cs
- Type.cs
- UrlMappingsSection.cs
- RegexTree.cs
- GridViewSelectEventArgs.cs
- TemplateLookupAction.cs
- KeysConverter.cs
- RegexBoyerMoore.cs
- UserControlAutomationPeer.cs
- XmlEntityReference.cs
- WebHostScriptMappingsInstallComponent.cs
- ProfilePropertyNameValidator.cs
- _LoggingObject.cs
- PositiveTimeSpanValidator.cs
- IBuiltInEvidence.cs
- ConfigDefinitionUpdates.cs
- WebCategoryAttribute.cs
- PackageProperties.cs
- DBSqlParserColumnCollection.cs
- TypeSource.cs
- EntitySetBase.cs
- DesignerAttributeInfo.cs
- DbCommandTree.cs
- ResolvedKeyFrameEntry.cs
- SchemaNamespaceManager.cs
- HtmlTextArea.cs
- RankException.cs
- BufferedWebEventProvider.cs
- SynchronizedReadOnlyCollection.cs
- DataTemplateSelector.cs
- CommonGetThemePartSize.cs
- ReceiveActivityDesigner.cs
- PageAsyncTaskManager.cs
- ApplyImportsAction.cs
- EncodingDataItem.cs
- ThicknessAnimationBase.cs
- RepeaterItem.cs
- ServiceContractViewControl.cs
- HttpCacheVary.cs
- SafeCryptHandles.cs
- InputLanguageProfileNotifySink.cs
- DataObjectEventArgs.cs
- MethodCallExpression.cs
- Operator.cs
- UidManager.cs
- PositiveTimeSpanValidatorAttribute.cs
- EntityException.cs
- HandlerBase.cs
- LookupNode.cs
- Timeline.cs
- SelectionProcessor.cs
- GlyphElement.cs
- MetadataPropertyCollection.cs
- PartialTrustVisibleAssembly.cs
- PolyBezierSegmentFigureLogic.cs
- SelectionUIHandler.cs
- securitymgrsite.cs
- MailDefinition.cs
- ModifierKeysValueSerializer.cs
- CompilerHelpers.cs
- FontStyleConverter.cs
- OleDbRowUpdatingEvent.cs