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
- SQLInt16.cs
- DesignSurface.cs
- EdmSchemaError.cs
- SplineKeyFrames.cs
- DataList.cs
- ImageDrawing.cs
- FrameworkElementFactoryMarkupObject.cs
- GridViewRowPresenter.cs
- SqlBulkCopy.cs
- SafePointer.cs
- ContractDescription.cs
- DiscreteKeyFrames.cs
- SafeRightsManagementPubHandle.cs
- MultiPageTextView.cs
- MinMaxParagraphWidth.cs
- DocumentPropertiesDialog.cs
- DbUpdateCommandTree.cs
- StateDesigner.Layouts.cs
- BinaryFormatterWriter.cs
- SmtpNtlmAuthenticationModule.cs
- MapPathBasedVirtualPathProvider.cs
- XmlSchemaFacet.cs
- DateTimeStorage.cs
- ButtonChrome.cs
- HwndTarget.cs
- DataBoundLiteralControl.cs
- XmlTextEncoder.cs
- MouseButton.cs
- DataGridViewSortCompareEventArgs.cs
- OutputCacheSettings.cs
- TriState.cs
- DataGridViewCellFormattingEventArgs.cs
- WinInetCache.cs
- OutputCacheModule.cs
- DictionaryKeyPropertyAttribute.cs
- SafeCertificateContext.cs
- ControlPaint.cs
- Range.cs
- FillBehavior.cs
- TextTreeTextElementNode.cs
- ScrollableControl.cs
- DefaultAssemblyResolver.cs
- FormsAuthenticationCredentials.cs
- KnownColorTable.cs
- ReferenceConverter.cs
- PrivacyNoticeElement.cs
- PrivacyNoticeElement.cs
- LogSwitch.cs
- IncrementalCompileAnalyzer.cs
- ListItemParagraph.cs
- TemplatedMailWebEventProvider.cs
- DataGridViewCellPaintingEventArgs.cs
- RegisterResponseInfo.cs
- ManagedIStream.cs
- DelegateArgumentReference.cs
- FrameDimension.cs
- SimpleRecyclingCache.cs
- Lasso.cs
- Model3D.cs
- ObjectDataSourceEventArgs.cs
- AppDomainManager.cs
- WinHttpWebProxyFinder.cs
- AuthenticationServiceManager.cs
- WebPartDisplayModeEventArgs.cs
- WebPartDisplayModeCollection.cs
- ExtendedPropertyCollection.cs
- ModelVisual3D.cs
- SchemaManager.cs
- ipaddressinformationcollection.cs
- HttpModuleAction.cs
- ThicknessConverter.cs
- AttributeUsageAttribute.cs
- CultureTableRecord.cs
- ClientViaElement.cs
- DES.cs
- HwndAppCommandInputProvider.cs
- NamespaceInfo.cs
- WindowInteractionStateTracker.cs
- TemplatedWizardStep.cs
- HtmlButton.cs
- DtdParser.cs
- ManagedFilter.cs
- PenLineJoinValidation.cs
- SafeFindHandle.cs
- EntityProviderServices.cs
- PointValueSerializer.cs
- ColumnMapVisitor.cs
- XmlSchemaIdentityConstraint.cs
- WebPartPersonalization.cs
- MarginsConverter.cs
- codemethodreferenceexpression.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataPointer.cs
- Dispatcher.cs
- IgnoreFileBuildProvider.cs
- WinFormsComponentEditor.cs
- LocationSectionRecord.cs
- ProcessHostMapPath.cs
- Stack.cs
- ExpressionBindings.cs