Re: XHTML issue

> 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 UTC