Re: [xsl] stripping leading and trailing blanks of a value?

Subject: Re: [xsl] stripping leading and trailing blanks of a value?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 09 Mar 2010 17:09:57 +0000
perhaps an identity template plus

<xsl:template match="text()[normalize-space()]">
  <xsl:value-of select="normalize-space()"/>
</xsl:template>

ie leave white space nodes alone but normalize any non white text

david


________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread