title: XSLT 1.0 Translate String - Change Character to New Line
body: <p>I am hoping this is a simple one, though it seems it often isn't...</p>
  
  <p>I am working with <strong>XLST 1.0</strong> and I have a string which I need to <code>translate</code>. This string is a user-entered text field. It contains several smaller strings separated by a delimiter. (In this case, it's "|".) The length of this string and the number of special characters varies widely.</p>
  
  <p>(This field is similar to a CSV list, however, rather than using a comma as the delimiter, the "|" is the delimiter.)</p>
  
  <p>I need to learn how to change this delimiter to <code>&lt;br&gt;</code>.</p>
  
  <p>I've tried using the following XSL to achieve this:</p>
  
  <pre><code>&lt;xsl:variable name="stringtotrans"&gt;
      &lt;xsl:text&gt;String1|String2|String3&lt;/xsl:text&gt;
  &lt;/xsl:vairable&gt;
      &lt;!-- In the actual XML document, this variable grabs the value of an attribute. --&gt;
      &lt;!-- For this example, it's being entered manually. --&gt;
      &lt;!-- The number and length of the individual strings varies widely. --&gt;
  
  &lt;xsl:value-of select="translate($stringtotrans, '|', '&amp;#xA;&amp;#xD;')"/&gt;
  </code></pre>
  
  <p>When this code is run, the output is:</p>
  
  <pre><code>String1String2String3
  </code></pre>
  
  <p>The expected/desired output is:</p>
  
  <pre><code>String1
  String2
  String3
  </code></pre>
  
  <p>Any and all help with this would be greatly appreciated!</p>