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
- ArrangedElement.cs
- ADMembershipUser.cs
- PriorityQueue.cs
- NotEqual.cs
- ApplicationSecurityManager.cs
- IsolationInterop.cs
- CharacterString.cs
- BmpBitmapEncoder.cs
- KeyConstraint.cs
- DrawingBrush.cs
- DictionaryBase.cs
- EntityDataSourceDataSelectionPanel.cs
- HttpFileCollection.cs
- ObjectResult.cs
- CompilationRelaxations.cs
- ValidationService.cs
- SerializationInfo.cs
- RegionInfo.cs
- PointHitTestParameters.cs
- Debug.cs
- InstalledFontCollection.cs
- _BasicClient.cs
- WorkflowServiceHostFactory.cs
- BitmapEffectOutputConnector.cs
- TextRunProperties.cs
- XmlSchemaComplexType.cs
- ToolStripDesigner.cs
- WebPartUtil.cs
- PageVisual.cs
- TextSerializer.cs
- TypeBuilder.cs
- ItemsControl.cs
- TextTreeDeleteContentUndoUnit.cs
- AssociatedControlConverter.cs
- CompositionAdorner.cs
- SafeProcessHandle.cs
- HtmlFormWrapper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- UIPropertyMetadata.cs
- TreeSet.cs
- WmlValidatorAdapter.cs
- RegionIterator.cs
- EditorAttributeInfo.cs
- HandlerFactoryWrapper.cs
- QueueNameHelper.cs
- RegisteredHiddenField.cs
- Cursor.cs
- WebCodeGenerator.cs
- MenuItem.cs
- XmlUrlResolver.cs
- XmlSchemaComplexType.cs
- LocalizableAttribute.cs
- ParsedAttributeCollection.cs
- Roles.cs
- BindingList.cs
- ThrowHelper.cs
- SqlCrossApplyToCrossJoin.cs
- BinaryReader.cs
- PtsHelper.cs
- TransformerConfigurationWizardBase.cs
- TextBox.cs
- XmlSchemaSimpleType.cs
- ModifyActivitiesPropertyDescriptor.cs
- RadioButtonPopupAdapter.cs
- GridViewActionList.cs
- RubberbandSelector.cs
- EntityModelSchemaGenerator.cs
- WhitespaceReader.cs
- AuthenticationModuleElement.cs
- Menu.cs
- CssClassPropertyAttribute.cs
- EventItfInfo.cs
- TextLine.cs
- ConfigXmlReader.cs
- ListViewDataItem.cs
- EditingMode.cs
- AndAlso.cs
- IndexerNameAttribute.cs
- SqlXml.cs
- EndpointNameMessageFilter.cs
- Point4DValueSerializer.cs
- COM2IPerPropertyBrowsingHandler.cs
- NotConverter.cs
- Visitor.cs
- HiddenFieldPageStatePersister.cs
- BevelBitmapEffect.cs
- InputDevice.cs
- RoleServiceManager.cs
- WebResourceAttribute.cs
- XmlDictionaryWriter.cs
- TemplateControl.cs
- SignedPkcs7.cs
- ProjectionCamera.cs
- Automation.cs
- DataIdProcessor.cs
- PageTextBox.cs
- PartialClassGenerationTask.cs
- ToolZone.cs
- TimeSpan.cs
- QueryOptionExpression.cs