From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lennart Borgman \(gmail\)'" <lennart.borgman@gmail.com>
Cc: 'Jason Rumney' <jasonr@gnu.org>, 'Emacs Devel' <emacs-devel@gnu.org>
Subject: RE: Indentation contest nxml vs xml-mode
Date: Thu, 6 Mar 2008 19:31:51 -0800 [thread overview]
Message-ID: <002201c88003$c8a5deb0$0600a8c0@us.oracle.com> (raw)
In-Reply-To: <47D07254.9020508@gmail.com>
> Though as Jason (I believe) pointed out when we discussed it
> last time whitespace is not significant (most of the time ...) in
> XHTML, only in XML. But it is sometimes -- and those times are
> really hard to detect since they might depend on the style sheet, or?
The significance or not of whitespace is not something up for a vote or a
beauty contest. It is well-defined for XML. And XHTML is XML.
What you might be trying to say is that many programs that use XHTML code do
not, themselves, detect or make use of whitespace that is, technically
speaking, significant (in terms of XML). That is another matter entirely.
Whether you or a Web browser does or does not actually distinguish between
two documents that differ in significant XML whitespace is not the point.
There is a big difference between XML documents or fragments being
indistinguishable in terms of significant whitespace and their being
distinguishable. XML tools and databases go to great pains to preserve and
restore significant whitespace, even when they sacrifice insignificant
whitespace.
It's fine to have tools that also let you preserve insignificant whitespace
(that's sometimes important), or that also let you sacrifice whitespace that
is significant in terms of its XML meaning but might not be significant to
you. But tools should at a minimum have a mode that lets you preserve
significant whitespace. And indentation should not gratuitously alter
significant whitespace. Doing that would be akin to TAB indenting text in
the middle of a Lisp string.
next prev parent reply other threads:[~2008-03-07 3:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 18:41 Indentation contest nxml vs xml-mode Lennart Borgman (gmail)
2008-03-06 18:50 ` Drew Adams
2008-03-06 21:52 ` Lennart Borgman (gmail)
2008-03-06 22:21 ` Drew Adams
2008-03-06 22:38 ` Lennart Borgman (gmail)
2008-03-07 3:31 ` Drew Adams [this message]
2008-03-06 22:18 ` Jason Rumney
2008-03-06 22:34 ` Lennart Borgman (gmail)
2008-03-07 3:31 ` Drew Adams
2008-03-07 0:28 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002201c88003$c8a5deb0$0600a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).