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
- MatrixConverter.cs
- SupportingTokenChannel.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TdsParserStaticMethods.cs
- WebColorConverter.cs
- MouseEvent.cs
- DataGridHeaderBorder.cs
- SspiWrapper.cs
- AdvancedBindingEditor.cs
- TreeBuilderBamlTranslator.cs
- TextStore.cs
- HostDesigntimeLicenseContext.cs
- DrawingImage.cs
- TimeStampChecker.cs
- ProcessModule.cs
- BrushValueSerializer.cs
- DoubleLinkListEnumerator.cs
- EntityRecordInfo.cs
- DataControlReferenceCollection.cs
- DataSourceXmlElementAttribute.cs
- DynamicQueryableWrapper.cs
- Exception.cs
- RestHandler.cs
- ReadContentAsBinaryHelper.cs
- MgmtConfigurationRecord.cs
- QueryOpeningEnumerator.cs
- UiaCoreProviderApi.cs
- DBConnection.cs
- Geometry3D.cs
- PropertyKey.cs
- HScrollProperties.cs
- DbReferenceCollection.cs
- OutOfMemoryException.cs
- dbenumerator.cs
- ExpressionBinding.cs
- HtmlTextArea.cs
- XmlArrayAttribute.cs
- SpoolingTaskBase.cs
- AppDomainFactory.cs
- Freezable.cs
- KeyNotFoundException.cs
- SetStoryboardSpeedRatio.cs
- PerfCounterSection.cs
- XmlTextWriter.cs
- ToolboxItemCollection.cs
- AppliesToBehaviorDecisionTable.cs
- HostProtectionPermission.cs
- HttpClientProtocol.cs
- ClassDataContract.cs
- XmlChildNodes.cs
- ContainerVisual.cs
- HashSet.cs
- SharedPersonalizationStateInfo.cs
- WsdlBuildProvider.cs
- AddInAdapter.cs
- Win32MouseDevice.cs
- GenericsInstances.cs
- ListBox.cs
- ModuleBuilder.cs
- OutputScopeManager.cs
- UIPermission.cs
- MonitoringDescriptionAttribute.cs
- PassportAuthenticationEventArgs.cs
- DATA_BLOB.cs
- WindowsToolbarItemAsMenuItem.cs
- GetWinFXPath.cs
- DocumentViewerConstants.cs
- SearchExpression.cs
- BidPrivateBase.cs
- ResourceAttributes.cs
- ThicknessAnimation.cs
- OutKeywords.cs
- ConvertEvent.cs
- SiteMapHierarchicalDataSourceView.cs
- RectAnimationUsingKeyFrames.cs
- ListDictionary.cs
- TextCompositionEventArgs.cs
- HtmlCalendarAdapter.cs
- HMAC.cs
- Queue.cs
- UserValidatedEventArgs.cs
- SectionUpdates.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- WebPartUserCapability.cs
- ProfilePropertySettingsCollection.cs
- DependentList.cs
- ResolveDuplexCD1AsyncResult.cs
- SSmlParser.cs
- RequestQueryProcessor.cs
- ScopeCollection.cs
- XMLSyntaxException.cs
- ComEventsInfo.cs
- ConversionContext.cs
- ModelVisual3D.cs
- GroupItem.cs
- HwndProxyElementProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- RuleSettings.cs
- IndicShape.cs
- XmlSchemaSet.cs