This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: list items HTML formating with XSL
- From: Paul Grosso <pgrosso at arbortext dot com>
- To: jaccoud at petrobras dot com dot br
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 06 Jan 2003 11:44:35 -0600
- Subject: Re: DOCBOOK-APPS: list items HTML formating with XSL
At 15:29 2003 01 06 -0200, jaccoud@petrobras.com.br wrote:
>I've been overiding several XSL templates in order to get valid XHTML
>Strict output. ... In the process of overiding the
>corresponding templates in lists.xsl and block.xsl, I noted that most of
>the job could be avoided by simply generating the ID attribute inside the
><li> element, instead of generating a empty <a> element. Is there some
>reason you used
> <li><a id="someid"></a><p>...</p></li>
>instead of the simpler
> <li id="someid"><p>...</p></li>
You could do that as long as you realize that this does not
follow the HTML browser compatibility guidelines at [1] and
it won't work with Netscape 4.x browsers.
That is, your suggested code matches the specs, but not a lot
of the deployed tools out there.
paul
[1] http://www.w3.org/TR/xhtml1/#C_8