Re: [xml] Loss of whitespace

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Mar 01 2000 - 23:02:37 EST


On Thu, Mar 02, 2000 at 04:15:30AM +0100, Daniel Veillard wrote:
> This proves to be incredibly hard to fix !!!
[...]
> The only ways I can think about this is the following:
> 1/ provide a flag in the parser context to change the
> behaviour to pass all white spaces (if we are not validating)
> 2/ switch the parser to pass all white spaces to SAX,
> but in the DOM generation callback, remove all text
> nodes containing only empty spaces

  Ok, I have commited onto both CVS bases :
    - a new heuristic with the same behavior as before except
      it generates a text node when there is space and only spaces
      between the opening tag and ending tag
    - a extra flag in the parser context keepBlanks which if
      set will diable any heuristic (though white space can
      still be flagged as ignorable if there is a DTD and the
      element is not mixed-content)

I have generated a libxml-pre-1.8.7.tar.gz and put it at
  ftp://rpmfind.net/pub/rpmfind/libxml-pre-1.8.7.tar.gz

Gnumeric seems happy with it, please test if possible so that
I can trust it to release 1.8.7,

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:06 EDT