Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextAction.cs / 1305376 / TextAction.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 TextAction : CompiledAction { private bool disableOutputEscaping; private string text; internal override void Compile(Compiler compiler) { CompileAttributes(compiler); CompileContent(compiler); } internal override bool CompileAttribute(Compiler compiler) { string name = compiler.Input.LocalName; string value = compiler.Input.Value; if (Ref.Equal(name, compiler.Atoms.DisableOutputEscaping)) { this.disableOutputEscaping = compiler.GetYesNo(value); } else { return false; } return true; } private void CompileContent(Compiler compiler) { if (compiler.Recurse()) { NavigatorInput input = compiler.Input; this.text = string.Empty; do { switch (input.NodeType) { case XPathNodeType.Text: case XPathNodeType.Whitespace: case XPathNodeType.SignificantWhitespace: this.text += input.Value; break; case XPathNodeType.Comment: case XPathNodeType.ProcessingInstruction: break; default: throw compiler.UnexpectedKeyword(); } } while(compiler.Advance()); compiler.ToParent(); } } internal override void Execute(Processor processor, ActionFrame frame) { Debug.Assert(processor != null && frame != null); switch (frame.State) { case Initialized: if (processor.TextEvent(this.text, disableOutputEscaping)) { frame.Finished(); } break; default: Debug.Fail("Invalid execution state in TextAction"); 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
- HtmlHistory.cs
- MetadataArtifactLoaderCompositeFile.cs
- CompensatableTransactionScopeActivityDesigner.cs
- ClientData.cs
- ChannelReliableSession.cs
- PerformanceCounterScope.cs
- RequestCachingSection.cs
- ConvertBinder.cs
- OrderByLifter.cs
- ObjectFullSpanRewriter.cs
- EntityModelSchemaGenerator.cs
- XmlTextEncoder.cs
- IdentityReference.cs
- SizeAnimationUsingKeyFrames.cs
- InputManager.cs
- PartialTrustVisibleAssembly.cs
- SerializerDescriptor.cs
- TypeUnloadedException.cs
- LayoutSettings.cs
- TypeElement.cs
- Clipboard.cs
- IConvertible.cs
- GridEntry.cs
- XmlSigningNodeWriter.cs
- _BaseOverlappedAsyncResult.cs
- SqlLiftIndependentRowExpressions.cs
- DirectoryLocalQuery.cs
- DodSequenceMerge.cs
- CustomCredentialPolicy.cs
- SqlTypeSystemProvider.cs
- QuaternionIndependentAnimationStorage.cs
- UnconditionalPolicy.cs
- SqlBulkCopyColumnMappingCollection.cs
- Registry.cs
- GenericWebPart.cs
- PrimitiveType.cs
- ChangePassword.cs
- Point3DCollection.cs
- ExpandoObject.cs
- SynchronizationContextHelper.cs
- DelegatingHeader.cs
- StreamInfo.cs
- SnapLine.cs
- SafeLocalMemHandle.cs
- BaseTreeIterator.cs
- DataGridLinkButton.cs
- DataObjectFieldAttribute.cs
- Stylus.cs
- DispatcherEventArgs.cs
- RepeatButton.cs
- Brush.cs
- AuthenticationManager.cs
- WindowsIdentity.cs
- EventProviderWriter.cs
- RemoteHelper.cs
- ConstructorBuilder.cs
- RouteUrlExpressionBuilder.cs
- InfoCardKeyedHashAlgorithm.cs
- entityreference_tresulttype.cs
- RadioButtonRenderer.cs
- ToolStripRenderEventArgs.cs
- RichTextBoxConstants.cs
- XamlReaderHelper.cs
- SplineKeyFrames.cs
- SqlConnectionPoolProviderInfo.cs
- CurrencyWrapper.cs
- WindowsToolbarItemAsMenuItem.cs
- RenderingBiasValidation.cs
- XmlValueConverter.cs
- CompositeControl.cs
- BufferModesCollection.cs
- KeyGesture.cs
- ProjectedSlot.cs
- Predicate.cs
- ExpressionBuilder.cs
- InputBindingCollection.cs
- StateManagedCollection.cs
- XmlExtensionFunction.cs
- HttpContextServiceHost.cs
- SafeBitVector32.cs
- OleDbTransaction.cs
- InternalMappingException.cs
- ProtocolsSection.cs
- XmlChildEnumerator.cs
- TrustSection.cs
- SymbolTable.cs
- Base64Encoder.cs
- SecurityStandardsManager.cs
- DateTimeUtil.cs
- CheckBoxFlatAdapter.cs
- NumericUpDownAccelerationCollection.cs
- PipelineModuleStepContainer.cs
- ResourceExpressionBuilder.cs
- BitmapEffectState.cs
- Tracking.cs
- TCEAdapterGenerator.cs
- CodeAttachEventStatement.cs
- IIS7UserPrincipal.cs
- Matrix.cs
- ContentOperations.cs