title: Removing double quotes and slashes in XSLT
body: <p>I am trying to filter out problem characters (quotes and slashes) while doing an XSLT translation but am unable to actually remove them. I've tried several proposed solutions here and they have been unsuccessful:</p>
  
  <p><a href="https://stackoverflow.com/questions/5084065/replace-special-characters-in-xslt">Replace special characters in XSLT</a></p>
  
  <p><a href="https://stackoverflow.com/questions/26750513/removing-double-quotes-in-xsl">Removing double quotes in XSL</a></p>
  
  <p><a href="https://stackoverflow.com/questions/27631190/xsl-replace-single-and-double-quotes-with-apos-and-quot">XSL: replace single and double quotes with &amp;apos; and &amp;quot;</a></p>
  
  <p>I would ideally like to replace the characters with some kind of marked word, like <em>quotes</em> or <em>slash</em>, but at this point I'd be fine just stripping them out for now.</p>
  
  <p>I'm only running it on a couple selects, so it shouldn't be that hard. I'm not sure what is going wrong.</p>
  
  <pre><code>&lt;xsl:value-of select="ns3:stepTitle"/&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Need to use XML 1.0. </p>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0"     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
      &lt;xsl:output method="xml" indent="yes"/&gt;
  
      &lt;xsl:template match="@*|node()"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:apply-templates select="@*|node()"/&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="*/text()"&gt;
          &lt;xsl:value-of select="translate(., '\&amp;quot;', '*quote*')"/&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;test&gt;
    I need to remove "quotes" and slashes /\ from here.
  &lt;/test&gt;
  </code></pre>
  
  <p>The result was:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-16"?&gt;
  &lt;test&gt;
    I need to remove qquotesq and slashes /* from here.
  &lt;/test&gt;
  </code></pre>