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
- CodeConditionStatement.cs
- ContextMenuStripGroup.cs
- GradientStop.cs
- ConfigUtil.cs
- XmlUtf8RawTextWriter.cs
- ISO2022Encoding.cs
- LongSumAggregationOperator.cs
- HighlightComponent.cs
- RectKeyFrameCollection.cs
- TTSEngineProxy.cs
- TextElementEditingBehaviorAttribute.cs
- HtmlTernaryTree.cs
- FormatterConverter.cs
- TypeUnloadedException.cs
- LinkLabelLinkClickedEvent.cs
- util.cs
- EventSinkActivity.cs
- CodeGotoStatement.cs
- AssertSection.cs
- KeySplineConverter.cs
- ToolStripPanelSelectionGlyph.cs
- ComplusEndpointConfigContainer.cs
- WebConfigurationHostFileChange.cs
- SchemaConstraints.cs
- ChannelServices.cs
- HasCopySemanticsAttribute.cs
- TemplatedMailWebEventProvider.cs
- CodeRegionDirective.cs
- UdpMessageProperty.cs
- StoreAnnotationsMap.cs
- EdmPropertyAttribute.cs
- PropertyNames.cs
- StringPropertyBuilder.cs
- DataGridViewRowHeaderCell.cs
- LayoutEditorPart.cs
- SQLBinaryStorage.cs
- ChineseLunisolarCalendar.cs
- Activator.cs
- DesignerDataTable.cs
- ServiceNotStartedException.cs
- BuildProviderCollection.cs
- WindowsHyperlink.cs
- StrongNameIdentityPermission.cs
- GPRECTF.cs
- AutomationEvent.cs
- DateTimeStorage.cs
- Table.cs
- CompositeCollectionView.cs
- DrawingAttributes.cs
- LinkConverter.cs
- QuaternionConverter.cs
- EventRouteFactory.cs
- CodeActivity.cs
- CodeIndexerExpression.cs
- SwitchElementsCollection.cs
- AxHost.cs
- BinHexEncoder.cs
- DataGridViewCellStyleConverter.cs
- HtmlToClrEventProxy.cs
- DesignerDataSourceView.cs
- SmtpDigestAuthenticationModule.cs
- IISMapPath.cs
- WindowsAuthenticationModule.cs
- ProxyWebPart.cs
- MouseBinding.cs
- RefType.cs
- RealizationContext.cs
- ServiceManager.cs
- typedescriptorpermission.cs
- FileLogRecordHeader.cs
- DoubleCollection.cs
- BrushConverter.cs
- MediaContext.cs
- SafeFileMappingHandle.cs
- Rect.cs
- ModelTypeConverter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- StatusBarItemAutomationPeer.cs
- LinkAreaEditor.cs
- SqlLiftIndependentRowExpressions.cs
- WebResourceAttribute.cs
- TypographyProperties.cs
- ColumnCollectionEditor.cs
- ExceptionNotification.cs
- WebHttpBinding.cs
- TypeContext.cs
- XmlWriterDelegator.cs
- Evidence.cs
- ExtendedPropertyDescriptor.cs
- XmlSortKeyAccumulator.cs
- NativeMethods.cs
- CryptoApi.cs
- CodeTypeOfExpression.cs
- TreeNodeBinding.cs
- DeflateEmulationStream.cs
- WebPartZoneBase.cs
- PropertySegmentSerializer.cs
- UpdatePanelControlTrigger.cs
- Oid.cs
- DefaultValueConverter.cs