Connecting Tech Pros Worldwide Forums | Help | Site Map

A HTML document can be converted to XHTML document.

mike
Guest
 
Posts: n/a
#1: Jul 24 '05
regards:

A HTML document can be converted to XHTML document.

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?

Any suggestion is welcome.

thank you
May goodness be with you all

Steve Pugh
Guest
 
Posts: n/a
#2: Jul 24 '05

re: A HTML document can be converted to XHTML document.


s917124@mail.yzu.edu.tw (mike) wrote:
[color=blue]
>A HTML document can be converted to XHTML document.[/color]

Correct. Though often it isn't worth it.
[color=blue]
>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?[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
Closed Thread