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
- InstanceDataCollection.cs
- errorpatternmatcher.cs
- TypeUnloadedException.cs
- CatalogPartChrome.cs
- RolePrincipal.cs
- PixelFormats.cs
- DataGridViewRowCancelEventArgs.cs
- SqlXmlStorage.cs
- Pts.cs
- ping.cs
- TdsEnums.cs
- DataObjectAttribute.cs
- DrawingContextDrawingContextWalker.cs
- ObjectItemCollection.cs
- RegexInterpreter.cs
- XmlBufferedByteStreamReader.cs
- SevenBitStream.cs
- PageSetupDialog.cs
- TypeReference.cs
- NamespaceList.cs
- FixUp.cs
- DataGridViewElement.cs
- MsmqIntegrationInputMessage.cs
- WindowsListView.cs
- XmlEncApr2001.cs
- XsltQilFactory.cs
- XPathConvert.cs
- CachedTypeface.cs
- LinqDataSourceHelper.cs
- HuffmanTree.cs
- MappableObjectManager.cs
- SqlDependency.cs
- UInt16Converter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- X509CertificateClaimSet.cs
- ThrowHelper.cs
- ProtocolReflector.cs
- ResourceBinder.cs
- FixedDocument.cs
- StatusBarPanelClickEvent.cs
- Icon.cs
- WindowsStatic.cs
- StateInitializationDesigner.cs
- CollectionAdapters.cs
- FrameSecurityDescriptor.cs
- ComponentCodeDomSerializer.cs
- DetailsViewRowCollection.cs
- PkcsUtils.cs
- XmlAttributeHolder.cs
- TypeHelper.cs
- OptimizerPatterns.cs
- TextContainerHelper.cs
- SqlCommandBuilder.cs
- XPathAncestorQuery.cs
- WeakReferenceKey.cs
- PenLineCapValidation.cs
- EmptyEnumerator.cs
- ClientReliableChannelBinder.cs
- IDQuery.cs
- StatusBarAutomationPeer.cs
- PersonalizationProviderCollection.cs
- SQLInt64Storage.cs
- Accessors.cs
- SvcMapFileSerializer.cs
- UnsafeNativeMethods.cs
- StructuralObject.cs
- RunClient.cs
- RuleEngine.cs
- File.cs
- OutputCacheProfile.cs
- RelationshipEndMember.cs
- QuaternionConverter.cs
- UIntPtr.cs
- ScriptDescriptor.cs
- SafeNativeMethodsOther.cs
- TextProperties.cs
- EncryptedReference.cs
- PropertyIDSet.cs
- XmlComplianceUtil.cs
- ImageCodecInfo.cs
- Pair.cs
- Matrix3D.cs
- EventWaitHandle.cs
- ReadContentAsBinaryHelper.cs
- CapabilitiesAssignment.cs
- SelectionProcessor.cs
- PageBuildProvider.cs
- SqlClientWrapperSmiStreamChars.cs
- ManualWorkflowSchedulerService.cs
- returneventsaver.cs
- LayoutInformation.cs
- CompModSwitches.cs
- DesignOnlyAttribute.cs
- ColorTranslator.cs
- XamlTypeMapper.cs
- CodeDOMUtility.cs
- DateTimeSerializationSection.cs
- DbMetaDataColumnNames.cs
- ArrayList.cs
- QilTernary.cs