title: Limit the output of XSLT element to 2000 characters
body: <p>I want to limit the output of an XSLT element to 2000 chars. The element has many IF conditions and depending upon which conditions are true the sub-elements are displayed. I cannot use concat() function as the variable is re-initialized in every IF block. I cannot use substring() as there are many sub-elements and i want the concatenation of all sub-elements to be 2000 chars. I am currently working on javascript option but without much luck. I am a newbie to XSLT so any help much appreciated.</p>
  
  <p>Thanks,
  Clayton</p>