W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

RE: XML Tidy?

From: Ignacio Vazquez-Abrams <ignacio@openservices.net>
Date: Wed, 20 Jun 2001 18:13:15 -0400 (EDT)
To: <html-tidy@w3.org>
Message-ID: <Pine.LNX.4.33.0106201805500.23479-100000@terbidium.openservices.net>
On Wed, 20 Jun 2001, Reitzel, Charlie wrote:

> Looks good.  Looks like the pretty printer theory worked out ok.  I put this
> into the "Feature request" tracker on the SourceForge project (and attached
> your diff), so it's in the queue.
> For all interested parties, you can view the feature list Terry has culled
> from this mailing list at
> http://sourceforge.net/tracker/index.php?group_id=27659&atid=390966
> The more feedback we get about these items, the better (including priority,
> sanity checking, potential conflicts, refinements, "You want it to do
> what?", etc. etc.).
> Question: given the input
> -- INPUT --
> <html>
> <head>
> <title>Foo!</title>
> </head>
> <body>
> <p>Bar!</p>
> </body>
> </html>
> ------------
> Do you want
> -- OUTPUT A --
> <p>Bar!</p>
> --------------
> or b)
> -- OUTPUT B --
> <body>
> <p>Bar!</p>
> </body>
> --------------
> Your diffs look like you want b).  If so, why?  I'd think you'd want to drop
> the <body> itself so that the document contents, for example, could be
> dropped into a cell in a layout table.
> Charlie

In all actuality, it doesn't matter to me whether a) or b) happens. I use XSLT
in the front end so it's all good. However, I do believe that having the
ability to omit or even rename the body tag is a good feature. I'll start work
on it tonight.

How does this sound:

A new configuration option, "body-tag", a string that can have either "OMIT"
or the actual tag you want to output in place of <body> and </body>. This
feature will only be available when "body-only" is active (because that's
probably the only time it would make sense).

Ignacio Vazquez-Abrams  <ignacio@openservices.net>
Received on Wednesday, 20 June 2001 18:13:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC