[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
perhaps an identity template plus
ie leave white space nodes alone but normalize any non white text
david
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] stripping leading and trailin, Ben Stover | Thread | Re: [xsl] stripping leading and tra, Andrew Welch |
[xsl] stripping leading and trailin, Ben Stover | Date | Re: [xsl] stripping leading and tra, Andrew Welch |
Month |