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

Re: XHTML issue

From: Bradley S. Huffman <hip@a.cs.okstate.edu>
Date: Wed, 11 Jul 2001 09:09:47 -0500
Message-Id: <200107111412.KAA08978@tux.w3.org>
To: html-tidy@w3.org
> I'm using Tidy to convert plain vanilla HTML into XHTML, and am running into
> a problem.  
> 
> When the input file contains internal anchors, such as: <a name="1">1.</a>,
> and the output is switched to xhtml,  the result is:  <a id="1"
> name="1">1.</a>.  The name attribute is valid, as name is NMTOKEN in loose
> xhtml, but the id is invalid.  I understand that the name attribute is
> depreciated in xhtml and that an id attribute is a good practice, but I
> would like to turn off the "id" being automatically output, and cannot find
> a way to do so.
> 
> Any advice?
> 
> Wendy

Do a two step process, use tidy to convert to XHTML, then use XSLT to
strip off the id attribute.
-----
Bradley S. Huffman              (405) 744-2918
Online Coordinator
208 Life Sciences East
College of Arts and Sciences
Oklahoma State University
Stillwater, Oklahoma  74078-1053
Received on Wednesday, 11 July 2001 10:12:37 GMT

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