Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ProjectedWrapper.cs
- BamlBinaryReader.cs
- DataSetUtil.cs
- MemberRelationshipService.cs
- RightsManagementEncryptedStream.cs
- Deflater.cs
- BaseParagraph.cs
- ListenerElementsCollection.cs
- Size.cs
- AppSettingsExpressionBuilder.cs
- GradientSpreadMethodValidation.cs
- PermissionSet.cs
- PersonalizablePropertyEntry.cs
- TransformerInfoCollection.cs
- SubtreeProcessor.cs
- WorkflowInvoker.cs
- GlyphInfoList.cs
- LinearGradientBrush.cs
- AnimatedTypeHelpers.cs
- OdbcDataReader.cs
- MarkupCompilePass2.cs
- FlowLayout.cs
- TypeConverter.cs
- ClipboardData.cs
- SQLSingleStorage.cs
- ConnectionStringsExpressionBuilder.cs
- control.ime.cs
- MbpInfo.cs
- Tracer.cs
- CachingHintValidation.cs
- JsonWriterDelegator.cs
- RowUpdatedEventArgs.cs
- IODescriptionAttribute.cs
- ZipIOLocalFileBlock.cs
- DataServiceOperationContext.cs
- DataGridToolTip.cs
- ClockController.cs
- TransactionContext.cs
- WmlListAdapter.cs
- UnauthorizedWebPart.cs
- HitTestFilterBehavior.cs
- WebPartTracker.cs
- WebZone.cs
- TypedReference.cs
- SystemIPGlobalProperties.cs
- Type.cs
- PostBackTrigger.cs
- InheritedPropertyChangedEventArgs.cs
- ProviderException.cs
- ADMembershipUser.cs
- ImageFormat.cs
- WebConfigurationHostFileChange.cs
- SmtpClient.cs
- SqlCaseSimplifier.cs
- IListConverters.cs
- XmlDataSourceNodeDescriptor.cs
- SecurityDescriptor.cs
- ProtocolsConfigurationHandler.cs
- SqlDataSourceCommandEventArgs.cs
- WinFormsUtils.cs
- UnsettableComboBox.cs
- SHA1Managed.cs
- Geometry.cs
- X509Utils.cs
- SendingRequestEventArgs.cs
- webclient.cs
- VisualStyleElement.cs
- RawAppCommandInputReport.cs
- CompilerHelpers.cs
- BufferedGraphicsManager.cs
- SetStoryboardSpeedRatio.cs
- XdrBuilder.cs
- Paragraph.cs
- BooleanFacetDescriptionElement.cs
- RenderContext.cs
- RowToFieldTransformer.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ApplicationInterop.cs
- ToolboxItem.cs
- PersistenceProvider.cs
- ArglessEventHandlerProxy.cs
- KoreanCalendar.cs
- BrushValueSerializer.cs
- TextClipboardData.cs
- ManagementObjectCollection.cs
- ChineseLunisolarCalendar.cs
- PostBackOptions.cs
- DynamicExpression.cs
- RegularExpressionValidator.cs
- PkcsUtils.cs
- AncestorChangedEventArgs.cs
- WindowsTreeView.cs
- AssertHelper.cs
- BadImageFormatException.cs
- StringPropertyBuilder.cs
- WebPartConnectionsCloseVerb.cs
- RoutedEventHandlerInfo.cs
- TextPointer.cs
- DataGridTextBox.cs
- DocumentPageViewAutomationPeer.cs