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
- AnnotationAuthorChangedEventArgs.cs
- ProcessRequestAsyncResult.cs
- WebPartDisplayModeCancelEventArgs.cs
- StaticFileHandler.cs
- WebBrowserUriTypeConverter.cs
- CopyAttributesAction.cs
- TextModifier.cs
- SamlAttribute.cs
- KeysConverter.cs
- FacetChecker.cs
- SchemaImporterExtensionElementCollection.cs
- QilIterator.cs
- WindowsListViewItem.cs
- ImplicitInputBrush.cs
- StrongNameMembershipCondition.cs
- SqlCacheDependencyDatabase.cs
- UdpReplyToBehavior.cs
- WinHttpWebProxyFinder.cs
- PixelShader.cs
- NewExpression.cs
- TextLineResult.cs
- RawStylusSystemGestureInputReport.cs
- EventLogTraceListener.cs
- coordinator.cs
- WindowsTreeView.cs
- CodeValidator.cs
- StreamReader.cs
- ContextMenuStrip.cs
- TrackPoint.cs
- VirtualPathData.cs
- AmbientValueAttribute.cs
- FlowNode.cs
- RadioButtonStandardAdapter.cs
- ObjectItemCollection.cs
- ScrollEvent.cs
- Rfc4050KeyFormatter.cs
- TextPenaltyModule.cs
- ManagementException.cs
- CodeDOMUtility.cs
- Tuple.cs
- Calendar.cs
- OrderedDictionaryStateHelper.cs
- CultureMapper.cs
- URIFormatException.cs
- CodeTypeDeclaration.cs
- CompilerInfo.cs
- Types.cs
- DataGridViewRowsAddedEventArgs.cs
- ThicknessKeyFrameCollection.cs
- GridViewUpdatedEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- SharedPerformanceCounter.cs
- ChtmlTextWriter.cs
- FormatException.cs
- SoapServerMethod.cs
- Soap.cs
- AddInAttribute.cs
- ImagingCache.cs
- SafeThemeHandle.cs
- PrimitiveSchema.cs
- SelectedCellsCollection.cs
- ObfuscateAssemblyAttribute.cs
- CodeTypeReferenceCollection.cs
- OdbcConnectionHandle.cs
- SmiContext.cs
- DataServiceException.cs
- PeerUnsafeNativeCryptMethods.cs
- EditingMode.cs
- ApplicationInterop.cs
- XmlPreloadedResolver.cs
- COM2ExtendedTypeConverter.cs
- LocalizabilityAttribute.cs
- contentDescriptor.cs
- WebPartEditorOkVerb.cs
- AutomationProperty.cs
- DictionaryItemsCollection.cs
- TriState.cs
- WebFaultClientMessageInspector.cs
- Assembly.cs
- DecimalKeyFrameCollection.cs
- HttpCapabilitiesSectionHandler.cs
- SqlLiftIndependentRowExpressions.cs
- PropertyChangingEventArgs.cs
- DesignDataSource.cs
- DbConnectionInternal.cs
- DbConvert.cs
- ComEventsHelper.cs
- CachedRequestParams.cs
- Attributes.cs
- OdbcReferenceCollection.cs
- StreamSecurityUpgradeInitiatorBase.cs
- ConstructorNeedsTagAttribute.cs
- StringBlob.cs
- SymLanguageVendor.cs
- keycontainerpermission.cs
- CorrelationService.cs
- SystemResourceKey.cs
- ScriptReferenceEventArgs.cs
- Boolean.cs
- ObjectSecurity.cs