xsl-list
[Top] [All Lists]

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

2003-09-03 05:41:02
On Wed, 3 Sep 2003, David Carlisle wrote:

The solution in the quoted  archive is a little more complicated than
needed as you don't need to test
starts-with($astr,'
') or
starts-with($astr,'
')">
as there won't be any #xD or #xA#xD pairs as the XML parser normalises
all line endings to #xA before XSLT starts.

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?
the code seems to be considering the possibility of mixed spaces/
tabs/linefeeds/carriage returns, and the normalization you're talking
about is only for the end of lines, no?

rday


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