Subject: Re: [xsl] strip-spaces From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx> Date: Mon, 4 Feb 2008 12:21:56 -0800 |
With respect, Steven
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] strip-spaces, Michael Kay | Thread | Re: [xsl] strip-spaces, Manfred Staudinger |
RE: [xsl] strip-spaces, Michael Kay | Date | Re: [xsl] strip-spaces, Robert Koberg |
Month |