5 // Ben Maurer (bmaurer@users.sourceforge.net)
6 // Atsushi Enomoto (ginga@kit.hi-ho.ne.jp)
9 // (C) 2003 Atsushi Enomoto
13 using System.Collections;
15 using System.Xml.XPath;
18 namespace Mono.Xml.Xsl.Operations {
19 public class XslText : XslCompiledElement {
20 bool disableOutputEscaping = false;
23 public XslText (Compiler c) : base (c) {}
25 protected override void Compile (Compiler c)
27 this.text = c.Input.Value;
29 if (c.Input.NodeType == XPathNodeType.Element)
30 this.disableOutputEscaping = c.ParseYesNoAttribute ("disable-output-escaping", false);
34 public override void Evaluate (XslTransformProcessor p)
36 if (!disableOutputEscaping)
37 p.Out.WriteString (text);
39 p.Out.WriteRaw (text);