[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: strip-spaces

Subject: Re: strip-spaces
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Mon, 4 Feb 2008 12:21:56 -0800
Re:  strip-spaces
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.