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
- SqlConnectionPoolGroupProviderInfo.cs
- BroadcastEventHelper.cs
- ResourceExpressionBuilder.cs
- TextRenderer.cs
- Transform3D.cs
- CodeNamespaceImport.cs
- SelectionProviderWrapper.cs
- TextElementEnumerator.cs
- UIElementParagraph.cs
- ImageAnimator.cs
- DataGridTable.cs
- ProviderConnectionPoint.cs
- Int32EqualityComparer.cs
- ApplyHostConfigurationBehavior.cs
- GroupItem.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- BigInt.cs
- EmptyElement.cs
- HTTPRemotingHandler.cs
- GlobalEventManager.cs
- Queue.cs
- NativeMethods.cs
- UIElementIsland.cs
- TextEvent.cs
- CorrelationScope.cs
- DbProviderManifest.cs
- DocumentReference.cs
- Int32Storage.cs
- XmlWriterSettings.cs
- NativeRecognizer.cs
- RoutedEventConverter.cs
- SQLMoneyStorage.cs
- AnnotationComponentManager.cs
- InternalConfigSettingsFactory.cs
- Roles.cs
- KerberosReceiverSecurityToken.cs
- RijndaelCryptoServiceProvider.cs
- ByteStack.cs
- TextBoxRenderer.cs
- StringCollectionMarkupSerializer.cs
- FormViewDeletedEventArgs.cs
- GridViewAutomationPeer.cs
- OracleTransaction.cs
- MultiTrigger.cs
- EntityRecordInfo.cs
- XmlDocumentFieldSchema.cs
- FileDialog.cs
- safex509handles.cs
- DbInsertCommandTree.cs
- Attributes.cs
- ArrayTypeMismatchException.cs
- DispatchWrapper.cs
- LabelLiteral.cs
- ValidatorCompatibilityHelper.cs
- CodePrimitiveExpression.cs
- DocumentXmlWriter.cs
- KeysConverter.cs
- Tag.cs
- MaterializeFromAtom.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MarshalByValueComponent.cs
- Inline.cs
- TableItemStyle.cs
- PathFigureCollection.cs
- DateTimeFormat.cs
- QueryIntervalOp.cs
- QueryExpression.cs
- AssertSection.cs
- ConsoleKeyInfo.cs
- HttpModuleCollection.cs
- DTCTransactionManager.cs
- DbParameterHelper.cs
- ClockGroup.cs
- HTMLTextWriter.cs
- Exceptions.cs
- ExtensionFile.cs
- PermissionAttributes.cs
- WinEventTracker.cs
- DeferredReference.cs
- _TransmitFileOverlappedAsyncResult.cs
- XmlSerializerSection.cs
- ProxyWebPartManager.cs
- SingleAnimationBase.cs
- TextElementAutomationPeer.cs
- X509Certificate2.cs
- ZipIOBlockManager.cs
- SqlUserDefinedTypeAttribute.cs
- NumberAction.cs
- MediaElementAutomationPeer.cs
- KnownTypesHelper.cs
- Query.cs
- ColorBlend.cs
- LiteralControl.cs
- WrappedIUnknown.cs
- StylusPointCollection.cs
- HttpFileCollection.cs
- StateInitializationDesigner.cs
- ellipse.cs
- nulltextnavigator.cs
- Version.cs