Re: Excess whitespace in XML files

From: Date: Mon, 09 Sep 2002 16:25:05 +0000
Subject: Re: Excess whitespace in XML files
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348538@lists.php.net to get a copy of this message
Hartmut Holzgraefe wrote: > AFAIR it is up to the stylesheets to define whether leading/trailing > whitespace is significant or to be ignored for a tag Stylesheets of course can strip this space, but DocBook stylesheets doesn't do that because in XML all whitespace in mixed content is significant. In SGML this was quite different as there were more fancy options. But automatical striping of trailing and leading whitespace is bad idea in general. For example if you do striping, you are unable to start code example by blank line. > reformating the source in a far less readable way should not be an > option IMHO It is less readable but it is the only correct form. You can get used to this format quite easily. Jirka -- ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz

« previous php.doc (#969348538) next »