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
- IgnoreSection.cs
- AssemblyHash.cs
- SafeEventLogReadHandle.cs
- ImportContext.cs
- CaseStatementProjectedSlot.cs
- TabControlAutomationPeer.cs
- SafeRightsManagementQueryHandle.cs
- AlternateViewCollection.cs
- CapabilitiesPattern.cs
- PropertyRef.cs
- AttributedMetaModel.cs
- columnmapfactory.cs
- ADMembershipUser.cs
- DataGridLinkButton.cs
- ConfigXmlComment.cs
- CheckBoxFlatAdapter.cs
- oledbconnectionstring.cs
- UserMapPath.cs
- SmtpSection.cs
- ImageSourceConverter.cs
- DiscoveryClientReferences.cs
- ScrollProperties.cs
- ThreadAbortException.cs
- SiteMapDataSourceView.cs
- OrderedDictionaryStateHelper.cs
- ZoomPercentageConverter.cs
- FlowDocumentView.cs
- ContextMenu.cs
- RotateTransform3D.cs
- ByteStream.cs
- XPathPatternBuilder.cs
- QueryStringConverter.cs
- SpecularMaterial.cs
- RoleService.cs
- OutputWindow.cs
- ToolStripGrip.cs
- RegexNode.cs
- WebBaseEventKeyComparer.cs
- WebPartEditorApplyVerb.cs
- BuilderInfo.cs
- MetafileHeaderWmf.cs
- webbrowsersite.cs
- BindingExpressionUncommonField.cs
- TypeKeyValue.cs
- SigningDialog.cs
- ParallelForEach.cs
- WebPartsPersonalizationAuthorization.cs
- CompoundFileReference.cs
- OrderByBuilder.cs
- ReadWriteObjectLock.cs
- mediaeventargs.cs
- ProfileSettings.cs
- GridEntryCollection.cs
- HwndSubclass.cs
- CommandManager.cs
- BooleanConverter.cs
- CounterSampleCalculator.cs
- XmlQueryRuntime.cs
- SQLInt32Storage.cs
- CounterSetInstance.cs
- RangeBase.cs
- XmlSubtreeReader.cs
- SplitterCancelEvent.cs
- PreservationFileReader.cs
- AnnotationHelper.cs
- Deserializer.cs
- DateRangeEvent.cs
- SqlSelectStatement.cs
- DetailsViewCommandEventArgs.cs
- CodeAssignStatement.cs
- Pool.cs
- LightweightCodeGenerator.cs
- DocumentPaginator.cs
- UIPermission.cs
- DataSourceCollectionBase.cs
- CollectionBuilder.cs
- MonthCalendar.cs
- XmlEncodedRawTextWriter.cs
- CheckBoxList.cs
- ChannelSinkStacks.cs
- WebServiceFaultDesigner.cs
- DataGridViewCellPaintingEventArgs.cs
- ColumnMapVisitor.cs
- TargetConverter.cs
- ManagedFilter.cs
- ALinqExpressionVisitor.cs
- TextDecorationUnitValidation.cs
- Lasso.cs
- BrushConverter.cs
- MsmqBindingElementBase.cs
- XmlTextWriter.cs
- PointCollectionConverter.cs
- LinkedResourceCollection.cs
- ActivationServices.cs
- BufferedWebEventProvider.cs
- streamingZipPartStream.cs
- xamlnodes.cs
- ProfilePropertySettings.cs
- TextParagraph.cs
- HttpAsyncResult.cs