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
- HttpException.cs
- WebConfigurationManager.cs
- ConfigurationManagerInternalFactory.cs
- TagNameToTypeMapper.cs
- SqlFunctionAttribute.cs
- AppSettingsExpressionBuilder.cs
- ScrollBarRenderer.cs
- BuiltInPermissionSets.cs
- webbrowsersite.cs
- WebPartConnectionCollection.cs
- HttpListenerElement.cs
- StrongNameKeyPair.cs
- TemplateBindingExpression.cs
- WhitespaceReader.cs
- ListItemConverter.cs
- MediaElement.cs
- RestClientProxyHandler.cs
- SqlNotificationRequest.cs
- ConsoleCancelEventArgs.cs
- Paragraph.cs
- XPathException.cs
- MultilineStringEditor.cs
- Region.cs
- ColorIndependentAnimationStorage.cs
- parserscommon.cs
- LineBreak.cs
- ClickablePoint.cs
- OutputCacheSettings.cs
- NameValueFileSectionHandler.cs
- WsatConfiguration.cs
- SByteStorage.cs
- ImpersonationOption.cs
- LinkUtilities.cs
- XmlTextEncoder.cs
- SelfIssuedSamlTokenFactory.cs
- SqlMethodTransformer.cs
- CodeTypeReferenceExpression.cs
- SqlServer2KCompatibilityAnnotation.cs
- XmlLangPropertyAttribute.cs
- TemplateControl.cs
- EdmSchemaAttribute.cs
- DbProviderFactoriesConfigurationHandler.cs
- TimersDescriptionAttribute.cs
- StreamAsIStream.cs
- GCHandleCookieTable.cs
- DesignerOptions.cs
- iisPickupDirectory.cs
- ObjectDataSource.cs
- FreezableDefaultValueFactory.cs
- messageonlyhwndwrapper.cs
- SqlClientWrapperSmiStreamChars.cs
- CategoryNameCollection.cs
- UIElementAutomationPeer.cs
- XmlText.cs
- GiveFeedbackEventArgs.cs
- PropertyDescriptorCollection.cs
- SelectorItemAutomationPeer.cs
- ZipPackagePart.cs
- DbDataRecord.cs
- ConfigurationSection.cs
- cache.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HttpCacheVaryByContentEncodings.cs
- DecimalFormatter.cs
- DefaultHttpHandler.cs
- Merger.cs
- ConfigXmlAttribute.cs
- smtppermission.cs
- SqlExpander.cs
- ProfileSettings.cs
- ChangeToolStripParentVerb.cs
- StronglyTypedResourceBuilder.cs
- BorderGapMaskConverter.cs
- HierarchicalDataSourceControl.cs
- UdpDiscoveryEndpointProvider.cs
- ManagedFilter.cs
- RequestTimeoutManager.cs
- ResourcePool.cs
- PixelShader.cs
- CodeAccessSecurityEngine.cs
- FreezableCollection.cs
- PolicyChain.cs
- TableProviderWrapper.cs
- DataGridViewSelectedCellCollection.cs
- PlanCompilerUtil.cs
- FusionWrap.cs
- Misc.cs
- SerialPort.cs
- TableAdapterManagerHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- GroupItemAutomationPeer.cs
- SafeFindHandle.cs
- ADConnectionHelper.cs
- FormsAuthenticationTicket.cs
- SimpleType.cs
- WebControlAdapter.cs
- HttpConfigurationSystem.cs
- CultureSpecificCharacterBufferRange.cs
- InputScopeConverter.cs
- StatusBarAutomationPeer.cs