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

Re: XHTML and lower-casing HTML tags.

From: Dave Raggett <dsr@w3.org>
Date: Fri, 23 Jun 2000 09:26:48 +0100 (GMT Daylight Time)
To: Brent Hale <BrentH@iLumin.com>
cc: "'html-tidy@w3.org'" <html-tidy@w3.org>, gerald@w3.org
Message-ID: <Pine.WNT.4.10.10006230925370.-695193@hazel.hpl.hp.com>
On Thu, 22 Jun 2000, Brent Hale wrote:

> I have an XML document with embedded HTML tags that I want to
> correct (make lower-case) in order to be a correct XHTML
> document.  Tidy does not appear to make the HTML tags lower case
> as I would have guessed.  If I copy out the HTML section and
> remove the XML tags from around the HTML's Input elements, then
> run tidy on it, it makes the tags lower case.
> 
> I've tried several different configuration options but none seem
> to force tidy to make the HTML tags lower-case.  Here's how I
> thought I should have been able to call it:
> 
> tidy --input-xml yes --output-xml yes --output-xhtml yes
> --add-xml-decl yes --assume-xml-procins yes file.xml
> 
> Here is a portion of the document I was hoping to fix
> 
> 	<sec3c>
> 		<INPUT type="text" name="sec3c" rows="5" />
> 	</sec3c>
> 
> I was hoping it would correct it to:
> 
> 	<sec3c>
> 		<input type="text" name="sec3c" rows="5" />
> 	</sec3c>
> 
> What am I missing?

You need to declare the sec3c tags and to tidy the document
as XHTML rather than as XML. Tidy leaves generic XML tags
alone and doesn't alter the case.


Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 778 532 0444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Friday, 23 June 2000 04:26:59 GMT

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