[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: "tidy", doctype, and "summary" attribute in tables

On Thu, Aug 03, 2000 at 03:00:56PM +0200, Darko Krizic wrote:
> > "tidy" likes to complain about missing "summary" attributes in
> > <table> tags.
> What is tidy?

>From http://www.w3.org/People/Raggett/tidy

   When editing HTML it's easy to make mistakes. Wouldn't it be
   nice if there was a simple way to fix these mistakes
   automatically and tidy up sloppy editing into nicely layed out
   markup? Well now there is! Dave Raggett's HTML TIDY is a free
   utility for doing just that. It also works great on the
   atrociously hard to read markup generated by specialized HTML
   editors and conversion tools, and can help you identify where
   you need to pay further attention on making your pages more
   accessible to people with disabilities.

> I lately used wml to generate some html files that were DOM templates for
> enhydra and had similar problems with table summaries, ids in html tags and
> so on.
> > While I can of course easily add them for my own tables, 
> > wml tags like <tul> and <grid> are a bit trickier.

<grid> and <box> still have a `summary' attribute.

> I usually don't use such existing wml::* tools, but I did something like
> this:
> <define-tag t2 endtag=required>
>         <preserve id>
>         <set-var %attributes>
>         <tr id="<get-var id>1">
>                 <td class=lt colspan=2 height=5>&nbsp;</td>
>         </tr>
>         <tr id="<get-var id>2">
>                 <td class=mt>&nbsp;</td>
>                 <td class=mt width=100%><b>
>                         %body
>                 </b></td>
>         </tr>
>         <restore id>
> </define-tag>
> Here you can use t2 like this <t2 id="abc">. The upper tr gets the id id1
> and the lower one id2.

You may use a counter :-)

In http://www.engelschall.com/sw/wml/news/list/msg01802.shtml
i explained how to define tags which may handle attributes without
having to specify them explicitly.
But before implementing this idea into all WML modules, i would like to
hear some feedback, there may be a much more intuitive way to do so.

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com