Re: XHTML and lower-casing HTML tags.

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 UTC