This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Stripping all whitespace and carriage return / end of line


> I thought that 
> 
> <xsl:strip-space elements="*"/>
> 
> strips all whitespace from element content

No, it only strips whitespace nodes, that is, text nodes containing nothing
but whitespace.

, but this does not seem to
> include carriage returns, tabs and similar trailing and leading
> characters. However, when reading an element content,  I would like to
> have those ignored.

Use the normalize-space() function.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]