info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: merge mode for XMLp


From: Gary Bisaga
Subject: RE: merge mode for XMLp
Date: Mon, 29 Apr 2002 12:06:54 -0400

That's what I meant (but did not say), newlines+spaces. Every tool I've seen
either (a) doesn't just generate the newlines, they generate the indenting
spaces too, or (b) doesn't generate any newlines or spaces at all. (Perhaps
I have missed some, so YMMV.) My point was that from a web designer point of
view, the latter is preferable, hence the problem.

-----Original Message-----
From: Joi Ellis [mailto:address@hidden
Sent: Monday, April 29, 2002 11:51 AM
To: Gary Bisaga
Cc: CVS-II Discussion Mailing List
Subject: RE: merge mode for XMLp


On Mon, 29 Apr 2002, Gary Bisaga wrote:

> >Doesn't everyone format their XML like that?  I.e. like HTML so that
> >tags are on their own lines and there are extra blank lines (that won't
> >be treated as data) between groups of items and even between items too?

Some XML toolkits don't add newlines between XML tags and many parsers
don't preserve them by default. The only place newlines are preserved by
default is within an tag's own content.

Some other toolkits generate nicely-formatted, nested/indented structures.
I gladly trade the extra few bytes of whitespace for the ability to read the
document easily.

> Not only do tools not always follow these rules, you can't even always
treat
> HTML like that. Besides making a huge file, it messes up the rendering of
> tables with sliced-up images.

Assuming an average line length of 40 characters, the growth in an html
file that contains newlines is only 5%.  If the file is already so large
than an extra 5% is noticable, you have other problems.  You'll see more
degradation by using whitespace to indent the markup than you will from
the use of newlines.

--
Joi Ellis                    Software Engineer
Aravox Technologies          address@hidden, address@hidden

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]