[Top][All Lists]

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

Re: Bug in nxml-mode (indentation)?

From: Jason Rumney
Subject: Re: Bug in nxml-mode (indentation)?
Date: Tue, 18 Dec 2007 09:38:02 +0000
User-agent: Thunderbird (Windows/20071031)

Eric Lilja wrote:
> Convey meaning? To whom? The parser? I had no idea. I just know that
> xml-mode and nxml-mode indents the example file differently and I like
> the old mode does better. Are you saying it affects validation and
> what you get when you parse the file?

It won't affect validation as whitespace does not affect the validity of
the xml, but it will affect the result of evaluating the XPath
expression //foo/text(). Both behaviours are bugs if the text is being
indented without the user explicitly indenting it, the default should be
to leave the text unindented. Many applications will normalize
whitespace before using the text, but that is outside of the XML
parser's scope.

reply via email to

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