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
- SerializationStore.cs
- Resources.Designer.cs
- DbFunctionCommandTree.cs
- WebEventCodes.cs
- HtmlUtf8RawTextWriter.cs
- ShaderRenderModeValidation.cs
- DbgCompiler.cs
- DES.cs
- MetabaseServerConfig.cs
- MimeObjectFactory.cs
- MobileResource.cs
- datacache.cs
- BuildProvider.cs
- BulletChrome.cs
- SqlCharStream.cs
- TaskFormBase.cs
- ConstructorArgumentAttribute.cs
- SortableBindingList.cs
- ComponentManagerBroker.cs
- PatternMatcher.cs
- FreeFormDesigner.cs
- StatusBarDesigner.cs
- LastQueryOperator.cs
- MessageLogger.cs
- EmptyStringExpandableObjectConverter.cs
- SoapRpcMethodAttribute.cs
- CharacterString.cs
- UniqueSet.cs
- SwitchDesigner.xaml.cs
- XmlSchemaException.cs
- _ShellExpression.cs
- Task.cs
- FileStream.cs
- StreamReader.cs
- StandardRuntimeEnumValidatorAttribute.cs
- EventProviderBase.cs
- TimeEnumHelper.cs
- ArrayListCollectionBase.cs
- TypedColumnHandler.cs
- SetterTriggerConditionValueConverter.cs
- ProtocolsConfiguration.cs
- OleDbReferenceCollection.cs
- RenderingBiasValidation.cs
- QilTypeChecker.cs
- StackBuilderSink.cs
- Pen.cs
- BamlTreeMap.cs
- BindMarkupExtensionSerializer.cs
- DocumentsTrace.cs
- FileDetails.cs
- HashAlgorithm.cs
- UxThemeWrapper.cs
- FontFaceLayoutInfo.cs
- CodeTypeParameter.cs
- CompositeDesignerAccessibleObject.cs
- MouseButton.cs
- CodeDefaultValueExpression.cs
- ContextQuery.cs
- SchemaManager.cs
- CloseSequenceResponse.cs
- CheckBoxPopupAdapter.cs
- SapiAttributeParser.cs
- PointHitTestParameters.cs
- ColumnMapCopier.cs
- DispatcherEventArgs.cs
- ChannelServices.cs
- Operators.cs
- RegistryKey.cs
- QuadraticBezierSegment.cs
- ParallelTimeline.cs
- ImageList.cs
- XPathMultyIterator.cs
- BitmapEffectvisualstate.cs
- Codec.cs
- CannotUnloadAppDomainException.cs
- DataBindingsDialog.cs
- WindowsSecurityToken.cs
- ALinqExpressionVisitor.cs
- cookiecollection.cs
- CircleHotSpot.cs
- DeploymentSectionCache.cs
- GB18030Encoding.cs
- Baml2006KnownTypes.cs
- Types.cs
- NamespaceTable.cs
- SineEase.cs
- ConfigXmlSignificantWhitespace.cs
- StrongNameUtility.cs
- UInt32Storage.cs
- InlineCollection.cs
- StatusBar.cs
- DelegateTypeInfo.cs
- StringKeyFrameCollection.cs
- CompilerParameters.cs
- PathGeometry.cs
- ManifestBasedResourceGroveler.cs
- FtpRequestCacheValidator.cs
- ReachUIElementCollectionSerializerAsync.cs
- ObjectConverter.cs
- WebBodyFormatMessageProperty.cs