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
- PtsContext.cs
- DBCommand.cs
- StickyNoteContentControl.cs
- TemplatedAdorner.cs
- HtmlInputPassword.cs
- DateTimePicker.cs
- ProfileGroupSettings.cs
- UTF8Encoding.cs
- InProcStateClientManager.cs
- IDQuery.cs
- StrongNameUtility.cs
- OperatorExpressions.cs
- RenderData.cs
- ToolStripDropDown.cs
- DataGridPagerStyle.cs
- CopyCodeAction.cs
- ParameterInfo.cs
- MouseButton.cs
- TypeConstant.cs
- CommentAction.cs
- SecurityDocument.cs
- FileDialogCustomPlacesCollection.cs
- DataGrid.cs
- ColumnHeader.cs
- DataFormat.cs
- TypeElementCollection.cs
- XmlDataSource.cs
- XPathDocumentIterator.cs
- PowerEase.cs
- CustomErrorCollection.cs
- XmlHierarchicalEnumerable.cs
- BuiltInExpr.cs
- Filter.cs
- XmlWriterSettings.cs
- HttpPostLocalhostServerProtocol.cs
- Point4D.cs
- ValidationErrorCollection.cs
- WpfSharedBamlSchemaContext.cs
- XmlCharCheckingWriter.cs
- IMembershipProvider.cs
- SchemaElement.cs
- XsdDateTime.cs
- XmlDataProvider.cs
- HuffmanTree.cs
- HttpHandler.cs
- WebService.cs
- IPCCacheManager.cs
- ContentElementAutomationPeer.cs
- CodeSubDirectory.cs
- MetadataExchangeBindings.cs
- FixedSOMGroup.cs
- PlainXmlWriter.cs
- AutoCompleteStringCollection.cs
- PropertyDescriptors.cs
- ClientUtils.cs
- RtfToken.cs
- ProviderSettings.cs
- PtsCache.cs
- StylusButton.cs
- ObjectListCommand.cs
- RelatedImageListAttribute.cs
- FixedSOMSemanticBox.cs
- DataContractSerializer.cs
- LabelDesigner.cs
- GatewayDefinition.cs
- _KerberosClient.cs
- Link.cs
- EmulateRecognizeCompletedEventArgs.cs
- XslException.cs
- ToolStripPanelSelectionGlyph.cs
- PropertyValueUIItem.cs
- ReadOnlyTernaryTree.cs
- SerializerDescriptor.cs
- QilTypeChecker.cs
- TextLine.cs
- OleDbDataReader.cs
- Timeline.cs
- DecimalConstantAttribute.cs
- WebFaultClientMessageInspector.cs
- GeneralTransformCollection.cs
- Int64Converter.cs
- RawStylusInputCustomDataList.cs
- BaseParaClient.cs
- HtmlInputRadioButton.cs
- PartialCachingControl.cs
- WebPartCatalogAddVerb.cs
- BitmapEffectGeneralTransform.cs
- Substitution.cs
- AlignmentYValidation.cs
- BamlMapTable.cs
- ConnectionManagementSection.cs
- ValidationErrorCollection.cs
- CurrencyWrapper.cs
- ThemeableAttribute.cs
- ClientBase.cs
- DataError.cs
- CaseStatementSlot.cs
- DoWorkEventArgs.cs
- XPathEmptyIterator.cs
- RelationshipManager.cs