title: Transforming XML to JSON with custom XSLT looses curly braces
body: <p>I've got a .NET library that uses an XSLT file for transforming beer xml files into json for a web app.</p>
  
  <p>The XSLT file looks a lot like this:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="text" omit-xml-declaration="yes" /&gt;
  &lt;xsl:template match="RECIPES"&gt;
  {
      {
        "description": {
        "name": "&lt;xsl:value-of select="NAME"/&gt;",
        "style": "&lt;xsl:value-of select="STYLE/NAME"/&gt;",
        ...
  </code></pre>
  
  <p>And I'm converting using this piece of code in c#:</p>
  
  <pre><code>using(var writer = new StringWriter()){
       _xsltCompiler.Transform(_document, null, writer);
       json = writer.ToString();
  }
  </code></pre>
  
  <p>Now, the problem is that curly braces and whitespace is missing from the output. And it used to work. From the source control history I can see no aparent changes lately. Any suggestions on how to fix this?</p>