title: How to limit line length for email XSLT
body: <p>I'm trying to create a report in an email and email daemons chop lines if they're over ~ 2040 characters long.
  I'm using XSLT to build the email report and I need to break up these lines but I still need the link to work.</p>
  
  <pre><code>&lt;xsl:variable name="encoded_url"&gt;
      &lt;xsl:value-of select="saxon:string-to-base64Binary(concat(PROTOCOL,'://',URL),'UTF8')" xmlns:saxon="http://saxon.sf.net/"/&gt;
  &lt;/xsl:variable&gt;
  &lt;dd style="{$style-dd}"&gt;
      &lt;a title="View URL"
          href="{$baseHref}report?url={$encoded_url}" style="{$style-links}"&gt;
          &lt;xsl:call-template name="break-url" &gt;
              &lt;xsl:with-param name="url" select="URL" /&gt;
              &lt;xsl:with-param name="length"&gt;75&lt;/xsl:with-param&gt;
              &lt;xsl:with-param name="lines"&gt;999&lt;/xsl:with-param&gt;
          &lt;/xsl:call-template&gt;
      &lt;/a&gt;
  </code></pre>
  
  <p>This isn't my code and I'm not real familiar with XSL but I've searched on here and on the web and I'm not really seeing an awesome solution.</p>