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

Re: XHTML/XML slash for ending empty tags

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Mon, 6 Aug 2001 09:31:57 CET
Message-Id: <200108060736.DAA17943@tux.w3.org>
To: html-tidy@w3.org
In <20010804121122.A7148@zoopee.org>, Tom Alsberg <alsbergt@zoopee.org> writes:
>   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 -asxml option does exactly that, and even converts an HTML document to 
XHTML.

See tidy -? for additional options.


-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Monday, 6 August 2001 03:36:57 GMT

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