title: Escaping value of XML attribute with xsltproc
body: <p>With <strong>xsltproc</strong> (XSLT 1.0) I'm trying to escape (" -> to \") content from xsl-value @name attribute.</p>
  
  <p>XSL:</p>
  
  <pre><code>&lt;xsl:template match="int:signature"&gt;
      "name":"&lt;xsl:value-of select="@name" mode="text"/&gt;",
      ....
  </code></pre>
  
  <p>Original XML:</p>
  
  <pre><code>&lt;signature name="My &amp;quot;case&amp;quot;" /&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code> "name":"My "case"",
  </code></pre>
  
  <p>which breaks resulting JSON</p>
  
  <p>I've tried using <em>str:replace</em> with no success.
  No success with <em>disable-output-escaping="yes"</em> either.</p>
  
  <p>Any hint?</p>
  
  <p>--</p>
  
  <p>xsltproc -V </p>
  
  <p>Using libxml 20706, libxslt 10126 and libexslt 815</p>