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
- XmlSchemaObject.cs
- SmtpMail.cs
- LeaseManager.cs
- LinqDataSourceDeleteEventArgs.cs
- ExtentJoinTreeNode.cs
- ApplicationProxyInternal.cs
- ListenerElementsCollection.cs
- ChangeNode.cs
- WebSysDisplayNameAttribute.cs
- WorkflowRuntimeBehavior.cs
- SystemPens.cs
- Run.cs
- ToolStripDropDownButton.cs
- SiteMapHierarchicalDataSourceView.cs
- iisPickupDirectory.cs
- xdrvalidator.cs
- SelectionWordBreaker.cs
- InternalBase.cs
- InvalidCommandTreeException.cs
- SurrogateChar.cs
- DbDataRecord.cs
- TextFormatterContext.cs
- IBuiltInEvidence.cs
- ContentFilePart.cs
- _DigestClient.cs
- Point3D.cs
- RegexParser.cs
- TabItemAutomationPeer.cs
- ResXResourceWriter.cs
- Exception.cs
- ChannelServices.cs
- CodeActivityContext.cs
- Instrumentation.cs
- GradientBrush.cs
- TabControl.cs
- WebConfigurationHost.cs
- OleDbConnectionFactory.cs
- RoutedEventConverter.cs
- NoPersistHandle.cs
- DocumentViewerBaseAutomationPeer.cs
- SQLUtility.cs
- Registry.cs
- SqlFacetAttribute.cs
- ColorContext.cs
- PackageRelationship.cs
- NativeRightsManagementAPIsStructures.cs
- AdornedElementPlaceholder.cs
- SqlInternalConnection.cs
- ToolboxComponentsCreatingEventArgs.cs
- CompositeCollectionView.cs
- BinaryFormatter.cs
- designeractionlistschangedeventargs.cs
- CharEnumerator.cs
- TypeElement.cs
- KoreanCalendar.cs
- SemanticTag.cs
- RIPEMD160.cs
- ColorPalette.cs
- Thickness.cs
- DataGridPagerStyle.cs
- LinqDataSourceDeleteEventArgs.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- AffineTransform3D.cs
- DetailsViewRowCollection.cs
- ProfileBuildProvider.cs
- DataGridRowAutomationPeer.cs
- PolicyStatement.cs
- DataList.cs
- MessageTraceRecord.cs
- DataSourceViewSchemaConverter.cs
- WebRequestModulesSection.cs
- EntityDataSourceDataSelection.cs
- ISO2022Encoding.cs
- OracleTransaction.cs
- MergePropertyDescriptor.cs
- RowsCopiedEventArgs.cs
- ReflectionTypeLoadException.cs
- ChtmlFormAdapter.cs
- CodePageUtils.cs
- UnsafeNativeMethods.cs
- safelinkcollection.cs
- HierarchicalDataSourceControl.cs
- TransformedBitmap.cs
- RegexFCD.cs
- CustomGrammar.cs
- ProfileSettingsCollection.cs
- DrawListViewSubItemEventArgs.cs
- DropShadowBitmapEffect.cs
- PolicyException.cs
- QueryOptionExpression.cs
- OdbcParameterCollection.cs
- XPathNodeHelper.cs
- Debug.cs
- Hashtable.cs
- PeerResolverSettings.cs
- RowCache.cs
- HttpResponseWrapper.cs
- PropertyMappingExceptionEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- DetailsViewCommandEventArgs.cs