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

RE: strip-spaces

Subject: RE: strip-spaces
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 4 Feb 2008 20:00:23 -0000
RE:  strip-spaces
> 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.