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
- WebBrowsableAttribute.cs
- FastEncoder.cs
- BasicBrowserDialog.designer.cs
- Viewport3DAutomationPeer.cs
- MetadataItemCollectionFactory.cs
- ImageList.cs
- CopyCodeAction.cs
- Image.cs
- RouteTable.cs
- CombinedGeometry.cs
- ClassDataContract.cs
- PackageFilter.cs
- TimeZone.cs
- IPEndPoint.cs
- TextTrailingWordEllipsis.cs
- WindowsButton.cs
- BitmapEffect.cs
- OAVariantLib.cs
- InvokeSchedule.cs
- DateTimeValueSerializerContext.cs
- PointCollection.cs
- DSASignatureDeformatter.cs
- ZipIOExtraFieldPaddingElement.cs
- RadioButtonAutomationPeer.cs
- SecurityManager.cs
- SimpleTypeResolver.cs
- PaintValueEventArgs.cs
- SQLSingle.cs
- DoubleCollectionConverter.cs
- DebugView.cs
- ConfigurationSchemaErrors.cs
- BindMarkupExtensionSerializer.cs
- ContextMarshalException.cs
- DocumentOrderQuery.cs
- ButtonFieldBase.cs
- GetWinFXPath.cs
- ListViewDataItem.cs
- Rect.cs
- SrgsText.cs
- SqlReferenceCollection.cs
- WindowsTitleBar.cs
- SecurityHeaderTokenResolver.cs
- Subtree.cs
- HttpWebRequestElement.cs
- ActivityCodeDomSerializer.cs
- ProfileSection.cs
- ObjectItemCollection.cs
- ListItemsPage.cs
- DataGridViewLinkCell.cs
- XmlIlTypeHelper.cs
- DependencyProperty.cs
- ControlPropertyNameConverter.cs
- DataGridColumnsPage.cs
- AssociatedControlConverter.cs
- PersonalizationStateInfo.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TableAdapterManagerHelper.cs
- DeploymentSection.cs
- DataGridCommandEventArgs.cs
- Content.cs
- CorrelationTokenInvalidatedHandler.cs
- FieldNameLookup.cs
- InputChannel.cs
- WindowsListViewGroupSubsetLink.cs
- invalidudtexception.cs
- RecordsAffectedEventArgs.cs
- TrustManagerMoreInformation.cs
- WebPartConnectionsCancelVerb.cs
- SQLChars.cs
- DbConnectionPool.cs
- AssemblySettingAttributes.cs
- SchemaNotation.cs
- SoapTransportImporter.cs
- TdsRecordBufferSetter.cs
- UnicastIPAddressInformationCollection.cs
- TraceHandler.cs
- SamlDelegatingWriter.cs
- HostUtils.cs
- DoubleStorage.cs
- UInt32Storage.cs
- RowSpanVector.cs
- Vector.cs
- Ipv6Element.cs
- VBIdentifierTrimConverter.cs
- Preprocessor.cs
- IPHostEntry.cs
- ComplexObject.cs
- ToolStripMenuItemCodeDomSerializer.cs
- EpmCustomContentWriterNodeData.cs
- WeakRefEnumerator.cs
- ColumnCollection.cs
- Int32Rect.cs
- DrawingAttributeSerializer.cs
- UpdateTracker.cs
- XD.cs
- VisualBrush.cs
- ReliableSessionBindingElementImporter.cs
- HtmlToClrEventProxy.cs
- MethodBody.cs
- RewritingPass.cs