• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    Honest differences are often a healthy sign of progress. — Mahatma Gandhi

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Removing newlines in XSL

October 3rd, 2008 by Gavin Colborne

Thansk to Mark Stradling for this tip, the below little template is useful to remove new lines using XSL:

<xsl:template name="removelines"> 
  <xsl:param name="text" /> 
  <xsl:value-of select="translate($text,'&#x0A','')" /> 
</xsl:template>

Leave a Reply

You must be logged in to post a comment.