Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / ApplyImportsAction.cs / 1305376 / 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
- NaturalLanguageHyphenator.cs
- SafeIUnknown.cs
- RuntimeHelpers.cs
- DispatcherHookEventArgs.cs
- SerializationTrace.cs
- IdentityNotMappedException.cs
- WebPartZone.cs
- dtdvalidator.cs
- DataTableNewRowEvent.cs
- DataViewSettingCollection.cs
- ValidatorCollection.cs
- EntryIndex.cs
- VideoDrawing.cs
- ResourcePool.cs
- BamlLocalizableResourceKey.cs
- SourceCollection.cs
- InputLanguageCollection.cs
- TextBoxLine.cs
- OutgoingWebResponseContext.cs
- XhtmlTextWriter.cs
- DashStyles.cs
- BindableTemplateBuilder.cs
- ObjectViewListener.cs
- XmlAttributeAttribute.cs
- PhonemeConverter.cs
- DataGridViewTextBoxColumn.cs
- GeneralTransform3DTo2D.cs
- RelationshipFixer.cs
- XPathNodePointer.cs
- PageParser.cs
- BrushValueSerializer.cs
- Dump.cs
- TypeInitializationException.cs
- FormattedTextSymbols.cs
- AsymmetricSignatureDeformatter.cs
- SmtpCommands.cs
- TextChangedEventArgs.cs
- OdbcConnectionString.cs
- DataBinder.cs
- ProgressBarBrushConverter.cs
- GlobalEventManager.cs
- ShaperBuffers.cs
- NameValuePair.cs
- RSAPKCS1SignatureDeformatter.cs
- VectorCollectionValueSerializer.cs
- PropertyDescriptorComparer.cs
- AutomationProperty.cs
- RightsManagementEncryptedStream.cs
- PointConverter.cs
- Point4DConverter.cs
- SmtpAuthenticationManager.cs
- ObjectItemLoadingSessionData.cs
- InvalidOleVariantTypeException.cs
- StaticTextPointer.cs
- PropertyEntry.cs
- WebPartDescriptionCollection.cs
- MenuCommands.cs
- ComponentEditorForm.cs
- EventLogPermission.cs
- _HeaderInfo.cs
- dbdatarecord.cs
- TransactionManager.cs
- WsdlServiceChannelBuilder.cs
- OutputCacheEntry.cs
- SlotInfo.cs
- WebPartConnectionsConnectVerb.cs
- Version.cs
- WinEventQueueItem.cs
- AccessedThroughPropertyAttribute.cs
- ReferenceConverter.cs
- ServiceNotStartedException.cs
- TakeQueryOptionExpression.cs
- AuthenticatingEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ReadOnlyHierarchicalDataSource.cs
- metadatamappinghashervisitor.cs
- HttpProcessUtility.cs
- PermissionSetTriple.cs
- GradientStop.cs
- CompModSwitches.cs
- XPathBinder.cs
- PackWebResponse.cs
- WebPartManagerDesigner.cs
- DataSet.cs
- ErrorRuntimeConfig.cs
- Expression.cs
- ImageListUtils.cs
- UpdatePanelTriggerCollection.cs
- DrawingImage.cs
- ClusterSafeNativeMethods.cs
- SoundPlayerAction.cs
- SocketStream.cs
- FrameworkContentElement.cs
- ImageMetadata.cs
- ComplexTypeEmitter.cs
- TabItem.cs
- ObjectParameterCollection.cs
- HashAlgorithm.cs
- DispatchChannelSink.cs
- RegistrationServices.cs