title: xsl transformation xmlwriter output only returning text C#
body: <p>My output from this transformation only includes the text, but I want the HTML and text output. What do I need to change to do that?</p>
  
  <p>I'm using VS 2010</p>
  
  <p>current example output:</p>
  
  <p>Jones Martin Kelley Marshall</p>
  
  <p>Note I have this in the xsl too, but it wasn't showing in my code example:</p>
  
  <pre><code> xsl:output
      standalone="no"
      method="xml"
      indent="yes"
      omit-xml-declaration="no"
      version="1.0" 
  </code></pre>
  
  <p>xsl:</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;xsl:stylesheet version="1.0"
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
    &lt;xsl:template match="/"&gt;
  
      &lt;xsl:for-each select="/people"&gt;
  
        &lt;div class="lastnames"&gt;
          &lt;ul&gt;
            &lt;li&gt;
              &lt;xsl:value-of select="lastname" disable-output-escaping="yes" /&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
  
      &lt;/xsl:for-each&gt;
    &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>C#:</p>
  
  <pre><code>XslCompiledTransform xslt = new XslCompiledTransform();
  
  xslt.Load(xslPath);
  
  using (XmlWriter writer = XmlWriter.Create(outPath + 
                                            fileName + 
                                            "." +
                                              fileExt
                                           , xslt.OutputSettings))
  {
      xslt.Transform(fileNode, null, writer);
      writer.Flush();
      writer.Close();
  }
  </code></pre>