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
- MasterPageBuildProvider.cs
- FlowDocumentReaderAutomationPeer.cs
- CalendarSelectionChangedEventArgs.cs
- ImmutablePropertyDescriptorGridEntry.cs
- IDictionary.cs
- TextFormatterHost.cs
- CapiNative.cs
- BuildManagerHost.cs
- NameValuePair.cs
- HttpPostedFile.cs
- OdbcUtils.cs
- SelectedPathEditor.cs
- Operator.cs
- GeneralTransformGroup.cs
- AccessDataSourceView.cs
- ImageInfo.cs
- ClientViaElement.cs
- ReferenceAssemblyAttribute.cs
- MenuItem.cs
- XmlSchemaSimpleContentRestriction.cs
- ServiceMoniker.cs
- XNodeValidator.cs
- BamlBinaryReader.cs
- _ListenerAsyncResult.cs
- SQLInt16Storage.cs
- SQLGuid.cs
- WebPartConnectionsDisconnectVerb.cs
- Atom10FormatterFactory.cs
- DependencyPropertyDescriptor.cs
- NativeWindow.cs
- GridItem.cs
- XmlnsCache.cs
- ToolboxItem.cs
- TripleDESCryptoServiceProvider.cs
- SoapFormatter.cs
- DoubleConverter.cs
- PropertyBuilder.cs
- WCFServiceClientProxyGenerator.cs
- DataGrid.cs
- XmlnsCache.cs
- EnumMemberAttribute.cs
- MemoryFailPoint.cs
- ConfigurationValues.cs
- COMException.cs
- ContextDataSourceContextData.cs
- TextFragmentEngine.cs
- XamlTypeMapperSchemaContext.cs
- LicFileLicenseProvider.cs
- WindowsStatic.cs
- SmtpFailedRecipientsException.cs
- SchemaSetCompiler.cs
- EdmRelationshipRoleAttribute.cs
- RootCodeDomSerializer.cs
- RoleManagerSection.cs
- FormViewInsertedEventArgs.cs
- TransactionalPackage.cs
- PointAnimationUsingKeyFrames.cs
- DSASignatureDeformatter.cs
- EnumDataContract.cs
- WebResourceAttribute.cs
- MissingFieldException.cs
- UIPermission.cs
- Convert.cs
- DbConnectionClosed.cs
- RestHandlerFactory.cs
- altserialization.cs
- Identity.cs
- TextSelectionProcessor.cs
- DecimalKeyFrameCollection.cs
- CompilationSection.cs
- EntityDataSourceMemberPath.cs
- SecurityRuntime.cs
- ParserOptions.cs
- TextBreakpoint.cs
- CompilationRelaxations.cs
- HoistedLocals.cs
- AccessedThroughPropertyAttribute.cs
- QilLoop.cs
- ErrorHandler.cs
- EnumerableRowCollectionExtensions.cs
- DiscoveryInnerClientAdhoc11.cs
- HttpStreams.cs
- CompatibleComparer.cs
- StylusLogic.cs
- DiagnosticsConfiguration.cs
- shaper.cs
- IgnoreDeviceFilterElementCollection.cs
- PermissionSet.cs
- UserPreferenceChangingEventArgs.cs
- ImageAnimator.cs
- ECDsaCng.cs
- Substitution.cs
- SqlProviderServices.cs
- HttpStaticObjectsCollectionBase.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlEncoding.cs
- EdmItemCollection.OcAssemblyCache.cs
- HotSpotCollection.cs
- DataGridAutoFormat.cs
- XmlIlGenerator.cs