title: Removing Special Characters XSLT
body: <p>I keep receiving this error message </p>
  
  <blockquote>
    <p>Required attribute 'select' is missing.</p>
  </blockquote>
  
  <p>I already used this code before and it was working fine, but it seems that it is not applicable to </p>
  
  <pre><code>&lt;xsl:output method="text" /&gt;
  </code></pre>
  
  <p>Hope you can help me.</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="2.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:wd="urn:com.workday.report/Sample_Outbound"&gt;
  
      &lt;xsl:output method="text" /&gt;
              &lt;xsl:variable name="linefeed" select="'&amp;#xA;'"&gt;&lt;/xsl:variable&gt;
              &lt;xsl:variable name="StreetAddress1"&gt;Street Address 1&lt;/xsl:variable&gt;
  
      &lt;xsl:template match="wd:Report_Data"&gt;
          &lt;File&gt;
              &lt;!-- Header --&gt;
              &lt;Header&gt;
                  &lt;StreetAddress1&gt;
                      &lt;xsl:value-of select="$StreetAddress1" /&gt;
                  &lt;/StreetAddress1&gt;
                  &lt;xsl:value-of select="$linefeed" /&gt;
              &lt;/Header&gt;
  
              &lt;xsl:for-each select="wd:Report_Entry"&gt;
                  &lt;Record&gt;
                      &lt;Work_Street_Address_1&gt;
                          &lt;xsl:call-template name="Remove-Special-Characters-Commas"&gt;
                          &lt;xsl:with-param name="normalize-string"
                               select="wd:Work_Street_Address_1"  /&gt;
                          &lt;/xsl:call-template&gt;
                      &lt;/Work_Street_Address_1&gt;
  
                      &lt;xsl:value-of select="$linefeed" /&gt;
                  &lt;/Record&gt;
              &lt;/xsl:for-each&gt;
          &lt;/File&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template name="Remove-Special-Characters-Commas"&gt;
          &lt;xsl:param name="normalize-string" /&gt;
          &lt;xsl:variable name="AllowedSymbols"
              select="'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.,#():@/;\'&amp;apos;_&amp;amp;'" /&gt;
          &lt;xsl:variable name="stringValuePreformatted"
              select="translate($normalize-string,'àâäèéêëîïôœùûüÿÀÁÄÈÉÊËÎÏÔŒÙÛÜŸçÇáéíóúÁÉÍÓÚäöüÄÖÜßàèéìòóùÀÈÉÌÒÓÙáéíóúüÁÉÍÓÚÜñÑ¿¡','aaaeeeeiioeuuuYAAAEEEEIIOEUUUYCCaeiouAEIOUaouAOUBaeeioouAEEIOOUaeiouuAEIOUUnN?1')" /&gt;
          &lt;xsl:value-of
              select="normalize-space(translate($stringValuePreformatted, translate($stringValuePreformatted, $AllowedSymbols,''),''))" /&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The line error is </p>
  
  <pre><code>line 39: Error parsing XPath expression ''abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.,#():@/;\''_&amp;''.
  line 39: Required attribute 'select' is missing.
  
  enter code here
  </code></pre>
  
  <p>Thanks</p>