W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: XHTML/XML slash for ending empty tags

From: Ignacio Vazquez-Abrams <ignacio@openservices.net>
Date: Sun, 5 Aug 2001 20:23:53 -0400 (EDT)
To: <html-tidy@w3.org>
Message-ID: <Pine.LNX.4.33.0108052022350.4965-100000@terbidium.openservices.net>
On Sat, 4 Aug 2001, Tom Alsberg wrote:

>   Hi there.
>
>   I lately started using XHTML as a markup language, and HTML tidy
> doesn't seem to tidy accordingly. XHTML (or XML, for that matter),
> requires empty tags to end with a slash, like this:
>
> <emptytag />
>
>   But when I use tidy -m on an XHTML document, it seems to remove all
> the slashes from the empty tags, causing the document not to be valid
> XHTML afterwards.
>
>   Is there somewhere tidy can be configured to conform to XHTML when
> given a XHTML DTD?
>   The version of tidy I'm using is:
> HTML Tidy release date: 4th August 2000
>
>   Would a newer version conform to XHTML better?
>
>   Thanks in advance, any help appreciated,
>   -- Tom Alsberg

Try putting 'output-xhtml: yes' in your configuration file.

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>
Received on Sunday, 5 August 2001 20:23:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT