Re: [xsl] strip-spaces

Subject: Re: [xsl] strip-spaces
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Mon, 4 Feb 2008 12:21:56 -0800
All plausible, and I thank you for pointing them out.

In fact, by a process of elimination, my problem appears to be that IE does not render the div in the span like other browsers - or rather that it does so inconsistently (because this same code works correctly in some instances in IE, generated from the same template). So I'm mystified.

Anyhow my problem does not appear to be an XSL issue. I'll come back the question of the extra tabs later if I have time.

Thanks.

With respect,
Steven


On Feb 4, 2008, at 12:00 PM, Michael Kay wrote:


It is, in fact, the document content that is not being
stripped, as I look at this more closely.

Some of the possible reasons that come to mind for whitespace not being
stripped from the source document are:


(a) the source document says xml:space="preserve"

(b) the characters that look like whitespace are not in fact one of the
characters space, tab, nl, or cr; perhaps they are non-breaking spaces


(c) the offending whitespace characters do not consistute a whole text node
(they coexist with non-whitespace characters)


(d) the whitespace forms the content of an element that has been validated
to have a simple type.


All these conjectures may be wrong, but you haven't given enough information
to discount any of them.


It's also possible that the offending whitespace in your result document
doesn't originate from the source document at all, it could be generated by
parts of the stylesheet that we haven't seen.


Michael Kay
http://www.saxonica.com/

Current Thread