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
- GeneralTransform3D.cs
- TextEditorContextMenu.cs
- TextBoxBase.cs
- ScriptRef.cs
- SpecularMaterial.cs
- HandlerFactoryCache.cs
- SectionInformation.cs
- SafeNativeMethods.cs
- InternalBase.cs
- AutoCompleteStringCollection.cs
- SortKey.cs
- SkewTransform.cs
- BinaryUtilClasses.cs
- SoundPlayerAction.cs
- DurableInstanceProvider.cs
- PagedDataSource.cs
- X509InitiatorCertificateClientElement.cs
- DoubleAnimationUsingPath.cs
- precedingsibling.cs
- EventKeyword.cs
- documentsequencetextview.cs
- OutArgumentConverter.cs
- ValidateNames.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- BitmapEffectInputData.cs
- BypassElement.cs
- PolyLineSegmentFigureLogic.cs
- ContextConfiguration.cs
- TemplateEditingFrame.cs
- WebPartEditorOkVerb.cs
- ContentElement.cs
- Point3DValueSerializer.cs
- DynamicRenderer.cs
- BaseResourcesBuildProvider.cs
- CommandLineParser.cs
- Image.cs
- DiscoveryMessageSequence.cs
- DefaultParameterValueAttribute.cs
- CodePageEncoding.cs
- EntityTypeEmitter.cs
- ListenerUnsafeNativeMethods.cs
- Ticks.cs
- MessageTransmitTraceRecord.cs
- EncodingInfo.cs
- CodeDefaultValueExpression.cs
- ExpressionConverter.cs
- smtpconnection.cs
- PathSegment.cs
- ManualResetEventSlim.cs
- WorkflowServiceAttributesTypeConverter.cs
- AssemblyNameEqualityComparer.cs
- WindowsPrincipal.cs
- DefaultProfileManager.cs
- Pair.cs
- CodeArrayCreateExpression.cs
- OutputCacheSettingsSection.cs
- TemplateNodeContextMenu.cs
- SqlEnums.cs
- TemplateControlCodeDomTreeGenerator.cs
- Encoder.cs
- EncoderFallback.cs
- SettingsPropertyIsReadOnlyException.cs
- StoreAnnotationsMap.cs
- AudioFileOut.cs
- RuleSettings.cs
- ResourceManager.cs
- LogLogRecordHeader.cs
- WorkflowOwnershipException.cs
- TTSEngineTypes.cs
- Rotation3DAnimationBase.cs
- DataGridViewTextBoxColumn.cs
- DeclaredTypeElementCollection.cs
- DataTablePropertyDescriptor.cs
- TargetPerspective.cs
- SizeFConverter.cs
- FontFamilyValueSerializer.cs
- DataGridCell.cs
- PeerNameRecord.cs
- IisTraceListener.cs
- DataSourceCache.cs
- WebPartZoneBase.cs
- HttpValueCollection.cs
- MemberDescriptor.cs
- WorkflowInstanceSuspendedRecord.cs
- ToolbarAUtomationPeer.cs
- StrongTypingException.cs
- PointConverter.cs
- ToolstripProfessionalRenderer.cs
- CustomAssemblyResolver.cs
- _NTAuthentication.cs
- EntityStoreSchemaGenerator.cs
- SAPIEngineTypes.cs
- FontClient.cs
- EntityTransaction.cs
- ClusterRegistryConfigurationProvider.cs
- DataPager.cs
- PointCollectionConverter.cs
- SqlCommand.cs
- AnnotationService.cs
- SeekStoryboard.cs