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
- MessagePropertyFilter.cs
- ConfigurationStrings.cs
- AbsoluteQuery.cs
- EmbeddedObject.cs
- NotCondition.cs
- MailAddressCollection.cs
- ConfigurationValidatorAttribute.cs
- DiffuseMaterial.cs
- PaintValueEventArgs.cs
- GACMembershipCondition.cs
- OperatorExpressions.cs
- DataColumnPropertyDescriptor.cs
- Operators.cs
- ByteStorage.cs
- ResourceAssociationSet.cs
- FileReservationCollection.cs
- CallbackDebugElement.cs
- DataContractSet.cs
- XmlSchemaComplexContentRestriction.cs
- DiscoveryViaBehavior.cs
- ChangeTracker.cs
- Win32.cs
- WsdlImporter.cs
- ExtractedStateEntry.cs
- LocationFactory.cs
- ToolStripItem.cs
- HotSpot.cs
- InitializationEventAttribute.cs
- EventTrigger.cs
- EntityReference.cs
- Compilation.cs
- HwndHostAutomationPeer.cs
- StringConcat.cs
- LinqDataSourceEditData.cs
- WindowsGraphicsCacheManager.cs
- WebPermission.cs
- AsyncContentLoadedEventArgs.cs
- TargetControlTypeCache.cs
- XPathNavigatorKeyComparer.cs
- InlineUIContainer.cs
- WebPartEditorOkVerb.cs
- ConfigViewGenerator.cs
- Input.cs
- TextParagraphProperties.cs
- ServiceSecurityContext.cs
- FrugalMap.cs
- BamlStream.cs
- DrawingServices.cs
- DiscoveryDocumentSearchPattern.cs
- ServiceOperationParameter.cs
- Currency.cs
- ValueConversionAttribute.cs
- PreloadedPackages.cs
- SQLStringStorage.cs
- CharStorage.cs
- CursorConverter.cs
- SQLBinary.cs
- Debug.cs
- MetadataArtifactLoaderFile.cs
- UTF8Encoding.cs
- ProviderConnectionPoint.cs
- UriTemplateQueryValue.cs
- Queue.cs
- HttpCacheVary.cs
- SQLDoubleStorage.cs
- SqlDataReaderSmi.cs
- ClientSponsor.cs
- LazyInitializer.cs
- CalendarButtonAutomationPeer.cs
- SqlServices.cs
- SID.cs
- RewritingProcessor.cs
- WebPartTransformerAttribute.cs
- SpotLight.cs
- filewebrequest.cs
- PrePrepareMethodAttribute.cs
- PlaceHolder.cs
- SmtpLoginAuthenticationModule.cs
- UnknownWrapper.cs
- FileLogRecordStream.cs
- XmlConvert.cs
- SoapReflectionImporter.cs
- DataView.cs
- AmbiguousMatchException.cs
- TreeNodeCollection.cs
- CollectionViewGroup.cs
- ColumnCollection.cs
- PageParserFilter.cs
- TrackBar.cs
- Assert.cs
- MsmqBindingBase.cs
- WindowsListViewGroup.cs
- Image.cs
- HandlerMappingMemo.cs
- PropertyIDSet.cs
- StyleCollection.cs
- DebugHandleTracker.cs
- DesignTimeParseData.cs
- SecUtil.cs
- HttpCapabilitiesEvaluator.cs