emacs-devel
[Top][All Lists]
Advanced

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

Re: Bug in nxml-mode (indentation)?


From: Eric Lilja
Subject: Re: Bug in nxml-mode (indentation)?
Date: Tue, 18 Dec 2007 10:46:16 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Jason Rumney wrote:
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.

Thanks Jason, that complicates things for sure even though I do not know what XPath is yet. Ideally then one should be able to configure how a file is indented without having to move things manually. I wish I was the person who could deliver that. :( But how should a file be indented for this XPath-thing to do its work correctly? Not at all or depending on other parameters? I don't like that it is dependent on the indentation level, heh.

- Eric





reply via email to

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