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
- InputReportEventArgs.cs
- RoutedEventHandlerInfo.cs
- Point3DCollectionConverter.cs
- WorkflowTransactionService.cs
- XPathEmptyIterator.cs
- ProxyManager.cs
- PathSegment.cs
- EncryptedKeyIdentifierClause.cs
- LinkedList.cs
- ZoomComboBox.cs
- SystemParameters.cs
- QuadTree.cs
- SessionStateModule.cs
- SQLByteStorage.cs
- RijndaelManaged.cs
- WebPartMenuStyle.cs
- Span.cs
- VectorCollectionConverter.cs
- MethodRental.cs
- DataTableNewRowEvent.cs
- MeasurementDCInfo.cs
- MarshalDirectiveException.cs
- CatalogPartDesigner.cs
- _NestedMultipleAsyncResult.cs
- ContactManager.cs
- XmlSchemaSet.cs
- CacheOutputQuery.cs
- ByteStreamGeometryContext.cs
- RotationValidation.cs
- SqlFlattener.cs
- HScrollBar.cs
- MsmqInputChannel.cs
- ProviderIncompatibleException.cs
- BitmapCache.cs
- RuntimeWrappedException.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- AppLevelCompilationSectionCache.cs
- DesignerActionVerbList.cs
- EventPrivateKey.cs
- DataGridViewColumn.cs
- StubHelpers.cs
- BatchServiceHost.cs
- Vector3DAnimationUsingKeyFrames.cs
- TrustLevel.cs
- ToolStripItemDesigner.cs
- MinimizableAttributeTypeConverter.cs
- ProfilePropertySettingsCollection.cs
- AssemblyResourceLoader.cs
- DbException.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- PropertyTabAttribute.cs
- CodeExpressionCollection.cs
- PropertyDescriptor.cs
- IntPtr.cs
- DecoderExceptionFallback.cs
- FontUnit.cs
- FontCollection.cs
- CodeAttributeArgumentCollection.cs
- InteropBitmapSource.cs
- assemblycache.cs
- RefreshPropertiesAttribute.cs
- HashCryptoHandle.cs
- ScriptingAuthenticationServiceSection.cs
- QuaternionRotation3D.cs
- ParserHooks.cs
- BindStream.cs
- ErrorTableItemStyle.cs
- TableSectionStyle.cs
- BinaryMessageEncodingElement.cs
- IApplicationTrustManager.cs
- ListBindableAttribute.cs
- AggregationMinMaxHelpers.cs
- RenderingBiasValidation.cs
- GZipDecoder.cs
- ConfigLoader.cs
- X509WindowsSecurityToken.cs
- GlyphRunDrawing.cs
- ToolStripItemTextRenderEventArgs.cs
- EmbeddedObject.cs
- NestedContainer.cs
- StylusPointCollection.cs
- RuntimeResourceSet.cs
- IconBitmapDecoder.cs
- SQLBinaryStorage.cs
- KeyBinding.cs
- ListViewInsertionMark.cs
- SerializationInfo.cs
- NamespaceTable.cs
- SqlTransaction.cs
- DirectoryLocalQuery.cs
- cookiecontainer.cs
- UserControl.cs
- TypeResolver.cs
- SessionStateUtil.cs
- Trace.cs
- DynamicPropertyHolder.cs
- DesignerActionPropertyItem.cs
- PostBackOptions.cs
- Exception.cs
- JulianCalendar.cs