Re: [xsl] trying to drop leading/trailing WS text nodes from verb atim

Subject: Re: [xsl] trying to drop leading/trailing WS text nodes from verb atim
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 3 Sep 2003 14:47:50 +0100
> but the code you're referring to is for removing *leading* linefeeds
> from the left, so that normalization won't have any effect, will it?

yes, any literal control-m character or literal control-j control-m pair
is effectively replaced by a single control-j _before_ XML parsing
happens. this is mandated by the XML spec.

> and the normalization you're talking
> about is only for the end of lines, no?

yes but where end-of-line is by definition any literal control-m
character or literal control-j control-m pair occuring anywher in the
file.

The only way to get a control-m into an XML file is to have &#13; or
some equivalent construct. Writing a line end on a macintosh or
windows machine will only produce a unix style control-j in the result of
parsing the document. So basically if you are looking for line ends you
only ever need look for control-j.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Current Thread