Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SubclassTypeValidator.cs
- QueryStringParameter.cs
- CaseInsensitiveHashCodeProvider.cs
- TypeInfo.cs
- TextServicesDisplayAttributePropertyRanges.cs
- TreeIterators.cs
- CounterCreationDataCollection.cs
- httpserverutility.cs
- DataSourceExpressionCollection.cs
- Ops.cs
- HotSpot.cs
- LinearKeyFrames.cs
- XmlChildEnumerator.cs
- DrawTreeNodeEventArgs.cs
- StorageInfo.cs
- Int16AnimationBase.cs
- GetWinFXPath.cs
- Listbox.cs
- CharEntityEncoderFallback.cs
- MetadataFile.cs
- UnknownBitmapDecoder.cs
- CultureTableRecord.cs
- EngineSiteSapi.cs
- GPPOINTF.cs
- ContentPresenter.cs
- CodeAttributeDeclaration.cs
- DataGridCommandEventArgs.cs
- HeaderCollection.cs
- ExpressionsCollectionConverter.cs
- _FixedSizeReader.cs
- RegisteredArrayDeclaration.cs
- OdbcConnectionPoolProviderInfo.cs
- PeerCustomResolverBindingElement.cs
- COM2PropertyDescriptor.cs
- DbProviderServices.cs
- UndirectedGraph.cs
- InternalCache.cs
- BrowserDefinitionCollection.cs
- RequestUriProcessor.cs
- CompiledQuery.cs
- OdbcPermission.cs
- Metafile.cs
- MutexSecurity.cs
- PrintPreviewDialog.cs
- XamlTypeMapper.cs
- followingsibling.cs
- Frame.cs
- ModuleElement.cs
- ContextMenuAutomationPeer.cs
- DefaultBindingPropertyAttribute.cs
- DataSourceExpression.cs
- InternalPermissions.cs
- VectorCollection.cs
- RequestTimeoutManager.cs
- TemplatePagerField.cs
- TextEvent.cs
- DataGrid.cs
- GlyphRun.cs
- ControlBuilderAttribute.cs
- _LocalDataStoreMgr.cs
- CultureMapper.cs
- EntityCommandDefinition.cs
- FloatSumAggregationOperator.cs
- RegexGroupCollection.cs
- PrinterSettings.cs
- State.cs
- CollectionViewGroupRoot.cs
- KeyInstance.cs
- StorageMappingItemCollection.cs
- GridViewRowPresenter.cs
- AxisAngleRotation3D.cs
- PolicyImporterElement.cs
- GraphicsContext.cs
- XPathDocumentIterator.cs
- PagedControl.cs
- _BaseOverlappedAsyncResult.cs
- TreeViewImageIndexConverter.cs
- Item.cs
- DataReceivedEventArgs.cs
- DbDataAdapter.cs
- SecuritySessionFilter.cs
- TypedDatasetGenerator.cs
- WebRequestModulesSection.cs
- InternalPermissions.cs
- EnterpriseServicesHelper.cs
- SettingsBindableAttribute.cs
- Inline.cs
- RoleManagerModule.cs
- DesignTimeParseData.cs
- DoubleAnimationUsingKeyFrames.cs
- TraceUtility.cs
- InProcStateClientManager.cs
- Version.cs
- XmlSchemaAttributeGroup.cs
- RequestNavigateEventArgs.cs
- SqlClientFactory.cs
- HierarchicalDataSourceControl.cs
- UrlAuthorizationModule.cs
- CdpEqualityComparer.cs
- XamlDesignerSerializationManager.cs