s9*****@mail.yzu.edu.tw (mike) wrote:
A HTML document can be converted to XHTML document.
Correct. Though often it isn't worth it.
one step is:'Un-minimize' minimized attributes
What does the step mean in easy english?...@@.
I mean what operations I should do on the attributes?
See
http://www.w3.org/TR/xhtml1/#h-4.5
If you have a boolean attribute such as readonly you must specify it
as readonly="readonly"
If you have an attribute that takes keywords as values then in HTML
you can use the keywords alone (e.g. <td valign="top" align="center">
can be written as <td top center>) in HTML - browser support is
another matter - but must be written in full in XHTML.
If you are trying to write a parser to convert from HTML to XHTML then
you will need to change both types accordingly. Hence the parser will
need knowledge of the different attributes, either by parsing a DTD or
by having them hard coded.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>