Re: [xml] Indentation ?

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Sep 11 2000 - 13:01:07 EDT


On Mon, Sep 11, 2000 at 11:07:36AM -0500, Kenneth Pronovici wrote:
> With indenting turned on, I get this in my document:
>
> <program>
> <!--Program configuration section.-->
> <statistics_enabled>N</statistics_enabled>
> <statistics_filepath>stats.txt</statistics_filepath>
> <working_directory>/dvl/fds/tmp</working_directory>
> <dtd_path>/dvl/fds/dtd</dtd_path>
> <generate_cooked>Y</generate_cooked>
> </program>
>
> In other words, the comments don't seem to follow the indentation
> rules. I know comments aren't "significant", but I expected that
> comments belonging to the parent node would be at the same level
> as the rest of the elements belonging to the parent node.

  yes this is again a tradeoff. Without full knowledge of the
significance of the blanks (and in that case if they are removed)
it is not possible to know where the comment was expected to be placed
(some people may not want ot have them indented for example). Here
is a case where libxml makes a choice by lack of iformations. I hope
it's not too annoying.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Sep 11 2000 - 13:43:20 EDT