2005/12/2, XStandard Vlad Alexander <[EMAIL PROTECTED]>:
> So Rimantas, you have written invalid XHTML, served it as XML and then blamed 
> XHTML
> because your Web site broke.

Your assumption is wrong :)

>If you had written invalid HTML 4 and some User Agents had
> not parsed it correctly, would you blame HTML 4?

No. And I do not blame XHTML. I don't like the selling of XHTML
without explaining exactly those
perils Hixie talks about.

> Wow, calling us liars because XHTML 1.1 has <td align="" valign=""> 
> constructs speaks volumes > about your character.

I call you liars because of this:
"...because only XHTML Strict and 1.1 guarantee the clean separation
of data from formatting, making them the clear choice whenever
availability of data is an important factor."

This is a lie, plain and simple.

  > As it happens, there is no other way to do arbitrary alignment in
XHTML 1.1 other than using
> this construct without resorting to inline CSS, which is deprecated, or by 
> using constructs
> that are no better like:
>
> <td class="left top">

I'd put it another way: "no other way to do arbitrary alignment in
XHTML 1.1 generated by WYSIWYG tool".

Because:

1. Content of <td> is aligned to the left by default. No align="left"
is necessary.
Content of <th> is centered by default.

In your case you used align="center" to center images in some columns.
This can be done in external CSS file with one rule td img
{display:block; margin:auto}

2. Content in <td> by default is centered vertically. In most cases we
want it to be aligned to
the top, so single rule tr {vertical-align: top} takes care of all
valign="top" attributes.
And if want to pollute your markup with these attributes, why not to
put them on tr, not each td?

3. If you have some cells which use different layout from the rest,
that means you have something
special in them. And this means you can have some id or class with
semantic, not presentational name. WYSIWYG tools are not smart enough
for that, but this is not the problem of (X)HTML and CSS.

All that means I can recode the page I referred in last post with
HTML4, and will have less and cleaner code than your XHTML1.1.
Recoding whole "Notes" section with <dl> and getting rid of all those
decorative <img>
would save a bunch too.

So, "only XHTML Strict and 1.1 guarantee the clean separation of data
from formatting"???

Language does not matter, how you use it matters.

Regards,
Rimantas
--
http://rimantas.com/
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to