This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Simpler XHTML output


Jirka Kosek <jirka@kosek.cz> wrote on Mon, 25 Apr 2005 17:42:45 +0200:

> Using XHTML 1.1 is not good idea because:
>
> 1) it must be labelled as MIME type text/xml, application/xml or
> application/xhtml+xml per specification

This is not true AFAIK. If I'm wrong, please point me to the relevant
part of the specification.

The specification concerns the content, not the MIME content type. A
page can be valid XHTML 1.1 and be served as text/html (my own Web
pages, for example). I think this is a pragmatic solution, as XHTML
1.1 is a clean and neat XML, and the final such spec that is going to
be backwards-compatible with HTML.

Valid XHTML 1.1 can be written such that most browsers accept it as
HTML.

>> 5. The only DIV to be created inside the main content will be for
>> admonitions, sidebar and highlights.
>
> Why? That way you will not be able to control rendering of whole
> section or titlepage for example. Current stylesheets wrap these
> structures inside <div class="section"> or <div class="titlepage">
> respectively.

Here I agree with Jirka. Why not use divs and spans abundantly, with
class attributes that give full control to custom CSS? You can make
even divs essentially go away using display:inline.

Justus

-- 
Justus H. Piater, Ph.D.         http://www.montefiore.ulg.ac.be/~piater/
Institut Montefiore, B28        Phone: +32-4-366-2279
Université de Liège, Belgium    Fax:   +32-4-366-2620


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]